Add A JWM Bookmarks Menu or Submenu/Messing Around With JWM

How to do things, solutions, recipes, tutorials
Message
Author
User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

jwm-based utilities pack and word processor updated.

#196 Post by Puppus Dogfellow »

new nwp's got improved jwm config swapping and this thread's arguably the most relevant for the following post, which will hopefully adequately bridge some documentation gaps. from
nwp update improves config swapping and porting, navigation,
word processing, and documentation. uninstalls in parts, but autoinstalls geany and rox tweaks

from
update simplifies installation, customization, portability
Subject description: (your original configs become my39 in the launcher--full nwp and functions by default.


Puppus Dogfellow wrote:(but you can now uninstall aspects of it individually through the piecemeal submenu on mae (launcher code or in your applications folder) or the scripts in /nwp/c)
from minor nwp update (two lines on the pinstall script that lead
into this how-to on the jwm configuration quickswitches
:
nwp-6t4.1.pet
nwp32.3.2.pet
nwp64.3.2.pet

only changes since the last batch are an update of the elp help file and the following two lines added to the pinstall scripts (that activate after the pet installation moves in the files you're adding to your system):

Code: Select all

cp -f /root/.jwm/jwmrc-personal /nwp/root3/root39menu/jwmrc-personal 
cp -f /etc/xdg/templates/_root_.jwmrc /nwp/root3/root39menu/_root_.jwmrc
these lines make your current jwm configuration (current as of the time of this nwp.pet install) your my39 quickswitch (i.e. "my39" in the launcher activates that particular set of configuration files); my39r reverses it, but only to the previous configuration. this is to say, installing, playing around with the configuration switches, and then getting back to your preinstall config while leaving the rest of the functions in tact may lead to some unfortunate backtracking--making the originals a quickswitch avoids any headaches and brings up a point about customizing your own (or sets of your own) wm features--anything you do to the contents of the root#menus folders in /nwp/root3 and their associated files will stick as a quickswitch and the feature mod (the tray, key, and menu config files for the nine extra menus (x3), the 6 keycentric configs, the thirty or so trays are all there) will be a part of the swapped in customizations, but you must mod the files in nwp/root3/, not the ones in their system-active places in root/.jwm and /etc/xdg/templates to make them portable (though you could always run the above two lines adjusted to the destination folder of your choice (or drag and drop manually--rl in the launcher then c gets you there...there's a keycut...my guess is alt plus j...(woo hoo)(rung is h for keys launcher, j for rox launcher, k for geany, l for leafpad)...---make changes, restart jwm to see if you like them, copy them to those folders in nwp/root3 if you want to make them swappable. the new menus on scroll up and down and mae (ae menu launched by that code in main launcher) have the quickswitches plus links to edit or activate the keys, trays, menus, etc. you can edit the files to include menus from elsewhere, but all the presets are fed from that folder. make a file of the above repeated for menus30-49 and you could vtg in your current settings at any time with a click of the cauliflower (etc).
from http://www.murga-linux.com/puppy/viewto ... 193#920193:
[...]

for the 64 bit geanytweaks to work and match up with the jwm and aemenu menus, install the following plugins:
gny125-vtg64jaewm.tar.xz
gny127-vtg64jaewm.tar.xz

unlike prior updates, this version of the nwp (either 32 or 64 bit) will autoinstall the geany tweaks, rox tweaks, and keycentric configs (my1). pinstall script for 32 bit sets the syntax back to the old style for the unicorn and precise spins. will release pae mature (5p), pae new (7x), non pae (6u, the next version of the unicorn spin), and 64 bit--6t4, which will be based on tahr64. i've been using xenial 64 and 32 on somewhat equivalent machines, and now that i know rox being overloaded is what crashes 701 (and avoid it), i have to say i'm happy with the performance of both. my earlier complaints about 32bit when using over 4gig of ram doesn't seem to hold with this newest pup--going to make a xenial spin based on the earlier x7 package since it's got the light recoll. the 64 bit spin won't include it by default, but it will have most of the features of the 32 bit spins. ETP's get chrome64 package has been modded (as anubis,get(64bit)chrome.pet)in an attempt to add some semblance of unifying theme to pux and 6t4 (or 6d4, since the debian-using xenial707-64 also works well with the nwp); i think it's there. the Word Processor and Ultimatesque Utilities Pack (and the vtg) are the anubis folder...everything's a file, a folder... :lol: :roll: :wink: (...)

here's the contents of the geany64 plugin.xz's--127 is for xenial64, 125 is for tahr64 (and it should work in slacko64 as well, but you may need to add the jwm stuff manually--aemenus will work regardless):


geany-plugin-treebrowser_1.27+dfsg-2.pet
geany-plugin-extrasel_1.27+dfsg-2.pet
geany-plugin-spellcheck_1.27+dfsg-2.pet
geany-plugin-multiterm_1.27+dfsg-2.pet


geany-plugin-extrasel_1.25+dfsg-1_amd64.deb
geany-plugin-macro_1.25+dfsg-1_amd64.deb
geany-plugin-multiterm_1.25+dfsg-1_amd64.deb
geany-plugin-numberedbookmarks_1.25+dfsg-1_amd64.deb
geany-plugin-overview_1.25+dfsg-1_amd64.deb
geany-plugin-spellcheck_1.25+dfsg-1_amd64.deb
(tree browser (included in tahr64) and extrasel are the only ones the menus require, though the spell-check dictionary in nwp/wp is there because of the above plugins and their 32 bit counterparts).


jaewm! documentation and keycuts cheat sheet have been updated both in the package and in the repo's support folder.
[...]
line's boldface because i'm about to post the updated launcher code list, and now that the keycentric configs are activated upon installation by default, that list too. also, since i've got a few keyboards that aren't quite as linux compatible as i'd like (microsoft ergo 400 or something, a logitech wireless that's got no middle button, another that's got at least a dozen currently useless multimedia and/or otherwise gummy buttons), i may post an additional keys insert file with the xev mapping for one or two of them. both time-saving lists are already on the ridiculous side of lengthy or approaching it. ...thing that looks like a light switch doesn't register at all...
Re: some new shortcuts
and the previous post summarized.

Puppus Dogfellow wrote:serf700 -- spit out serif 700 template
sans700 -- spit out sans 700 template
mono700 -- spit out mono 700 template

serl7 -- serif opened in leafpad, 700px viewport
serg7 -- serif opened in geany, 700px viewport
sanl7 -- sans opened in leafpad, 700px viewport
sang7 -- sans opened in geany, 700px viewport
monol7 -- mono opened in leafpad, 700px
monog7 -- mono opened in geany, 700px viewport
baek -- bookmarks menu (/nwp and puppy bookmarks(rox), aefull as a submenu)
baekt -- bookmarks menu (/nwp and puppy bookmarks(thunor), aefull as a submenu)
baekp -- bookmarks menu (/nwp and puppy bookmarks(pcman), aefull as a submenu)
baeks -- bookmarks menu (/nwp and puppy bookmarks(spacefm), aefull as a submenu)
mklpx (in terminal) -- make leafpad 5x5 notetaking pad in working directory (through terminal rather than launcher--it's also now a rox right click > new function).


the viewport function makes the line breaking stuff from earlier more or less obsolete. these are the pw,n launcher versions of the newer templates jwm, aemenu and rox call.
from http://www.murga-linux.com/puppy/viewto ... 662#918662

Puppus Dogfellow wrote:nwp-mc2.pet

fixed up some stuff in /root/.../rox..Templates, making the nwp work better as a right click utility in rox. tidying up that folder led me to condense the word processing templates to three, which are all new--they just add a help comment about the use of comments and add the viewport set to 700--Barry Kauler reported that worked well on his phone, and it's what the word processor FocusWriter also uses, and it seems to comfortably give documents a pdf layout that doesn't cut them at the margins, so it's the default, and it's now more easily accessible--the n, n1, n2, and n3 word processing menus (the latter two no longer labled as one another on the jwm and aemenus) all have the dual launchers (for simultaneous text editor plus browser viewing/work) and templates menus, and now so does rox's right click > new menu, and now they all have the 700px viewport by default option (it's a buried option in the templates > new folder--the wp folder now contains a folder of the panel frames, a set of the dual launchers, a set of templates, and a set of aemenu word processing and utilities menus--other than the pet making utilities (a new one added--it has a folder with a puppy skeleton and a drag and drop directory to pet converter), it's pretty much anything in the templates menu that could be construed as helping with word processing). the mcc make concurrent copies function has also undergone a similar cleanup--your customizations, if any, will be in the original folder as mcc-prev. i added a few more unextensioned options, plus a few for .bak and .~; the icons have been left out of the new version in the templates folder--the mc folder in /nwp still has them. all the aemenu functions are now on the baek menu (also a right click new option) as pop-off menus.

your old templates folder gets backed up as Templates-prev in its original location.
here's the new rox right click > new menu:

Puppus Dogfellow wrote:Image

http://i102.photobucket.com/albums/m90/ ... 1egwnb.gif


the pets don't install the right click options by default, but /nwp/c has some scripts that will swap out (and back up) your menu2 and .gtkrc (etc) files for those necessary to make the letter shortcuts (right side of screenshot) alterable--this has shown limited success for me on existing installations, always seems to work for remastered isos, sometimes works with merely killall and restarting rox, sometimes works after an x restart---it's not included by default for a reason or two, i guess. the templates for the folder of blank word processing templates, the base mono, serif, and sans set ones, those for config2pet and the menu-here items will be available via right click whether or not the keycuts take or even if no effort is made to install them--they're simply additions made to one of rox's templates folder (seems some pups have two (more?) distinct folders for this, others rely on symlinks...anyway, this tweak doesn't work as consistently as the ae or jwm implementations).

if you want the geany customization menus to function properly, you'll need the plugins installed and the geanytweak script clicked or activated (c/geanytweak in the launcher will activate it, c in the rox launcher (rl main launcher or use the new bookmarks menus) will take you to the folder so you can poke around (mostly install scripts and the location of configurations and customizations you store for future ports/installations through the port/store/configure submenus (mae in the launcher brings one up, but there are few floating around as various jwm submenus))--it swaps in the keyboard, gui, and plugin settings they're expecting.
from
Re: composite screeny, which may be deleted due to hugeness...
shows word processing items as rox right click options, jwm and ae bookmarks menus...


this thread's launcher and keycut bits are adequately up to date, especially if you take the links into account, so i'll hold off on that for a while.
this one's behind on some of the newer stuff but okay on the keycuts and launcher codes as well. here's an updated shot of the rox right click > new menu:
Attachments
nwp-rox-rtclk-new.jpg
(40.88 KiB) Downloaded 732 times

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

remapping and or nwping your keyboard

#197 Post by Puppus Dogfellow »

this one's behind on some of the newer stuff but okay on the keycuts and launcher codes as well. here's an updated shot of the rox right click > new menu:
didn't realize i had started a new page so i'll repost the lists, but first the most recent updates and features (a how-to-remap-your-keyboard of sorts (get the codes from xev and use a modifier if it's a system special reserve dealie) and better word processing templates more easily accessed):

from
menu and feature update: adapting keyboards and a menu fix
word processing improvements and keyboard remapping
:
from:
Post subject: small update plus how to nwp your auxiliary and media keys
Subject description: partially remapping, for example, a windows natural ergonomic 4000 keyboard



Puppus Dogfellow wrote:so that you can better process words or do whatever you'd like to do. template below is very heavily modded for nwp functions, though it's got some program specific items (geany's vtg and custom menus) and some mods that should function globally (keyboard as is doesn't really allow you do undo, redo, save, etc, but the jwm file below animates those otherwise dead keys. i left the function lock alone and would have by choice (didn't mess with print screen simply because i like it as screen shot and you could add to it ala key 230 (which you'll soon see)), but i couldn't get xev to identify the light switch or the spell key. messed around with some logitech stuff and it seems to map similar. will test out adesso as well and see how much of the media assignments are universal--on the pups i've used, the volume toggles invariably work, but the browser home buttons are more often than not dead, i find (they work/generally are an unwelcomed shock in xenial64, though).

tems main template menu has been updated and given a prominet key, as have maybe too many nwp codes in general. use the cheat sheet if the function is not immediately clear. use the includes files below (or variations of it) for your own keys, but double check that things are the same with xev even if your keyboard has an envelope button, a house button, etc (identical models should behave the same and not require this step).

from
stock jwm config file has two keyboard shortcuts for default
browser; here's half a dozen for the vtg with potentially hundreds to spare

Code: Select all

<JWM>
<!--replace the mixer lines (or comment them out) and add 
this file saved as /nwp/root3/msnatkb with 
<Include>/nwp/root3/msnatkb<Include> in their place
 -->
<Key mask="ACS4" keycode="160">exec:amixer sset Master toggle</Key>
<Key mask="ACS4" keycode="176">exec:amixer sset Master 1+,1+</Key>
<Key mask="ACS4" keycode="174">exec:amixer sset Master 1-,1-</Key>
<Key mask="ACS4" keycode="178">exec:defaultbrowser</Key>
<Key mask="ACS4" keycode="176">exec:defaultbrowser</Key>
<!-- 
<Key keycode="160">exec:amixer sset Master toggle</Key>
<Key keycode="176">exec:amixer sset Master 1+,1+</Key>
<Key keycode="174">exec:amixer sset Master 1-,1-</Key>
<Key keycode="178">exec:/nwp/duals</Key>
<Key keycode="236">exec:defaultbrowser</Key>
 -->
<Key keycode="111">exec:defaultscreenshot</Key>



<Key keycode="178">exec:window</Key>
<Key keycode="229">exec:recoll</Key>
<Key keycode="236">exec:tem</Key>

<Key keycode="183">exec:/nwp/n1</Key>
<Key keycode="184">exec:/nwp/n3</Key>
<Key keycode="93">exec:/nwp/n2</Key>
<Key keycode="131">exec:/nwp/n</Key>
<Key keycode="247">exec:/nwp/baek</Key>

<Key keycode="160">exec:1</Key>
<Key keycode="174">exec:2</Key>
<Key keycode="176">exec:0</Key>
<!--^(single, double, and supplemental windows menus) -->

<Key keycode="162">exec:/nwp/aef</Key>
<Key keycode="161">exec:galculator</Key>
<!--<Key mask="A" keycode="162">exec:/nwp/</Key>
<Key mask="A" keycode="161">window</Key>
^silver rung starting with 1--mag glass is now window button-->

<Key keycode="230">exec:/nwp/v</Key>

<Key mask="A" keycode="230">exec:/nwp/p</Key>
<Key mask="C" keycode="230">exec:/nwp/ch</Key>
<Key mask="S" keycode="230">exec:/nwp/gl</Key>
<Key mask="4" keycode="230">exec:/nwp/k</Key>
<Key mask="AC" keycode="230">exec:/nwp/ll</Key>
<Key mask="AS" keycode="230">exec:/nwp/rl</Key>
<Key mask="A4" keycode="230">exec:/nwp/pwns</Key>
<Key mask="CS" keycode="230">exec:/nwp/keys/2k</Key>
<Key mask="C4" keycode="230">exec:/nwp/keys/kch</Key>
<Key mask="S4" keycode="230">exec:/nwp/keys/kg</Key>
<Key mask="ACS" keycode="230">exec:/nwp/keys/kir</Key>
<Key mask="AC4" keycode="230">exec:/nwp/keys/kl</Key>
<Key mask="CS4" keycode="230">exec:/nwp/keys/kgi</Key>
<Key mask="ACS4" keycode="230">exec:/nwp/vtg5</Key>

<Key keycode="234">prev</Key>
<Key keycode="233">next</Key>

<Key mask="A" keycode="234">prev</Key>
<Key mask="A" keycode="233">next</Key>
<Key mask="C" keycode="234">prevstacked</Key>
<Key mask="C" keycode="233">nextstacked</Key>
<Key mask="S" keycode="234">sendl</Key>
<Key mask="S" keycode="233">sendr</Key>
<Key mask="4" keycode="234">ldesktop</Key>
<Key mask="4" keycode="233">rdesktop</Key>
<!--function rung:-->


<Key keycode="245">exec:/nwp/p</Key>
<Key keycode="135">exec:/nwp/keys/k/cz</Key>
<Key keycode="138">exec:/nwp/keys/k/cy</Key>
<Key keycode="137">exec:/nwp/keys/k/cn</Key>
<Key keycode="191">exec:/nwp/keys/k/co</Key>
<Key keycode="175">exec:/nwp/keys/k/cw</Key>
<Key keycode="228">exec:/nwp/keys/k/acswf16</Key>
<Key keycode="142">exec:/nwp/keys/k/acswf18</Key>
<Key keycode="218">exec:/nwp/keys/k/acswf17</Key>
<!--^set anchor, rectangular select to anchor, select to anchor-->
<Key keycode="213">exec:/nwp/keys/k/cs</Key>
<Key keycode="185">exec:/nwp/keys/k/cp</Key>
<Key keycode="78">exec:/nwp/lpx</Key>
<Key keycode="110">exec:/nwp/v</Key>


<Key keycode="157">exec:/nwp/keys/k/acswf15</Key>
<Key keycode="246">exec:/nwp/keys/k/acswf13</Key>
<Key keycode="251">exec:/nwp/keys/k/acswf14</Key>

<!--^move last, last used, move first-->


<Key mask="A" keycode="245">exec:/nwp/k</Key>
<Key mask="A" keycode="135">exec:/nwp/chab</Key>
<Key mask="A" keycode="138">exec:/nwp/chad</Key>
<Key mask="A" keycode="137">exec:/nwp/gab</Key>
<Key mask="A" keycode="191">exec:/nwp/gad</Key>
<Key mask="A" keycode="175">exec:/nwp/lab</Key>
<Key mask="A" keycode="228">exec:/nwp/lad</Key>
<Key mask="A" keycode="142">exec:/nwp/rab</Key>
<Key mask="A" keycode="218">exec:/nwp/rad</Key>
<Key mask="A" keycode="213">exec:/nwp/tem</Key>
<Key mask="A" keycode="185">exec:tas</Key>
<Key mask="A" keycode="78">exec:geany -i</Key>
<Key mask="A" keycode="110">exec:vtg5</Key>

<Key mask="A" keycode="157">exec:/nwp/keys/k/acswf16</Key>
<Key mask="A" keycode="246">exec:/nwp/keys/k/acswf18</Key>
<Key mask="A" keycode="251">exec:/nwp/keys/k/acswf17</Key>

<!--^set anchor, rectangular select to anchor, select to anchor-->
<!--
<Key mask="C" keycode="245">exec:</Key>
<Key mask="C" keycode="135">exec:</Key>
<Key mask="C" keycode="138">exec:</Key>
<Key mask="C" keycode="137">exec:</Key>
<Key mask="C" keycode="191">exec:</Key>
<Key mask="C" keycode="175">exec:</Key>
<Key mask="C" keycode="228">exec:</Key>
<Key mask="C" keycode="142">exec:</Key>
<Key mask="C" keycode="218">exec:</Key>
<Key mask="C" keycode="213">exec:</Key>
<Key mask="C" keycode="185">exec:</Key>
<Key mask="C" keycode="78">exec:</Key>
<Key mask="C" keycode="110">exec:</Key>
<Key mask="C" keycode="157">exec:</Key>
<Key mask="C" keycode="246">exec:</Key>
<Key mask="C" keycode="251">exec:</Key>
-->
<!--
<Key mask="4" keycode="245">exec:</Key>
<Key mask="4" keycode="135">exec:</Key>
<Key mask="4" keycode="138">exec:</Key>
<Key mask="4" keycode="137">exec:</Key>
<Key mask="4" keycode="191">exec:</Key>
<Key mask="4" keycode="175">exec:</Key>
<Key mask="4" keycode="228">exec:</Key>
<Key mask="4" keycode="142">exec:</Key>
<Key mask="4" keycode="218">exec:</Key>
<Key mask="4" keycode="213">exec:</Key>
<Key mask="4" keycode="185">exec:</Key>
<Key mask="4" keycode="78">exec:</Key>
<Key mask="4" keycode="110">exec:</Key>
<Key mask="4" keycode="157">exec:</Key>
<Key mask="4" keycode="246">exec:</Key>
<Key mask="4" keycode="251">exec:</Key>
-->

</JWM>

wasn't able to post either the comment wondering how to post beneath one's attachment or anything below the attachment, but above is a very nwp/pwn anubis heavy jwm keyboard insert file that will get back and multiply the functionality of some aftermarket keyboards (this is set to the ms ergo keyboard above--i'll eventually do remaps for some logitech products i have--an ergo wireless keyboard, a new version that's slim and has a trackpad but had no middle click function, --i figure one set to highlight the word processor/utilities pack and another to just maximize customizability and functionality--just rows of blank templates like i did with the function keys (the physical ones, not those in /nwp/keys/k).

as the comment says,
<!--replace the mixer lines (or comment them out) and add
this file saved as /nwp/root3/msnatkb with
<Include>/nwp/root3/msnatkb<Include> in their place
-->
this will get rid of your dublicate browser shortcuts, match up some (i didn't look into send or forward because i don't do that much--those have been remapped to set anchor, rectangular select to anchor, select to anchor) of the labels with reality, and make the nwp pretty easy to use. launcher code cheat sheet should explain program codes that otherwise seem cryptic.(many keys now launch aemenus).

keycuts for keycode 230 (the star button top middle) show how you can expand down on a key just about as easily or conveniently as across--just depends on what you can manage to arrange in a way that will make sense to you.


_________
from
Post subject: reprogramming aftermarket keyboards 1: ms natural ergo 4000
Subject description: noopin' out a great natural/getting use out of some buttons



from http://i102.photobucket.com/albums/m90/ ... wb0s0t.jpg, an image too big to considerately post, so the text bit:

keys marked with an asterisk (home, envelope, mute toggle, volume up, volume down) are premapped by the keyboard, the machine, or possibly your windows manager. in most cases, pressing a modifier key will reveal what key code is being used--most dedicated function keys seem to be modifiers plus regular keyboard keys. you can either start your modifications with those keys modified or you can remap the originals if possible--xev can't see them when they're pressed on their own, but most reveal the base key when a modifier is added. keys that don't work in this model are the light switch looking thing, the key marked "spell," and the key that toggles the function keys. home, mute, volume up and down are part of jwm's built ins (i intend to demote the original
functions to 4 modifiers. being labeled, they'll be easy to identify, and four is an easy enough number to remember.

Code: Select all

<Key keycode="251">exec:/nwp/keys/k/acswf14</Key>

for modified keys:
<Key mask="A" keycode="245">exec:/nwp/k</Key>
upcoming sample remap leaves a number of the global (but not in linux though many of the call codes are the same) labels active by calling their equivalent in nwp/keys/k, which is the location of the virtual keypad--cn (for control+n for the new key, co for open and the most of the rest of that row in manner called by that nwp subfolder and/or the k launcher) and similar is also a way to transfer your own oft-used keycuts to keyboard buttons. acsw=alt+control+shift+windows key. ACS4 is the jwm version of the same--seems most programs allow up to at least four modifiers...

the illustration bit:
_______

from
forgot to update the tem (templates menu) last time around
save as /nwp/tempa2
has the updated templates and doesn't need any permissions set. just save as /nwp/tempa2, overwriting your original.
here's a pic of the mapping on the nat ergo 4000:
Attachments
kbmsn.JPG
(48.76 KiB) Downloaded 696 times

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

another nwp update (nwp32/64.4)

#198 Post by Puppus Dogfellow »

from nwp32/64.4 --set run actions and icons for your files, some
more about the launchers and file generation, a bug fix that's a how-to for the newest one.
:

nwp64.4.pet

nwp32.4.pet
post is long enough but in short, the main feature of the upgrade is the ability to set run actions for your word processing files (or any other, though it was put together in part to a geany-vtg type start center). from the comments on a picture in a folder in my repo:
Quote:

another use for the mcc (make concurrent copies) function is assigning text files to pairs of programs (browser-text editor) by having the copies carry an extension that will set them apart from everything else. right click in rox to set both a run action (pick something from the duals folder, to continue on the word processing bent, though that's not strictly necessary) and icon. screen shot shows...
from

Post subject: ~572.64.1/6t4.1: a 64 bit version based on tahrpup64_6.0.5
Subject description: 2 versions are essentially the same--something's up with something's compression settings somewhere
, which has no subtitle but is part of Rattlehead's set run action quickly thread):

Puppus Dogfellow wrote:

Code: Select all

#!/bin/sh
#nwp64.4
echo application/x-def:*.mon >> /usr/share/mime/globs
echo 50:application/x-def:*.mon >> /usr/share/mime/globs2
echo application/x-def text/xml >> /usr/share/mime/subclasses
echo application/x-def >> /usr/share/mime/types
echo application/x-def:*.san >> /usr/share/mime/globs
echo 50:application/x-def:*.san >> /usr/share/mime/globs2
echo application/x-def:*.ser >> /usr/share/mime/globs
echo 50:application/x-def:*.ser >> /usr/share/mime/globs2
echo application/x-def:*.pwn >> /usr/share/mime/globs
echo 50:application/x-def:*.pwn >> /usr/share/mime/globs2
echo application/x-def:*.nwp >> /usr/share/mime/globs
echo 50:application/x-def:*.nwp >> /usr/share/mime/globs2
echo application/x-def:*.mono >> /usr/share/mime/globs
echo 50:application/x-def:*.mono >> /usr/share/mime/globs2
echo application/x-def:*.def >> /usr/share/mime/globs
echo 50:application/x-def:*.def >> /usr/share/mime/globs2
echo application/x-def2:*.def2 >> /usr/share/mime/globs
echo 50:application/x-def2:*.def2 >> /usr/share/mime/globs2
echo application/x-def2 text/xml >> /usr/share/mime/subclasses
echo application/x-def2 >> /usr/share/mime/types
echo application/x-def3:*.def3 >> /usr/share/mime/globs
echo 50:application/x-def3:*.def3 >> /usr/share/mime/globs2
echo application/x-def3 text/xml >> /usr/share/mime/subclasses
echo application/x-def3 >> /usr/share/mime/types
echo application/x-pwp:*.mons >> /usr/share/mime/globs
echo 50:application/x-pwp:*.mons >> /usr/share/mime/globs2
echo application/x-pwp text/xml >> /usr/share/mime/subclasses
echo application/x-pwp >> /usr/share/mime/types
echo application/x-pwp:*.sans >> /usr/share/mime/globs
echo 50:application/x-pwp:*.sans >> /usr/share/mime/globs2
echo application/x-pwp:*.sers >> /usr/share/mime/globs
echo 50:application/x-pwp:*.sers >> /usr/share/mime/globs2
#(copy in def pwp desktop files); fixmenus jwm -restart
#set run action:
mkdir -p /root/.config/rox.sourceforge.net/MIME-types
ln -s /usr/share/applications/pwp /root/.config/rox.sourceforge.net/MIME-types/application_x-pwp
ln -s /usr/share/applications/def /root/.config/rox.sourceforge.net/MIME-types/application_x-def
#set icon:
cp -f //usr/share/applications/icons-alt/inpare9.xpm /root/.config/rox.sourceforge.net/MIME-icons/application_x-def.png
cp -f /usr/share/applications/icons-alt/p2e0.xpm  /root/.config/rox.sourceforge.net/MIME-icons/application_x-pwp.png
[...]
Posted: Tue 06 Sep 2016, 20:23 Post subject: alternate version of above
Subject description: untested but i think it will work. am i overlooking something?
had the names on the icons wrong for one thing (left out a -x), but that method of setting them works so inconsistently (or i confused something by repeatedly swapping back and forth so many times) i ended up putting an alt-icons folder in usr//share/applications just so i could easily right-click assign them--it's a useless part of the script. :lol:

maybe messing with that /root/.config/rox.sourceforge.net/ROX-Filer/globicons file is a better way?(
Rattlehead
Posted: Wed 07 Sep 2016, 17:44 Post subject:
Speaking of icons...
[...]...
)

anyway, i used it in a pinstall script for a pet that was making most of a remaster and the copies all have the four extensions register as unique entities that can get their own programs and icon assignments (which is cool/i'm over the disappointment and inconvenience). :D
http://www.murga-linux.com/puppy/viewto ... 025#923025


nwp64.4.pet

nwp32.4.pet

from
fixing a bug with the auxiliary launchers or keycuts
pruning or setting drive arrays
:
that emboldened bit of gibberish was meant to say "as an alternative to a geany-vtg type start center." (any of the dual launcher codes prefacing a list of files will open them up in both a browser and editor. other than dragging and dropping files or groups of files onto the scripts or their .desktop representations, this seemed like the easiest way to process words (so to speak, so to speak) with the anuupuus (Word Processor (U..)Utilities Suite). now you get another way and some (i think) relatively nifty icons.

will have a bug fix pet to get rid of the ghost drives on the alternate pinboards and fix up the edit store port scripts (for now, don't use--just had the edpin wig out geany...---had to actually reboot to get out of the loop actually. lost a post and everything.)

there's no reason to issue a pet fix for the edpin problem--just use the auxiliary launchers or built-in keycuts to fix it. method one: main launcher (shift+spacebar), gl (opens the file in geany; use ll if you want to open the file in leafpad), enter, edpin, enter.

this opens up "edpin" for editing (if the file didn't exist, it would make a blank file with that name for you to save in the location of choice--gl and ll are word processing functions at least as much as configuration and maintenance tools) and presents

Code: Select all

#!/bin/sh 
geany /root/Choices/ROX-Filer/Pup* 
/nwp/edpin 
 

to fix it, add a pound sign to or delete the last line, making it

Code: Select all

#!/bin/sh 
geany /root/Choices/ROX-Filer/Pup* 
#/nwp/edpin #--this was supposed to have been commented out
 
had i just left the /nwp/part off (comment mark would've made it the title), no real harm would've been done--it would've just made a file called "edpin" that had no set location for its contentlessness (beyond /root/edpin--root seems to be geany's default location for files made this way. the ones you create through the file > new dialog i believe get made in /tmp...). as it stood, the file as command continually reactivated itself as the last step. comment makes it back into a tile, and brings up another error, this time in documentation.

maybe i was still in shock at having to reboot (such a simple script (when done right) and geany is normally so reliable...), but i should've pointed out that the bare dual launcher codes need to be prefaced with their full path (/nwp/) because the codes aren't part of the PATH (those that are can be bare. i.e. geany -i /root/1 /etc/2 will open up those files when you activate the vtg (either through the keyboard (alt+z), the menus (vtg or the cauliflower), the tray (cauliflower)...)). so, for example, if you want geany and pale moon to open the files, use

Code: Select all

/nwp/gp /path/to/file /path(s)/to/file(s) 
method one: main launcher (shift+spacebar), gl (opens the file in geany; use ll if you want to open the file in leafpad), enter, edpin, enter.
modifier(s)=Alt KEY=h -- /nwp/k
modifier(s)=Alt KEY=j -- /nwp/rl
modifier(s)=Alt KEY=k -- /nwp/gl
modifier(s)=Alt KEY=l -- /nwp/ll

default shortcuts for most recent spins/nwps use the above, so method two is alt+k (or l, if if you want the file opened in leafpad), add the pound sign, save. that will fix the script so that "edpin" in the launcher opens up the six new pins. (index finger gets k for key launcher because i at one time believed it would see more use, or, if used at all, would be used somewhat heavily). if you want driveless pins, or more control over their placement than normally holds in Puppy, look for the bit that has "args" in it. those are your drive icons (i.e. <icon x="32" y="836" label="sda1" args="drive ext4">/root/.pup_event/drive_sda1</icon>)

delete the lot for driveless, copy your extant set over from PuppyPin (no extra number) to have it on each of the alternate pins. since they are now frozen with the text file, they'll remain in (odd, if you so choose) position(s) even after the auto redrawing of icons that occurs at boot and X restarts.

if you want to automount all your drives, you could drag musher0's monter5 script out of quar in Startup. since alt plus spacebar is root, one of the first things i do on a new install is activate that shortcut, then navigate to startup adn /my-applications/bin and make those (by use of ctrl plus number) rox speed dials 2 and 3. if you want to automount at a click and your discretion, leave monter5 in /quar (alt+t spacebar then 2 to get to its parent folder if you followed the quick links howto above).

rox is cool. :D

(rl, the last launcher in that bank, is rox opened at /nwp/--the short names of the mostly blank directories are to provide quick cover for you and your creations--d plus enter in that one gets you a blank directory, nwp's version of My Documents, my-documents (though there's also a "docs"), etc).

have fun with it.
:D
not sure if this will help clarify things, or from where you need to enter the discussion to be in need of clarification, but this update and bugfix also seems to me to be a howto and an explanation of some more of the nwp's features.

further, while it does get documents created and saved and arguably sorted and stored, and all very quickly, the formatting is best kept for pasting into more proper word processors like google docs, libreoffice, or even notecase (which can also export to html (and therefore pdf)). the print view will give you a scalable interface, but lately isn't heeding the viewport, at least not in 64 bit. haven't tested on 32 bit lately, but it doesn't seem to work as consistently (is it a browser issue?) as i remembered. for my own use, i use the nwp((as in (A NWP/A NWPUS) primarily for document creation and modification and the utilities side of things. if i need to edit more formally, i paste into libre or google. i'll make a return to the minimal versions (under 50k) in a release or two, but these last two are relatively monstrous--14mb. there may be a weight reduction pet in the future to reduce this--there's some redundant documentation and many icons that can be autogenerated if needed...)
the newer tiny noop will be in at least two versions, both smaller than the original: http://www.murga-linux.com/puppy/viewto ... 360#860360. i'm thinking at least one version should incorporate the new Quasi-Proprietary File Type feature, possibly as an offshoot of the mcc (make concurrent copies) feature.

mcc: http://www.murga-linux.com/puppy/viewto ... 287#902287 (attachment at the end shows it being used for this purpose)




32/64.4 pet puts the alt-icons folder in your usr/share/applications diretory. it contains the drag and drop dual launchers for word processing use and some icons--right click a file to which you added one of those extensions (pwn, pwp, sans, ser, def3, def4, mons, mon...) to set an icon and run action for it. you've got four new categories, none of which have to be actually set for word processor use.

Image

the six choices (pp1-6 in the launcher) are really the same 2 three times each. one's more minimal and the other's got some tools useful for getting you first set up, though it's hard for me to say which i'd choose to mod--easier to drag to one or delete from the other...

shown are some of the suggested icons for the word processor (or libre--i actually prefer that odt icon to the regular one as it sets it apart from the docx files better). [...]


Attachments
mimetype-icon_change (1).gif
mcc function (indirectly) setting run action (not shown) and icon
(26.14 KiB) Downloaded 658 times

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

make caps lock control, scroll lock caps lock, and pile

#199 Post by Puppus Dogfellow »

more keyboard fun:

Cherry lost its patent on the mx mechanical keyboard switches in 2014 (or so i think i remember reading), and now you can pick up knockoffs pretty cheap--if the tenkeyless brown switch item i just got for 24 bucks shipped is any indication, they're way better than what normally comes with the machine.

anyway, dump the code below in a terminal to get the cap locks button made into an additional control button, the scroll lock button turned into a caps lock button, and a file set up for you to add to /root/.jwm/jwmrc-personal in case you want to use the pause break button for up to 16 functions (i suppose you could make one function pause break and another scroll lock--don't think i've ever used either of those).

Code: Select all

echo $'! backup your original map with xmodmap -pke > root/xmodmap-original.
! run xmodmap /root/xmodmap-original to undo the changes.
! move capslock to scroll lock and make the original capslock ctrl:
remove Lock = Caps_Lock
remove Control = Control_L
keycode 78 = Caps_Lock
keycode 66 = Control_L
add Lock = Caps_Lock
add Control = Control_L

' > /root/tklv1.xmodmap
echo $'#!/bin/sh
xmodmap /root/tklv1.xmodmap
#scroll lock=caps lock, caps lock=control; modify 110 key (pause break) through your wm.
' > /root/Startup/xmodtkl
chmod 755 /root/Startup/xmodtkl
/root/Startup/xmodtkl

echo $'<JWM>
<!--
add Include line below to /root/.jwm/jwmrc-personal
<Include>/root/jwmpausekey</Include>

Key bindings  
on this tenkeyless Velocifire, Pau is keycode 110. some examples:-->

<Key keycode="110">exec:xdotool key alt+ctrl+shift+super+F16</Key>
<Key mask="A" keycode="110">exec:xdotool key alt+ctrl+shift+super+F18</Key>
<Key mask="C" keycode="110">exec:leafpad</Key>
<Key mask="S" keycode="110">exec:/nwp/lpx</Key>
<Key mask="CA" keycode="110">escape</Key>
<Key mask="CS" keycode="110">select</Key>
<Key mask="AS" keycode="110">move</Key>
<Key mask="CAS" keycode="110">window</Key> 
<Key mask="4" keycode="110">exec:defaultbrowser</Key>
<Key mask="4A" keycode="110">root:2</Key>
<Key mask="4C" keycode="110">root:3</Key>
<Key mask="4S" keycode="110">exec:/nwp/n</Key>
<Key mask="4CA" keycode="110">exec:rox</Key>
<Key mask="4CS" keycode="110">exec:/nwp/aef</Key>
<Key mask="4AS" keycode="110">exec:vlc</Key>
<Key mask="4CAS" keycode="110">exec:/nwp/mae</Key> 

<!--
pulling a few from the /nwp/root3/9/jag menu (root2 on the last nwps):
<Program label="set anchor" icon="/nwp/keys/icons/icons-sup/as22.png">xdotool key alt+ctrl+shift+super+F16</Program>
<Program label="rectangular select to anchor" icon="/nwp/keys/icons/icons-sup/a2s.png">xdotool key alt+ctrl+shift+super+F18</Program>
<Program label="select to anchor" icon="/nwp/keys/icons/icons-sup/as222.png">xdotool key alt+ctrl+shift+super+F17</Program>
-->
</JWM>
' > /root/jwmpausekey
geany /root/jwmpausekey /root/.jwm/jwmrc-personal in a terminal to open the keyfile and the file you're adding the "includes" line to.

-----

just tested it on a more typical 101 (or so--logitech cheapo model and i didn't count--almost always 101-104 keys if it's got a number pad) key keyboard--works just the same (scroll lock, caps lock, and pause break appear to be named fairly consistently so the xmodmap part of the code should work in most things. use xev to double check or find more keycodes)

if you're thinking of getting one, 84 key models usually rely on Fn to get scroll and pause--the xmodmap part should still work fine, but you may need an extra key press for the other stuff (or it may not work at all. still have a couple in the mail--will check eventually).

xmodmap changes will take place as soon as you run the code. to incorporate your pause key tweaks into the system, you must run jwm -restart (or click it from the menu).

enjoy.
:D

________
(note: to get a backup of your current keymap, xmodmap -pke > /root/xmodmap-original. to activate it, xmodmap /root/xmodmap-original.)
________

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

more small keyboard tweaks

#200 Post by Puppus Dogfellow »

Code: Select all

#!/bin/sh
echo $'
#!/bin/sh
CMDLINE=$(yad --width=350 --skip-taskbar --center --on-top --fixed --sticky \
              --title="" --window-icon="/root/my-applications/bin/icons/purwup.png" \
              --entry --entry-label="Run command:"  \
              --column="command" --entry-text "xdotool mousemove ")
[ -z "$CMDLINE" ] && exit 0

$CMDLINE &
exit 0

' > /root/my-applications/bin/mous
# example: xdotool mousemove 110 550 click 1
echo $'
#!/bin/sh
/root/my-applications/bin/mous| xdotool sleep .3 key Right
' > /root/my-applications/bin/mou
chmod 755 /root/my-applications/bin/mou /root/my-applications/bin/mous

echo $'
#!/bin/sh
xmodmap /root/my-applications/bin/81.xmodmap
#scroll lock=caps lock, caps lock=control; modify 110 through wm.
' > /root/my-applications/bin/xmod81

echo $'
remove Lock = Caps_Lock
remove Control = Control_L
keycode 78 = Caps_Lock
keycode 66 = Control_L
add Lock = Caps_Lock
add Control = Control_L
keycode 129 = Menu
! fn + media player (F1) does nothing on my machine out of the box so that's the one i'm purposing
' > /root/my-applications/bin/81.xmodmap
chmod 755 /root/my-applications/bin/xmod81

echo $'
#!/bin/sh
xmodmap /root/my-applications/bin/81b.xmodmap
#scroll lock=caps lock, caps lock=control; modify 110 through wm.
' > /root/my-applications/bin/xmod81b

echo $'
remove Lock = Caps_Lock
keycode 78 = Caps_Lock
keycode 66 = Menu
add Lock = Caps_Lock
! caps lock becomes menu, scroll lock becomes caps lock
' > /root/my-applications/bin/81b.xmodmap
chmod 755 /root/my-applications/bin/xmod81b

echo $'
remove Lock = Num_Lock
remove Lock = Caps_Lock
remove Control = Control_L
keycode 78 = Caps_Lock
keycode 66 = Control_L
add Lock = Caps_Lock
add Control = Control_L
keycode 77 = Menu
! make numlock menu, caps lock control, scroll lock caps lock
' > /root/my-applications/bin/84.xmodmap

echo $'
#!/bin/sh
' > /root/my-applications/bin/xmod84
chmod 755 /root/my-applications/bin/xmod84
#cp -f /root/my-applications/bin/xmod84 /root/Startup/xmod84
#cp -f /root/my-applications/bin/xmod81 /root/Startup/xmod81
#cp -f /root/my-applications/bin/xmod81b /root/Startup/xmod81b
#/root/Startup/xmod81b
#/root/Startup/xmod81
#/root/Startup/xmod84
#copy your xmod settings to startup and run
add to jwmrc personal:


<Key mask="4" key="1">exec:xdotool click 1</Key>
<Key mask="4" key="2">exec:xdotool click 2</Key>
<Key mask="4" key="3">exec:xdotool click 3</Key>
<Key mask="4" key="4">exec:/root/my-applications/bin/mou</Key>


or


<Key mask="4" key="space">exec:/root/my-applications/bin/mou</Key>
<Key mask="4A" key="space">exec:xdotool click 1</Key>
<Key mask="4C" key="space">exec:xdotool click 2</Key>
<Key mask="4S" key="space">exec:xdotool click 3</Key>


<!-- <Key mask="4AC" key="space">exec:/root/my-applications/bin/menu</Key>
this one wouldn't work on the key either directly or through a script--see the xmodmap scripts/files to get the menu key back on models with 84 keys or fewer (main difference between 81 and 82 seems to be a missing right control button--my eighty two is missing that, number lock and menu; 84 is missing menu but has number lock on th FN layer)
-->

(general update based on the nwp update based on the previous post:
i couldn't get jwm to run "xdotool key Menu" from a key (works fine from a terminal), so to get it back on the abbreviated keyboards (most of my boards don't have it, just recently noticed it on a few, and have grown to like having it in a relatively short time), i opted for either the caps lock key, the number key, or a dead function key (the three variations above). next nwp will have this upgrade included.

win+1--click 1, win+2--click2, win+3--click3, win+4--mouse move launcher, mou in the launcher--mousemove launcher.
"mou" in a terminal will bring up the launcher if you're doing this non-nwp (code in the other thread writes most of the files and scripts to the nwp directory rather than my-applications/bin).

to use the launcher, just add the x coordinates of your choice, a space, then the y coordinates. (ie. 500 500). if the popup has the xdotool mousemove bit highlighted when it comes into view, hit the right arrow (and/or adjust the sleep time til it fits your setup).

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

two more ways to get bookmarks on your menus

#201 Post by Puppus Dogfellow »

a return to the motivation behind the original posts in the thread: the multi-panes are really multiple directories opened at once, so i'm using the close all rox script (it'll probably come in handy if you use anything from this post--those windows can really begin to bury you) as the example for how to get icons into your pup through the terminal.

Virtual Multi-Pane (really multiple windows/directories, but it more less functions as multi-pane) and a Close All Rox Windows Command Line Menu Install And Icon Creator/Placer. run as a script or dump into a terminal; modify and rerun as often as you like:

Code: Select all


#!/bin/sh
#rox multipane -- 3 templates
#(since rox will use default apps for most files, you can
#use these same templates for a variety of batch launching,
#(but by then you could just swap out executables or swap in scripts))

#you could use any pic on your system for the icon if you swap in
#the correct path for it--i just went with what was in  #/usr/share/applications/ROX-Filer-file-manager.desktop

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=ROX-4
Icon=/usr/share/pixmaps/puppy/open.svg
Comment=rox multipane--change number and paths of dirs belows
Exec=rox /mnt /root/.config  /root/Choices /root/Desktop
Terminal=false
Type=Application
Categories=FileManager
GenericName=rox4
' > /usr/share/applications/ROX-4.desktop
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=ROX-3
Icon=/usr/share/pixmaps/puppy/open.svg
Comment=rox multipane--change number and paths of dirs belows
Exec=rox /mnt /root/my-documents /usr/share/applications
Terminal=false
Type=Application
Categories=FileManager
GenericName=rox3
' > /usr/share/applications/ROX-3.desktop
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=ROX-2
Icon=/usr/share/pixmaps/puppy/open.svg
Comment=rox multipane--change number and paths of dirs belows
Exec=rox /root/.jwm /etc/xdg/templates
Terminal=false
Type=Application
Categories=FileManager
GenericName=rox2
' > /usr/share/applications/ROX-2.desktop
#add an icon for the next .desktop 
#(rox colored (turquoise) X on a transparent background)
#default action for open as text changed transparent to black
#so i had to manually swap in the "none"

echo $'
/* XPM */
static char *cr_xpm[] = {
"21 21 2 1",
"0	c none",
"1	c #00FFFF",
"000000000000000000000",
"000000000000000000000",
"001000000000000000100",
"000100000000000001000",
"000010000000000010000",
"000001000000000100000",
"000000100000001000000",
"000000010000010000000",
"000000001000100000000",
"000000000101000000000",
"000000000010000000000",
"000000000101000000000",
"000000001000100000000",
"000000010000010000000",
"000000100000001000000",
"000001000000000100000",
"000010000000000010000",
"000100000000000001000",
"001000000000000000100",
"000000000000000000000",
"000000000000000000000"
};
' > /usr/share/pixmaps/puppy/cr.xpm

#all those "multipanes" can start to bury you in windows, so 
# here's an easy way to close them all
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=Rox-CloseAll
Icon=/usr/share/pixmaps/puppy/cr.xpm
Comment=close all rox
Exec=rox -D /
Terminal=false
Type=Application
Categories=FileManager
GenericName=Rox-CloseAll
' > /usr/share/applications/Rox-CloseAll.desktop
fixmenus
jwm -reload

#other choices for menu position/category include:
#Utility;WordProcessor;FileSystem;System;Amusement;X-Internet-browser;TextEditor;Player;Recorder;X-Document;RasterGraphics
#(pick a .desktop file from /usr/share/applications whose menu position is close to what you want for your item and copy its category listing for your own .desktop), then run fixmenus; jwm -reload
the icon is just a turquoise (rox-colored) X i made in mt-paint and saved as .xpm. right click it to open it as text so you can include it in your script (you could also just point to any existing icon on your system you'd like to use).

swap out directories and how many you want launched, alter the position, sprinkle the menu with close-all-rox commands. use the same template to launch multiple files in geany or multiple windows in leafpad (as examples).

from the comments, the only problem i found from making .xpm icons this way:
[...]
#(rox colored (turquoise) X on a transparent background)
#default action for open as text changed transparent to black
#so i had to manually swap in the "none"
when i checked to see if it worked, i noticed that my transparency was turned to black so i had to change the #000000 (black) to none.

sandwich the icons and .desktops you'd like to make with

Code: Select all

echo $'
(content--script spits out a sample create-file-with-content template)
' > (path to file)
(cnt in the nwp's pwn launcher if you have that installed) and modify and run the file (or parts of it) as needed. the above is set for one each of a two, three, and four window launch.

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

space bar keybank toggle and mini word processor

#202 Post by Puppus Dogfellow »

without a fix.

the word processing project in this thread goes back quite a while:

Puppus Dogfellow
Tue 16 Jun 2015, 02:37 Post subject: nearly all the custom packs in one folder that can be left
Subject description: outside your save file/shared with other puppies on your system
Gaexec_Paexack-jwm.tar.xz http://www.murga-linux.com/puppy/viewto ... 016#851016

Puppus Dogfellow
Sun 13 Dec 2015, 09:00 Post subject: jwm word processor functions plus a bunch of other stuff.
Subject description: 827kb http://murga-linux.com/puppy/viewtopic. ... 695#876695

and the additional menus idea
(
Puppus Dogfellow
Thu 21 Aug 2014, 19:45 Post subject: 9 Pack Of JWM Menus
Subject description: the escape key as seven additional menu buttons
http://www.murga-linux.com/puppy/viewto ... 032#796032
)

turned into 6 banks of keys, toggles, to which i'm going to add a few more. before i get to the long paste-in, a little background. if you've installed the nwp, you have the following keys as spacebar shortcuts:

Code: Select all


<Key mask="A" key="space">exec:rox</Key>
<Key mask="C" key="space">exec:/nwp/ww</Key>
<Key mask="S" key="space">exec:/nwp/p</Key>
<Key mask="CA" key="space">exec:/nwp/rr</Key>
<Key mask="CS" key="space">exec:/nwp/cr</Key>
<Key mask="AS" key="space">exec:/nwp/t</Key>
<Key mask="CAS" key="space">exec:/nwp/rup</Key> 
(rup--up from the bottom of the rox bookmarks recents, t--terminal, cr--close all rox, rr--rox recents, p --main launcher, ww--MochiMoppel's WinSwitcher).

if not, that chunk of text added to /root/.jwm/jwmrc-personal will give you them (after a fixmenus; jwm -restart and the creation of the destination files (or just make a /nwp folder for now)). you can use the above as a template for your own needs, or use them in conjunction with the mini word processor:

from http://murga-linux.com/puppy/viewtopic. ... 194#993194,
[5/25/18] at 16:38 Post subject: mcbwp "plugin" updated to mcbwp1; encompassing 1.5 updated
Subject description: and based on 1.4; box1 spun off as ewp--The Emergency Word Processor; fixes for tab sp. issue

Puppus Dogfellow wrote:bwp1.5 (46k)
mcbwp1 (12k)

ewp--EmergencyWordProcessor.html (159k)
ewp--EmergencyWordProcessor.html.gz (25k)

box1.1.html (159k)
box1.1.html.xz (18k)

if you activate the swap (the script's name in the launcher or clicking the script will do it), alt+ctrl+space will add a tab space, and alt+shift+space will spit out the page break code.
larger bwp's desktop file now active (guess that howto will have to wait some more--the keys and indentation issue have gotten in the way), and box1 and 2 are no longer copies of one another; preloading the boxes with the templates and styles sheets (turns out you have to paste into and download from the first box regardless it seems) allows the file to recreate (possibly customized on the fly) the styles and templates sheets, and so is a word processor maker of a sort. the autoindenting paragraph templates will be the next update of the old pu/up (the first micro word processor spinoff in this thread), and you could use a special character or some sort of find and replace strategy after the fact, but if you want to type in tab spaces in browser mode, i think one solution could be to make a toggle of the space bar keys:




these are the built in spacebar shortcuts:

Code: Select all

<Key mask="A" key="space">exec:rox</Key>
<Key mask="C" key="space">exec:/nwp/ww</Key>
<Key mask="S" key="space">exec:/nwp/p</Key>
<Key mask="CA" key="space">exec:/nwp/rr</Key>
<Key mask="CS" key="space">exec:/nwp/cr</Key>
<Key mask="AS" key="space">exec:/nwp/t</Key>
<Key mask="CAS" key="space">exec:/nwp/rup</Key> 
(rup--up from the bottom of the rox bookmarks recents, t--terminal, cr--close all rox, rr--rox recents, p --main launcher, ww--MochiMoppel's WinSwitcher; names are launch codes and shorter is usually better, but there are a few that i've had to make because i've forgotten their convenient original name)


new nwp shortcuts and a couple of blanks for browser based word processor use:

Code: Select all

echo $'
#!/bin/sh
#newspacekeys /root/.jwm/jwmrc-personal
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /root/.jwm/jwmrc-personal
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /root/.jwm/jwmrc-personal
fixmenus; jwm -restart
' >/nwp/jtab
chmod 755 /nwp/jtab

echo $'
#!/bin/sh
#root3-9
#newkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9/keys0
#root3-9
#newkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9/keys1
fixmenus; jwm -restart
' >/nwp/spc9
chmod 755 /nwp/spc9

echo $'
#!/bin/sh
#root3-9m
#newkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9menusblanks/keys0
#newkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9menusblanks/keys1
fixmenus; jwm -restart
' >/nwp/spc9m
chmod 755 /nwp/spc9m

echo $'
#!/bin/sh
#root3-10
#newkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/10/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/10/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/10/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/10/keys0
#root3-10
#newkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/10/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/10/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/10/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/10/keys1
fixmenus; jwm -restart
' >/nwp/spc10
chmod 755 /nwp/spc10


#
#reverse:
#



echo $'
#!/bin/sh
#revkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9/keys0
#revkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9/keys1
fixmenus; jwm -restart
' >/nwp/spc9r
chmod 755 /nwp/spc9r
echo $'
#!/bin/sh
revkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9menusblanks/keys0
#revkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9menusblanks/keys1
fixmenus; jwm -restart
' >/nwp/spc9mr
chmod 755 /nwp/spc9mr
echo $'
#!/bin/sh
#revkeys0:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/10/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/10/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/10/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/10/keys0
#revkeys1:
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/10/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/10/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/10/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/10/keys1
fixmenus; jwm -restart
' >/nwp/spc10r
chmod 755 /nwp/spc10r
echo $'
#!/bin/sh
#space key toggle back(jwmrc-p):
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /root/.jwm/jwmrc-personal
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /root/.jwm/jwmrc-personal
fixmenus; jwm -restart
' >/nwp/jtabr
chmod 755 /nwp/jtabr


#
#all at once:

#in:




echo $'
#!/bin/sh
#newspacekeys 
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /root/.jwm/jwmrc-personal
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9/keys0
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9/keys1
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9menusblanks/keys0 
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/9menusblanks/keys1 
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/10/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/10/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/10/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/10/keys0
sed -i \'/"CA" key="space">exec:\/nwp\/rr/ s//"CA" key="space">exec:\/nwp\/bh1/g\' /nwp/root3/10/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/t/ s//"AS" key="space">exec:\/nwp\/bh2/g\' /nwp/root3/10/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/cr/ s//"CS" key="space">exec:\/nwp\/bh3/g\' /nwp/root3/10/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/rup/ s//"CAS" key="space">exec:\/nwp\/bh4/g\' /nwp/root3/10/keys1
fixmenus; jwm -restart

' >/nwp/bwpk1
chmod 755 /nwp/bwpk1


#
#reverse:
#


echo $'
#!/bin/sh
#revkeys
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9/keys0
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9/keys1
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9menusblanks/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9menusblanks/keys0 
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/9menusblanks/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/9menusblanks/keys1 
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/10/keys0
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/10/keys0
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/10/keys0
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/10/keys0
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /nwp/root3/10/keys1
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /nwp/root3/10/keys1
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /nwp/root3/10/keys1
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /nwp/root3/10/keys1
sed -i \'/"CA" key="space">exec:\/nwp\/bh1/ s//"CA" key="space">exec:\/nwp\/rr/g\' /root/.jwm/jwmrc-personal
sed -i \'/"AS" key="space">exec:\/nwp\/bh2/ s//"AS" key="space">exec:\/nwp\/t/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CS" key="space">exec:\/nwp\/bh3/ s//"CS" key="space">exec:\/nwp\/cr/g\' /root/.jwm/jwmrc-personal
sed -i \'/"CAS" key="space">exec:\/nwp\/bh4/ s//"CAS" key="space">exec:\/nwp\/rup/g\' /root/.jwm/jwmrc-personal
fixmenus; jwm -restart

' >/nwp/bwpk1
chmod 755 /nwp/bwpk1r
you can copy them over from nwp to ~/my-apps/bin or the ~/my-apps/mc/scripts folder the pets make (already in the nwp, but if you didn't have it installed, it'd make them), and fill them out with chunks you hone from the vtg sheet.

here's a template for a couple of bwp helpers and a couple of blanks (plus cr as an example to show where you add the code). putting the code on a separate script rather than in the window manager file means you can adjust what the keys do without having to restart or reload the manager or fix the menus):

Code: Select all


echo $'
#!/bin/sh

rox -D /
' > /nwp/cr
chmod 755 /nwp/cr


echo $'
#!/bin/sh
#bwp helper 1--tab spaces for browser mode
xdotool type "     "
#set at five spaces
' > /nwp/bh1
chmod 755 bh1
echo $'
#!/bin/sh
#as key does same as paw in launcher
#page break after, white text (if any). paw.
xdotool type \'<par style="font-size: 11pt; color:white; page-break-after: always"></par>\'
#bwp helper two--page break code spit out for text editor view (there's a cut and paste version in styles2 that works in browser mode for bh1 and bh2)
' > /nwp/bh2
chmod 755 bh2

echo $'
#!/bin/sh

' > /nwp/bh3
chmod 755 bh3

echo $'
#!/bin/sh

' > /nwp/bh4
chmod 755 bh4


echo $'#!/bin/sh

' > /nwp/bh4
chmod 755 bh4

permissions are set--just fill out the content.
mkdir -p /nwp in the terminal will give a place for the above if you don't feel like making one yourself and swapping out the default path for yours.

word processor works by giving you an editable browser tab with formatting you can cut and paste from templates.

enjoy.

:D

User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

panel frames and pinboard swaps on the jwm menus

#203 Post by Puppus Dogfellow »

from http://www.murga-linux.com/puppy/viewto ... 45#1034645
Re: panels and pins on the jwm menus
-------

Puppus Dogfellow wrote:

Code: Select all

echo $'<JWM>
<Menu label="Panels and Pins" icon="" height="16">
<Program label="panel frame set1" icon="">/nwp/p1</Program>
<Program label="panel frame set2" icon="">/nwp/p2</Program>
<Program label="panel frame set3" icon="">/nwp/p3</Program>
<Program label="panel frame set4" icon="">/nwp/p4</Program>
<Program label="panel frame set5" icon="">/nwp/p5</Program>
<Program label="panel frame set6" icon="">/nwp/p6</Program>
<Program label="panel frame set7" icon="">/nwp/p7</Program>
<Program label="panel frame set8" icon="">/nwp/p8</Program>
<Program label="panel frame set9" icon="">/nwp/p9</Program>
<Menu label="Pins" icon="" height="16">
<Program label="pinboard 1" icon="">/nwp/pp1</Program>
<Program label="pinboard 2" icon="">/nwp/pp2</Program>
<Program label="pinboard 3" icon="">/nwp/pp3</Program>
<Program label="pinboard 4" icon="">/nwp/pp4</Program>
<Program label="pinboard 5" icon="">/nwp/pp5</Program>
<Program label="pinboard 6" icon="">/nwp/pp6</Program>
<Program label="make  6 puppy pins for pp# series" icon="">/nwp/mk6p</Program>
</Menu>
</Menu>

<!--  you could use any name for the icon then make the scripts to match after the fact-->
</JWM>
' > /root/.jwm/pansnpins
sed -i 's/<Menu label="Shutdown/<Include>\/root\/.jwm\/pansnpins<\/Include>\n<Menu label="Shutdown/' /etc/xdg/templates/_root_.jwmrc
jwm -reload

#to add the <Include>/root/.jwm/pansnpins</Include> to one of the other menus, uncomment the line below pick a spot in one of the other menus:
#geany -i /nwp/root3/9/root0menu /nwp/root3/9/root1menu /nwp/root3/9/root2menu /nwp/root3/9/root4menu /nwp/root3/9/root5menu /nwp/root3/9/root6menu /nwp/root3/9/root7menu /nwp/root3/9/root8menu /nwp/root3/9/root9menu
#the -i opens it in a new window (search and replace by session to work on these files in a new window without affecting your other stuff.)
#geany -i /etc/xdg/templates/_root_.jwmrc #to change the location of the line added by the above script 



#menu is already under rox in the n aemenu (n in the launcher >rox> panels and pins)
#for icons see http://www.murga-linux.com/puppy/viewtopic.php?p=1031459#1031459
#for more on panels, see http://www.murga-linux.com/puppy/viewtopic.php?p=1031770#1031770
#non anuupuus/approximatic (these spins) setups can use either of the above posts for the panel part of the scripts.
#and grab the pinboard codes from: http://www.murga-linux.com/puppy/viewtopic.php?p=1034601#1034601

dump the above into a terminal to get the aemenu rox submenu for the panels and pins (n in launcher) on the right click menu. see
http://www.murga-linux.com/puppy/viewto ... 01#1034601
http://www.murga-linux.com/puppy/viewto ... 70#1031770
http://www.murga-linux.com/puppy/viewto ... 459#103145

for more on icons, panels, and the pinboard swaps. you don't have to follow any of those directions except to get icons since the swapping scripts exist in /nwp, but the general purpose versions (linked and in the comments) use the terminal instead of the launcher so work out of /root/my-applications/bin. the icon making scripts are built in--just run the code in the link and pick your icons (you could also reuse the pinboard icons in /usr/share/applications/icons-alt). if you put them in an icon path (like /root/puppy-reference/mini-icons) you only need the name in the icon="" field. if in some random spot on your system, use the full path between the quotation marks.

...

the four hundred or so icons (0-9 in the default mcc colors) are only about 11k gz compressed, so i'll add them at the end of this post.


default location for menu and submenu is above the shutdown menu (right click/alt+3)
---------------



Puppus Dogfellow wrote:just as you can swap out panels/panel frame sets to swap in keyboard shortcuts (or programs) assigned through rox to icons you put there, you can swap shortcuts and icons by swapping the puppy pinboard in and out (but you'd have to make copies of it first,which is one of the first things i did with the original MCC utility. using the code to make five additional copies and some tiny scripts to flip through the pinboards, you can have a similar utility for the main background that works like the earlier one for the panels:

Code: Select all

#!/bin/sh
#make into a script or dump into a terminal:
echo $'	#!/bin/sh
#(older comments from nwp utility) name mk6ps and place in /nwp or just run in terminal as:  cd /root/Choices/ROX-Filer; for f in PuppyPin{2..6} ; do cp PuppyPin $f ; done
cd /root/Choices/ROX-Filer
# nwp menu entry for aemenu: cmd "make  6 puppy pins for pp# series" "/nwp/mk6p"
# nwp menu entry  for jwm: <Program label="make  6 puppy pins">/nwp/mk6p</Program>
for f in PuppyPin{2..6} ; do cp PuppyPin $f ; done
' > /root/my-applications/bin/mk6p
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin1
' > /root/my-applications/bin/pp1
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin2
' > /root/my-applications/bin/pp2
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin3
' > /root/my-applications/bin/pp3
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin4
' > /root/my-applications/bin/pp4
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin5
' > /root/my-applications/bin/pp5
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin6
' > /root/my-applications/bin/pp6
chmod 755 /root/my-applications/bin/pp*
chmod 755 /root/my-applications/bin/mk6p

#swap out the path /root/my-applications/bin for /root/Desktops/desktops/scripts to use it with the desktop idea from http://murga-linux.com/puppy/viewtopic.php?p=1031769#1031769
#mkdir -p /root/Desktop/desktops/{scripts,icons/{pans,defaults,dirs,conf,cus}} 
#use a set made but you didn't use from the panels for the icons...
#panels: http://murga-linux.com/puppy/viewtopic.php?p=1031459#1031459
#... set of 9 alternate icons in directory as above. 	 


[...]
___________

grab the codes for the panel swaps and see the default icon code and colors from http://www.murga-linux.com/puppy/viewto ... 59#1031459 (PostPosted: Wed 03 Jul 2019, 08:27 Post subject: panel frame "plugin" and icon template
Subject description: 4 panels toggle on and off. set of 9. alternate icons in directory as above) or use the link at top and grab the pans.tar.gz that's already done.

___________

Code: Select all


echo $'<JWM>
<Menu label="Panels and Pins" icon="" height="16">
<Program label="panel frame set1" icon="">p1</Program>
<Program label="panel frame set2" icon="">p2</Program>
<Program label="panel frame set3" icon="">p3</Program>
<Program label="panel frame set4" icon="">p4</Program>
<Program label="panel frame set5" icon="">p5</Program>
<Program label="panel frame set6" icon="">p6</Program>
<Program label="panel frame set7" icon="">p7</Program>
<Program label="panel frame set8" icon="">p8</Program>
<Program label="panel frame set9" icon="">p9</Program>
<Menu label="Pins" icon="" height="16">
<Program label="pinboard 1" icon="">pp1</Program>
<Program label="pinboard 2" icon="">pp2</Program>
<Program label="pinboard 3" icon="">pp3</Program>
<Program label="pinboard 4" icon="">pp4</Program>
<Program label="pinboard 5" icon="">pp5</Program>
<Program label="pinboard 6" icon="">pp6</Program>
<Program label="make  6 puppy pins for pp# series" icon="">mk6p</Program>
</Menu>
</Menu>

<!--  you could use any name for the icon then make the scripts to match after the fact-->
</JWM>
' > /root/.jwm/pansnpins
sed -i 's/<Menu label="Shutdown/<Include>\/root\/.jwm\/pansnpins<\/Include>\n<Menu label="Shutdown/' /etc/xdg/templates/_root_.jwmrc
jwm -reload


Post Reply