A NWP/A NWPUS--A Noob's Word Processor and Utilities Suite

Word processors, spreadsheets, presentations, translation, etc.
Message
Author
User avatar
Puppus Dogfellow
Posts: 1667
Joined: Tue 08 Jan 2013, 01:39
Location: nyc

another update/upgrade

#46 Post by Puppus Dogfellow »

nwp-jwm-aem-1.tar.xz

a few configuration updates, but not much change apart from a bug fix or two. it seems choosing one fewer command for inserting files cost the ability to use the geany ten config quick switch--the newer version of the install scripts leave jwmrc in /etc alone apart from the commented out tray. main insert now goes on jwmrc-personal (which is what the config switch commands call/swap). documentation improvements, a quick way to get your rox filer to allow letter key shortcuts for right click functions (http://www.murga-linux.com/puppy/viewto ... 678#876678, if you don't feel like checking out included instruction file or waiting until you get to the quote at the end post), some fixes to a few of the scripts in nwp (elp and sehd off the top of my head; xdotool needs double quotes if you want a manual fix of sehd--ll in the launcher, sehd, just swap out single quotes for doubles).

added some scripts for config help:

config help:
joop - open jwm and nwp config files (mtk and keys series, jwmrc tray, personal, and the one in /etc.)
joopf - joop plus the three scripts immediately following this one
root9 - default set of 9 menus
root10 - same as above for root1 (left click, alt plus 1) menu, but the others are generally just the desktops slot or blank
root9b - open up nine blank menu templates (adjust mtk2's includes line).

the new install scripts:

Code: Select all

#--------------------------- 
#!/bin/sh
# 390x1 -- version for top tray, nine menus, regular bottom tray moved over a pixel
# mbm activates MochiMoppel's bookmark script, which will put your rox bookmarks on a jwm submenu
cp /nwp/ww /root/my-applications/bin/ww
cp /nwp/f /root/my-applications/bin/f
cp /nwp/t /root/my-applications/bin/t
cp /nwp/p /root/my-applications/bin/p
cp /nwp/rr /root/my-applications/bin/rr
cp /nwp/w11 /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl
sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<!-- <Include>\/root\/.jwmrc-tray<\/Include>-->/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/<JWM>/<JWM> \n <!--<Include>\/root\/.jwmrc-tray<\/Include>--> \n <Include>\/nwp\/root3\/9\/mtk3<\/Include>/' /root/.jwm/jwmrc-personal
#changed back to putting the mtk file in jwmrc-personal so the geany custom configuration shorts still function
#sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<Include>\/nwp\/root3\/9\/mtk3<\/Include>/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/x="0"/x="1"/' /root/.jwmrc-tray
fixmenus
jwm -restart
/nwp/mbm
/nwp/joop
#added w11 to  /root/my-applications/bin--enter into terminal to find out geometry of desktop's windows
# and what windows are on what desktop (12/12/15). use to make custom size and place scripts (open q5 in the launcher, 
#pick something easier to remember to call it by, save as that name, plug in new coordinates--x,y,w,h follow the -e 0. swap ACTIVE for SELECT
# to have the cursor turn to cross hairs for next click. first line below is q5, second has the fields labeled and target switched from active to select.
#wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,225,235,550,400
#wmctrl -r :SELECT: -b remove,maximized_vert,maximized_horz && wmctrl -r :SELECT: -e 0,x,y,w,h
#--------------------------- 
#!/bin/sh
#top and left trays added, nine menus added, bottom tray swapped:
# mbm activates MochiMoppel's bookmark script, which will put your rox bookmarks on a jwm submenu
#390
cp /nwp/ww /root/my-applications/bin/ww
cp /nwp/f /root/my-applications/bin/f
cp /nwp/t /root/my-applications/bin/t
cp /nwp/p /root/my-applications/bin/p
cp /nwp/rr /root/my-applications/bin/rr
cp /nwp/w11 /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl
sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<!-- <Include>\/root\/.jwmrc-tray<\/Include>-->/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/<JWM>/<JWM> \n <!--<Include>\/root\/.jwmrc-tray<\/Include>--> \n <Include>\/nwp\/root3\/9\/mtk<\/Include>/' /root/.jwm/jwmrc-personal
#changed back to putting the mtk file in jwmrc-personal so the geany custom configuration shorts still function
#sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<Include>\/nwp\/root3\/9\/mtk<\/Include>/' /etc/xdg/templates/_root_.jwmrc
#sed -i 's/<RootMenu label="Menu" labeled="false" height="24" onroot="3">/<RootMenu label="Menu" labeled="false" height="24" onroot="3">\n<Include>\/nwp\/root3\/menu3<\/Include>\n<Include>\/nwp\/root3\/nwpmenujwm<\/Include>/' /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
/nwp/mbm
#
#additional changes to root 3 commented out
#added w11 to  /root/my-applications/bin--enter into terminal to find out geometry of desktop's windows
# and what windows are on what desktop (12/12/15). use to make custom size and place scripts (open q5 in the launcher, 
#pick something easier to remember to call it by, save as that name, plug in new coordinates--x,y,w,h follow the -e 0. swap ACTIVE for SELECT
# to have the cursor turn to cross hairs for next click. first line below is q5, second has the fields labeled and target switched from active to select.
#wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,225,235,550,400
#wmctrl -r :SELECT: -b remove,maximized_vert,maximized_horz && wmctrl -r :SELECT: -e 0,x,y,w,h
#--------------------------- 

#!/bin/sh


#392 -- top and left trays added, nine menus added, bottom tray swapped, two additional menus added to root3:
# mbm activates MochiMoppel's bookmark script, which will put your rox bookmarks on a jwm submenu
# nwp full 
cp /nwp/ww /root/my-applications/bin/ww
cp /nwp/f /root/my-applications/bin/f
cp /nwp/t /root/my-applications/bin/t
cp /nwp/p /root/my-applications/bin/p
cp /nwp/rr /root/my-applications/bin/rr
cp /nwp/w11 /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl
sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<!-- <Include>\/root\/.jwmrc-tray<\/Include>-->/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/<JWM>/<JWM> \n <!--<Include>\/root\/.jwmrc-tray<\/Include>--> \n <Include>\/nwp\/root3\/9\/mtk<\/Include>/' /root/.jwm/jwmrc-personal
#changed back to putting the mtk file in jwmrc-personal so the geany custom configuration shorts still function
#sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<Include>\/nwp\/root3\/9\/mtk<\/Include>/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/<RootMenu label="Menu" labeled="false" height="24" onroot="3">/<RootMenu label="Menu" labeled="false" height="24" onroot="3">\n<Include>\/nwp\/root3\/menu3<\/Include>\n<Include>\/nwp\/root3\/nwpmenujwm<\/Include>/' /etc/xdg/templates/_root_.jwmrc
/nwp/mbm
fixmenus
jwm -restart
#added w11 to  /root/my-applications/bin--enter into terminal to find out geometry of desktop's windows
# and what windows are on what desktop (12/12/15). use to make custom size and place scripts (open q5 in the launcher, 
#pick something easier to remember to call it by, save as that name, plug in new coordinates--x,y,w,h follow the -e 0. swap ACTIVE for SELECT
# to have the cursor turn to cross hairs for next click. first line below is q5, second has the fields labeled and target switched from active to select.
#wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,225,235,550,400
#wmctrl -r :SELECT: -b remove,maximized_vert,maximized_horz && wmctrl -r :SELECT: -e 0,x,y,w,h


#---------------------------
#!/bin/sh

# 390r -- version with more 2 minimalistic 9 menu sets available but commented out. joop opens files for editing. three custom trays--you lose the stock bottom tray.
# mbm activates MochiMoppel's bookmark script, which will put your rox bookmarks on a jwm submenu
#root9, root9b, and root10 in the main launcher open the main nwp 9 menu set and both reduced nine menu sets. adjust mtk2(opened by joop) to match your choice.
#joopf (joop full) opens joop plus the three 9 menu sets
cp /nwp/ww /root/my-applications/bin/ww
cp /nwp/f /root/my-applications/bin/f
cp /nwp/w11 /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/w11
cp /nwp/t /root/my-applications/bin/t
cp /nwp/p /root/my-applications/bin/p
cp /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl
sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<!-- <Include>\/root\/.jwmrc-tray<\/Include>-->/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/<JWM>/<JWM> \n <!--<Include>\/root\/.jwmrc-tray<\/Include>--> \n <Include>\/nwp\/root3\/9\/mtk2<\/Include>/' /root/.jwm/jwmrc-personal
#changed back to putting the mtk file in jwmrc-personal so the geany custom configuration shorts still function
#sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<Include>\/nwp\/root3\/9\/mtk2<\/Include>/' /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
/nwp/mbm
/nwp/joop
#added w11 to  /root/my-applications/bin--enter into terminal to find out geometry of desktop's windows
# and what windows are on what desktop (12/12/15). use to make custom size and place scripts (open q5 in the launcher, 
#pick something easier to remember to call it by, save as that name, plug in new coordinates--x,y,w,h follow the -e 0. swap ACTIVE for SELECT
# to have the cursor turn to cross hairs for next click. first line below is q5, second has the fields labeled and target switched from active to select.
#wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,225,235,550,400
#wmctrl -r :SELECT: -b remove,maximized_vert,maximized_horz && wmctrl -r :SELECT: -e 0,x,y,w,h
other than the longer comments you can see in the jwm versions, no change to the aemenu versions.

-----------

setting shortcut keys for rox right click funtions
(and letting rox know it's possible)
regarding rox, there is probably no faster way to navigate folders or create files than rox with short cuts set. right click to go to the create new file dialog and press a letter--now every time you are in a rox folder and press that letter, a copy of that document type will appear for you to retitle/save as in that location. ctrl+1-0 gives you speed dials to ten locations, ctrl+b is book marks (you can short cut open parent in new window to get a freebie bookmark/dual plane set up. you could also make a bookmark of a folder of symlinks to launchers, files, programs, directories, etc).
not all rox filers are set up to allow right click function activation by letter (they all seem to be able to do the speed dial by number part though). to enable the function in p6 or any other pup that doesn't seem to be able to set letters for the right click options, enter the following into a terminal (will restart x):

sed -i '1 i\gtk-can-change-accels = 1' /root/.gtkrc.mine; restartwm

if the terminal responds that the file doesn't exist, enter touch /root/.gtkrc.mine and rerun the previous command(s). delete the semicolon and restart command if you want the function ready to go but aren't in any particular mood to restart x.

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

and update of the install procedure (jwm only) and of the

#47 Post by Puppus Dogfellow »

I'm not sure if the new slacko64 is the way all future pups will be built, but if it is, the install scripts for the two more complicated versions of the menus and trays need the following update, which is also an update for the included jwm config quickswitch (switch back and forth between ten separate configurations).
here's the new nwp:

nwp-jwm-aem-1.1.tar.xz

and here's the included "iinstall2--quickswitch version" file:

alternate install scripts for 392 and 390r for the 1.1 pack's updated quick config switch
[same but with sed commented out--mods will be handled by the file being swapped over]


#392 -- top and left trays added, nine menus added, bottom tray swapped, two additional menus added to root3:
# mbm activates MochiMoppel's bookmark script, which will put your rox bookmarks on a jwm submenu
# nwp full
cp /nwp/ww /root/my-applications/bin/ww
cp /nwp/f /root/my-applications/bin/f
cp /nwp/t /root/my-applications/bin/t
cp /nwp/p /root/my-applications/bin/p
cp /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl
#sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<Include>\/nwp\/root3\/9\/mtk<\/Include>/' /etc/xdg/templates/_root_.jwmrc
#sed -i 's/<RootMenu label="Menu" labeled="false" height="24" onroot="3">/<RootMenu label="Menu" labeled="false" height="24" onroot="3">\n<Include>\/nwp\/root3\/menu3<\/Include>\n<Include>\/nwp\/root3\/nwpmenujwm<\/Include>/' /etc/xdg/templates/_root_.jwmrc
/nwp/mbm
fixmenus
jwm -restart


#---------------------------
#!/bin/sh

# 390r -- version with more minimalistic 9 menus available but commented out. joop opens files for editing. three custom trays--you lose the stock bottom tray.
# mbm activates MochiMoppel's bookmark script, which will put your rox bookmarks on a jwm submenu
cp /nwp/ww /root/my-applications/bin/ww
cp /nwp/f /root/my-applications/bin/f
cp /nwp/t /root/my-applications/bin/t
cp /nwp/p /root/my-applications/bin/p
cp /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl
#sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<Include>\/nwp\/root3\/9\/mtk2<\/Include>/' /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
/nwp/mbm
/nwp/joop


some new commands:
(/nwp/)cusjp --open all the jwmrc personal files (config quick switch is set for 11. my3 in the terminal swaps out what i'm using in Quirky Werewolf 7.4--it's all one config file and some of the functions that don't work in sixty four bit have been swapped for some that do. my30 through my39 are your customizable swap-ins, with my30 being the equivalent of mtk, 31 being its backup, 32 being mtk2, and 33 being the mtk3 version and 34 a backup copy. add an r to restore the previous configuration--i.e. if you're using my31, and you want to go back, enter my31r into the nwp launcher.
cusjc -- opens the corresponting _root_.jwmrc to go with the cusjp command--kept them separate because the former'll likely get called more frequently.
my30-my39 --call those custom jwm setups
my30r-my39r --replace the setup that got replaced when you entered the switch command (i.e. it's the reset switch, but you have to call the same version you called or the machine won't know where to find the files it's supposed to be using for the swap).


the config switch comments out the original desktops and bottom tray by default:
<!-- Personally configurable options for JWM: these override default settings and theme settings -->
<!-- edit the files in nwp/root3/9 and nwp/root3/[root#menu] as these are what the quick config switch calls -->
<JWM>

<!-- <Include>/root/.jwmrc-tray</Include> -->
<!-- Number of virtual desktops
<Desktops width="3" height="1"/>
-->


included with this batch but not activated is the cauliflower machue icon series for the vtg (or whatever else you'd like to use it for, if anything). i was going to use various pups (barry's quirky and mini dog icons) for the numbered menu buttons, and i still may--i could use them reversed or rotated or with the colors inverted--i've gotten used to only needing the five and i kind of like the stock desktop icon. something should have a puppy on it. guess i make that or something similar an option on the next update, though you could just add them or any other image yourself with image="name.extension" added to the <TrayButton label="9">root:#</TrayButton> bit in those tray files included by the mtk files, so long as the picture, like mini-dog.xpm or the machue series, are part of the image path. you could either enter the full location of the image or drop or link your image to /nwp/icons or /nwp/root3/icons for your own choices. this is what the version with an image instead of the button text looks like (from /nwp/root3/9/3.jwmrc-tray):
<TrayButton image="c.machue-207.jpg">exec:xdotool key ctrl+9 ctrl+8 Return F2 ctrl+7</TrayButton>
here's the original:
<TrayButton label="vtg">exec:xdotool key ctrl+9 ctrl+8 Return F2 ctrl+7</TrayButton>
here's what the line should look like if you want both an image and an icon:
<TrayButton label="vtg" image="cmachue207.jpg">exec:xdotool key ctrl+9 ctrl+8 Return F2 ctrl+7</TrayButton>

this is the basic format of the call and reverse scripts:

call:
#!/bin/sh
#my31
cp -f /etc/xdg/templates/_root_.jwmrc /nwp/root3/root31menu/oldjc
cp -f /root/.jwm/jwmrc-personal /nwp/root3/root31menu/oldjp
cp -f /nwp/root3/root31menu/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /nwp/root3/root31menu/jwmrc-personal31 /root/.jwm/jwmrc-personal
fixmenus
jwm -restart

reverse:
#!/bin/sh
#my31r
cp -f /nwp/root3/root31menu/oldjp /root/.jwm/jwmrc-personal
cp -f /nwp/root3/root31menu/oldjc /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart


p. dogfellow, 12/20/15
the new slacko64 is very scripty and assumes changes to the jwm config files are incorrect and need to be undone, which got me to update the config switch, which has now more or less become a part of the installation process. my30 in the launcher or /nwp/my30 in terminal (or 31-34 until you fill up the rest with your own configurations--difference as it stands is which mtk (menus, trays, keys) file gets included) will activate the menus, trays, and keys after the other part of the install script is run.

next version will automate the choice for newer jwms, but for the newest slacko (and presumably the jwm pups from here forward), you'll need to change the syntax of the hidden trays from autohide="true" to autohide="top[bottom, left, right]".

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

heaps of shorcut keys for aemenu-exclusive & non-jwm setups

#48 Post by Puppus Dogfellow »

Puppus Dogfellow wrote: you can give yourself swappable keyboard shortcuts by assigning them specifically to panel or pinboard items. since this thread deals with panels exclusively, i'll focus on that, but it's really the same thing--when you right click on a pinboard or panel item and give it a shortcut, the shortcut goes to that specific icon, not the program or file(s) the icon represents--the key combo will work on what's in the panel--swap the panel, you swap keyboard shortcuts. to fully use this feature, you'd probably have to keep your shortcuts away from your main windows manager as that may override or conflict with the newer keycuts.

in short, you could toggle keyboard shortcuts when you toggle panels/toggling panels is also a way to have an enormous amount of context-specific (or not) keycuts. this is possible because in rox, you assign cuts to an icon, not a program.
from the rox panel speed frames thread

using the method described above, the pwp launcher (the Puppy Word Processor/Puppy Uppers Utility Pack--new version just has uu as the only text on the gui frame, so maybe yet another name change), you could give a similar overabundance of keycuts to a non-jwm setup as you can to one that can take the previously posted key-banks. shrink the panels (16 pixels is minimum--use one pixel squares from the empty icon template (temp folder in nwp) and they'll be expanded to your choice up to 96 pixels) and give scripts (such as the word processing commands from the nwp folder) direct and familiar (or at least personally chosen) locations and shortcuts to call them.

see the main nwp aemenu (n in launcher) for the rox entry if you want to make 6 swappable pinboards (call code would be pp#--mk30 in the launcher will actually give you thirty of them, but like mk26, it's probably overkill. the 10 panel sets are already included and are called by p0-p9)

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

bug fix and update preview

#49 Post by Puppus Dogfellow »

space gap directory flip fixes 99 scripts, nearly all related to word processing. please enter the following into a terminal and press enter if you've installed the nwp:

Code: Select all

grep -lr --exclude-dir="/nwp/1000" -e "\#\! \/bin" /nwp/| xargs sed -i "s/\#\! \/bin/\#\!\/bin/g"
next update is fairly large, but it's half bug fix, all of which is handled by the above line (and so it's highly recommended). i thought i was just about ready to release the update but i ran into some problems with slacko and broke my quirky (DO NOT use an includes tag to include a menu that's visible into itself). anyway, my report with slacko is stick mostly to the ae side of things for now, though inserting key banks and additional submenus shouldn't be a problem (about to check, which is why the half-update. bugs me i left in all those errors, foresee spending my time fixing what i may soon break...). anyway, here's some shots of the update in the works--i need to get the installation for 64 bit sorted out a bit more. for slacko64, the rpm in the dependencies folder works best for xdotool and the aemenu.xz should be unpacked and the contents moved to /bin (ignore the pet in the folder and forgo the auto-install script. the installation scripts and methods in the "older" folder are the better bet until the next release. for thirty two bit, it shouldn't matter what installation method you choose. pick another location on the path (e.g. /root/my-applications/bin) if you'd prefer a place other than /bin for the aemenu cog in the compressed folder).


install mockup--ae menus (./.aei activated in the shot) can be placed and launched from anywhere.
Image

progress on configure, swap, port, edit configure functions:

Image

the above should also show the menu maker items--they've come in pretty handy and were also half broken.

first shot showing the more iconified version to come:
Image

there'd be no need for the bug fixes if the "scz" script had been in place/existence when i made the originals--all of the dead functions were caused by an unnecessary space inserted after the initial shebang. at least when it comes to scripting shortcuts, seems like paste and place is the safer bet (assuming you got it correct in the first place--one of the bug fixes is actually a documentation fix--the comment out slashes in the help snippet were backwards in "sehd").

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

NWP 1.2--now with 669 key virtual keypad & leafpad notetaker

#50 Post by Puppus Dogfellow »

NWP-1.2.tar.xz
Puppus Dogfellow wrote:alt plus control bank is now used for leafpad and geany trying to take the place of xpad--lpx in the launcher is a pop up menu that allows you to fine tune what gets popped up with regards to pads (leafpad windows) or reams (same files opened in geany), but you can use either the main launcher to open the other two banks of five (runge, rungs) or the leafpad launcher (ll in main launcher reopens it as leafpad /nwp/) to access any individual files in the /nwp/notes directory.

the alt plus hjkl functions are now all launchers, mostly to make way for 66k9--a 669 key virtual keypad. it's easiest to offer here first (somewhat more of a context and no dependencies) and if the long second script takes, you can always recopy chunks to repair keys/"keys" you've overwritten with aliases (rather than have the two (or more) coexist) or have other wise lost (you'll still likely need to set the permissions with a right click or in the ch launcher.) here are the new key suggestions (search "mnem" and you'll find the right spot):

Code: Select all

	
	<Key mask="AC" key="h">exec:/nwp/rungn</Key>
	<Key mask="AC" key="j">exec:/nwp/rungo</Key>
	<Key mask="AC" key="k">exec:/nwp/rungt</Key>
	<Key mask="AC" key="l">exec:/nwp/lpx</Key>
	
	<Key mask="A" key="h">exec:/nwp/k</Key>
	<Key mask="A" key="j">exec:/nwp/rl</Key>
	<Key mask="A" key="k">exec:/nwp/gl</Key>
	<Key mask="A" key="l">exec:/nwp/ll</Key>
	
	<Key mask="SA" key="h">exec:ccdi</Key>
	<Key mask="SA" key="j">close</Key>
	<Key mask="SA" key="k">exec:kill</Key>
	<Key mask="SA" key="l">exec:cadi</Key>
	
	<!--  mnemonic is "ask to kill"--these are shutdown scripts on the right side home row. shift plus control below are layer and stickiness.-->
	
	<Key mask="SAC" key="h">move</Key>
	<Key mask="SAC" key="j">resize</Key>
	<Key mask="SAC" key="k">prevstacked</Key>
	<Key mask="SAC" key="l">nextstacked</Key>
	<!--  also on the arrow keys-->
	
	<Key mask="SC" key="h">exec:laa</Key>
	<Key mask="SC" key="j">exec:lma</Key>
	<Key mask="SC" key="k">exec:lba</Key>
	<Key mask="SC" key="l">exec:wmctrl -r :ACTIVE: -b add,sticky</Key>



--------

screenshot of the xpad replacement scheme:

Image



------------

screenshots and info gifs for 669:

669 keys--macros and aliases

Image


Image
--------


this is the leafpad tweak:

Code: Select all

	#!/bin/sh
	
	mkdir -p /nwp/notes/n/o/t/e/s
	mkdir -p /nwp/notes/n/{01..05}
	
	
	
	touch /nwp/notes/n/1 /nwp/notes/n/2 /nwp/notes/n/3 /nwp/notes/n/4 /nwp/notes/n/5
	touch /nwp/notes/n/o/6 /nwp/notes/n/o/7 /nwp/notes/n/o/8 /nwp/notes/n/o/9 /nwp/notes/n/o/10
	touch /nwp/notes/n/o/t/11 /nwp/notes/n/o/t/12 /nwp/notes/n/o/t/13 /nwp/notes/n/o/t/14 /nwp/notes/n/o/t/15
	touch /nwp/notes/n/o/t/e/16 /nwp/notes/n/o/t/e/17 /nwp/notes/n/o/t/e/18 /nwp/notes/n/o/t/e/19 /nwp/notes/n/o/t/e/20
	touch /nwp/notes/n/o/t/e/s/21 /nwp/notes/n/o/t/e/s/22 /nwp/notes/n/o/t/e/s/23 /nwp/notes/n/o/t/e/s/24 /nwp/notes/n/o/t/e/s/25
	
	
	
	
	echo $'
	#!/bin/sh
	#nrung
	leafpad /nwp/notes/n/1| leafpad /nwp/notes/n/2| leafpad /nwp/notes/n/3| leafpad /nwp/notes/n/4| leafpad /nwp/notes/n/5
	' > /nwp/rungn
	
	echo $'
	#!/bin/sh
	#orung
	leafpad /nwp/notes/n/o/6| leafpad /nwp/notes/n/o/7| leafpad /nwp/notes/n/o/8| leafpad /nwp/notes/n/o/9| leafpad /nwp/notes/n/o/10
	' > /nwp/rungo
	
	
	
	echo $'
	#!/bin/sh
	#trung
	leafpad /nwp/notes/n/o/t/11| leafpad /nwp/notes/n/o/t/12| leafpad /nwp/notes/n/o/t/13| leafpad /nwp/notes/n/o/t/14| leafpad /nwp/notes/n/o/t/15
	' > /nwp/rungt
	
	echo $'
	#!/bin/sh
	#erung
	leafpad /nwp/notes/n/o/t/e/16| leafpad /nwp/notes/n/o/t/e/17| leafpad /nwp/notes/n/o/t/e/18| leafpad /nwp/notes/n/o/t/e/19| leafpad /nwp/notes/n/o/t/e/20
	' > /nwp/runge
	
	echo $'
	#!/bin/sh
	#srung
	leafpad /nwp/notes/n/o/t/e/s/21| leafpad /nwp/notes/n/o/t/e/s/22| leafpad /nwp/notes/n/o/t/e/s/23| leafpad /nwp/notes/n/o/t/e/s/24| leafpad /nwp/notes/n/o/t/e/s/25
	' > /nwp/rungs
	
	chmod 755 /nwp/rungs /nwp/runge /nwp/rungt /nwp/rungo /nwp/rungn
	
	
	
	
	echo $'
	
	
	menu "Leafpad 5x5" 
	cmd "leafpad-1-5" "/nwp/rungn"
	cmd "leafpad-6-10" "/nwp/rungo" 
	cmd "leafpad-11-15" "/nwp/rungt" 
	cmd "leafpad-16-20" "/nwp/runge" 
	cmd "leafpad-21-25" "/nwp/rungs"
	end 
	
	
	
	menu "open rungs in geany" 
	cmd "geany-1-5" "geany /nwp/notes/n/1 /nwp/notes/n/2 /nwp/notes/n/3 /nwp/notes/n/4 /nwp/notes/n/5"
	cmd "geany-6-10" "geany /nwp/notes/n/o/6 /nwp/notes/n/o/7 /nwp/notes/n/o/8 /nwp/notes/n/o/9 /nwp/notes/n/o/10"
	cmd "geany-11-15" "geany /nwp/notes/n/o/t/11 /nwp/notes/n/o/t/12 /nwp/notes/n/o/t/13 /nwp/notes/n/o/t/14 /nwp/notes/n/o/t/15"
	cmd "geany-16-20" "geany /nwp/notes/n/o/t/e/16 /nwp/notes/n/o/t/e/17 /nwp/notes/n/o/t/e/18 /nwp/notes/n/o/t/e/19 /nwp/notes/n/o/t/e/20"
	cmd "geany-21-25" "geany /nwp/notes/n/o/t/e/s/21 /nwp/notes/n/o/t/e/s/22 /nwp/notes/n/o/t/e/s/23 /nwp/notes/n/o/t/e/s/24 /nwp/notes/n/o/t/e/s/25"
	end 
	
	menu "open rungs in geany, new instance" 
	cmd "geany -i  1-5" "geany -i /nwp/notes/n/1 /nwp/notes/n/2 /nwp/notes/n/3 /nwp/notes/n/4 /nwp/notes/n/5"
	cmd "geany -i 6-10" "geany -i /nwp/notes/n/o/6 /nwp/notes/n/o/7 /nwp/notes/n/o/8 /nwp/notes/n/o/9 /nwp/notes/n/o/10"
	cmd "geany -i  11-15" "geany -i /nwp/notes/n/o/t/11 /nwp/notes/n/o/t/12 /nwp/notes/n/o/t/13 /nwp/notes/n/o/t/14 /nwp/notes/n/o/t/15"
	cmd "geany -i  16-20" "geany -i /nwp/notes/n/o/t/e/16 /nwp/notes/n/o/t/e/17 /nwp/notes/n/o/t/e/18 /nwp/notes/n/o/t/e/19 /nwp/notes/n/o/t/e/20"
	cmd "geany -i 21-25" "geany -i /nwp/notes/n/o/t/e/s/21 /nwp/notes/n/o/t/e/s/22 /nwp/notes/n/o/t/e/s/23 /nwp/notes/n/o/t/e/s/24 /nwp/notes/n/o/t/e/s/25"
	end 
	
	cmd "edit rungs, all (geany)" "geany -i /nwp/rungn /nwp/rungo /nwp/rungt /nwp/runge /nwp/rungs"
	cmd "edit this menu--leafpad" "leafpad /nwp/lpxm"
	cmd "edit this menu--geany" "geany /nwp/lpxm"
	
	' > /nwp/lpxm
	
	echo $'
	#!/bin/sh
	aemenu -rc /nwp/lpxm
	
	
	' > /nwp/lpx
	
	chmod 755 /nwp/lpx



next script is pretty long and may tank the post, so i'll try it on its own. it's the 669 keys with no dependencies or downloads, so it's worth a shot...actual dependencies (general pups and for what's shown) are yad, aemenu and xdotool. thanks to Iguleder for pexec. (launcher is basically all pexec and the keys are basically all tiny xdotool scripts (thanks, Jordan Sissel).


whether it posts or not, this is the pattern for the keys: 1-36 are F1-F36 and adding modifiers in alphabetical order up to five will take you to 539; the last set is the alphabet following the same rule but starting with three modifiers (alt, control, shift, since super is higher up alphabetically) and going to four to reach 669. save as their abbreviated function to have something easier to remember and call them by. screen capture shows keys being assigned by the scripts clicked on a desktop--the key pad can be exploded [or melted or dripped] off the launcher and placed on the pinboard and panels backed [fronted, masked--depends on how you see it] by whatever icons or text you choose.


[...]
from http://www.murga-linux.com/puppy/viewto ... 795#884795

also includes multicopy tweak: http://www.murga-linux.com/puppy/viewto ... 162#884162

here's the included installation readme:
NWP-1.2 Installation and Upgrade

first step is to move, link, or copy the /nwp folder to /, making it a top level directory along with root and usr and the like. if you've got an existing /nwp, rename it until you're sure you're happy with the update. if you are, you can delete the old one (remember to copy back your personal files and whatever customizations you may have made). then open the nwp folder and navigate to /nwp/c.

for a new install, check to see which of the dependencies you're lacking. for thirty two bit, just click the pets. for 64 bit, the rpm and pet are click and install, and the script will place the aemenu cog in /bin, but you can manually place it elsewhere in the PATH if you want (you could also reposition the # in the script to send it to /root/my-applications/bin/ instead of /bin.)

"jin" in the launcher will convert the tray syntax for use with the newest JWMs, "jio" will convert it (or convert it back, since the default is set for legacy (pre slacko/slacko64 6.0.3) pups) to the older syntax. other jwm configurations (p6 configuration folder (p6conf) has the upgrade at a click, but it's only set for the full jwm nwp--nine menus, left side hide away tray with long listing for tasklist items, the 24 desktops, etc) are available in the "browsers+" submenu on the left click (root1) menu, but avoid them if using slacko. (when i'm sure my slacko64 setup is safe and survives configuration changes and other routine shocks, i'll post it, but it's basically no spacer trays (can't get them to work), all the desktops, menus 1, 9, 3, and 6, a broken clock, all the key inserts (slightly altered--for the VTG to work in slacko, the "Down" has to be removed since the menus get activated with the first item pre-highlighted), and all the aemenu and launcher functions (including the new 669 key virtual keypad). i think the surest way to get the jwm functions in slacko without breaking anything is merely to add

<Include>/nwp/root3/menu3s</Include>


directly under the

<RootMenu label="Menu" labeled="false" height="MENHEIGHT" onroot="9">

bit in /etc/xdg/templates/_root_.jwmrc. then enter

fixmenus; jwm -restart

into a terminal. the key Includes tags can be added to this file as well, but adding them to
.jwm/jwmrc-personal precludes the need for fixmenus every time the file's updated (jwm -restart would suffice).

i recommend either the main launcher (p) or the keys launcher (k) be given a shortcuts such as spacebar plus shift or alt to help integrate them with the physical keys.

the following should be copied to /root/my-applications/bin (just run the following in a terminal or click the "preinstall" script in /nwp/c/.

cp /nwp/ww /root/my-applications/bin/ww
cp /nwp/f /root/my-applications/bin/f
cp /nwp/t /root/my-applications/bin/t
cp /nwp/p /root/my-applications/bin/p
cp /nwp/rr /root/my-applications/bin/rr
cp /nwp/w11 /root/my-applications/bin/w11
cp /nwp/k /root/my-applications/bin/k
chmod 755 /nwp/ww /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl


--------------------------

the older install scripts should all still work on all jwm pups other than slacko:



#---------------------------
#!/bin/sh
# 390x1 -- version for top tray, nine menus, regular bottom tray moved over a pixel
# mbm activates MochiMoppel's bookmark script, which will put your rox bookmarks on a jwm submenu
cp /nwp/ww /root/my-applications/bin/ww
cp /nwp/f /root/my-applications/bin/f
cp /nwp/t /root/my-applications/bin/t
cp /nwp/p /root/my-applications/bin/p
cp /nwp/rr /root/my-applications/bin/rr
cp /nwp/w11 /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl
sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<!-- <Include>\/root\/.jwmrc-tray<\/Include>-->/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/<JWM>/<JWM> \n <!--<Include>\/root\/.jwmrc-tray<\/Include>--> \n <Include>\/nwp\/root3\/9\/mtk3<\/Include>/' /root/.jwm/jwmrc-personal
#changed back to putting the mtk file in jwmrc-personal so the geany custom configuration shorts still function
#sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<Include>\/nwp\/root3\/9\/mtk3<\/Include>/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/x="0"/x="1"/' /root/.jwmrc-tray
fixmenus
jwm -restart
/nwp/mbm
/nwp/joop
#added w11 to /root/my-applications/bin--enter into terminal to find out geometry of desktop's windows
# and what windows are on what desktop (12/12/15). use to make custom size and place scripts (open q5 in the launcher,
#pick something easier to remember to call it by, save as that name, plug in new coordinates--x,y,w,h follow the -e 0. swap ACTIVE for SELECT
# to have the cursor turn to cross hairs for next click. first line below is q5, second has the fields labeled and target switched from active to select.
#wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,225,235,550,400
#wmctrl -r :SELECT: -b remove,maximized_vert,maximized_horz && wmctrl -r :SELECT: -e 0,x,y,w,h
#---------------------------
#!/bin/sh
#top and left trays added, nine menus added, bottom tray swapped:
# mbm activates MochiMoppel's bookmark script, which will put your rox bookmarks on a jwm submenu
#390
cp /nwp/ww /root/my-applications/bin/ww
cp /nwp/f /root/my-applications/bin/f
cp /nwp/t /root/my-applications/bin/t
cp /nwp/p /root/my-applications/bin/p
cp /nwp/rr /root/my-applications/bin/rr
cp /nwp/w11 /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl
sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<!-- <Include>\/root\/.jwmrc-tray<\/Include>-->/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/<JWM>/<JWM> \n <!--<Include>\/root\/.jwmrc-tray<\/Include>--> \n <Include>\/nwp\/root3\/9\/mtk<\/Include>/' /root/.jwm/jwmrc-personal
#changed back to putting the mtk file in jwmrc-personal so the geany custom configuration shorts still function
#sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<Include>\/nwp\/root3\/9\/mtk<\/Include>/' /etc/xdg/templates/_root_.jwmrc
#sed -i 's/<RootMenu label="Menu" labeled="false" height="24" onroot="3">/<RootMenu label="Menu" labeled="false" height="24" onroot="3">\n<Include>\/nwp\/root3\/menu3<\/Include>\n<Include>\/nwp\/root3\/nwpmenujwm<\/Include>/' /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
/nwp/mbm
#
#additional changes to root 3 commented out
#added w11 to /root/my-applications/bin--enter into terminal to find out geometry of desktop's windows
# and what windows are on what desktop (12/12/15). use to make custom size and place scripts (open q5 in the launcher,
#pick something easier to remember to call it by, save as that name, plug in new coordinates--x,y,w,h follow the -e 0. swap ACTIVE for SELECT
# to have the cursor turn to cross hairs for next click. first line below is q5, second has the fields labeled and target switched from active to select.
#wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,225,235,550,400
#wmctrl -r :SELECT: -b remove,maximized_vert,maximized_horz && wmctrl -r :SELECT: -e 0,x,y,w,h
#---------------------------

#!/bin/sh


#392 -- top and left trays added, nine menus added, bottom tray swapped, two additional menus added to root3:
# mbm activates MochiMoppel's bookmark script, which will put your rox bookmarks on a jwm submenu
# nwp full
cp /nwp/ww /root/my-applications/bin/ww
cp /nwp/f /root/my-applications/bin/f
cp /nwp/t /root/my-applications/bin/t
cp /nwp/p /root/my-applications/bin/p
cp /nwp/rr /root/my-applications/bin/rr
cp /nwp/w11 /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl
sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<!-- <Include>\/root\/.jwmrc-tray<\/Include>-->/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/<JWM>/<JWM> \n <!--<Include>\/root\/.jwmrc-tray<\/Include>--> \n <Include>\/nwp\/root3\/9\/mtk<\/Include>/' /root/.jwm/jwmrc-personal
#changed back to putting the mtk file in jwmrc-personal so the geany custom configuration shorts still function
#sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<Include>\/nwp\/root3\/9\/mtk<\/Include>/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/<RootMenu label="Menu" labeled="false" height="24" onroot="3">/<RootMenu label="Menu" labeled="false" height="24" onroot="3">\n<Include>\/nwp\/root3\/menu3<\/Include>\n<Include>\/nwp\/root3\/nwpmenujwm<\/Include>/' /etc/xdg/templates/_root_.jwmrc
/nwp/mbm
fixmenus
jwm -restart
#added w11 to /root/my-applications/bin--enter into terminal to find out geometry of desktop's windows
# and what windows are on what desktop (12/12/15). use to make custom size and place scripts (open q5 in the launcher,
#pick something easier to remember to call it by, save as that name, plug in new coordinates--x,y,w,h follow the -e 0. swap ACTIVE for SELECT
# to have the cursor turn to cross hairs for next click. first line below is q5, second has the fields labeled and target switched from active to select.
#wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,225,235,550,400
#wmctrl -r :SELECT: -b remove,maximized_vert,maximized_horz && wmctrl -r :SELECT: -e 0,x,y,w,h


#---------------------------
#!/bin/sh

# 390r -- version with more 2 minimalistic 9 menu sets available but commented out. joop opens files for editing. three custom trays--you lose the stock bottom tray.
# mbm activates MochiMoppel's bookmark script, which will put your rox bookmarks on a jwm submenu
#root9, root9b, and root10 in the main launcher open the main nwp 9 menu set and both reduced nine menu sets. adjust mtk2(opened by joop) to match your choice.
#joopf (joop full) opens joop plus the three 9 menu sets
cp /nwp/ww /root/my-applications/bin/ww
cp /nwp/f /root/my-applications/bin/f
cp /nwp/w11 /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/w11
cp /nwp/t /root/my-applications/bin/t
cp /nwp/p /root/my-applications/bin/p
cp /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl
sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<!-- <Include>\/root\/.jwmrc-tray<\/Include>-->/' /etc/xdg/templates/_root_.jwmrc
sed -i 's/<JWM>/<JWM> \n <!--<Include>\/root\/.jwmrc-tray<\/Include>--> \n <Include>\/nwp\/root3\/9\/mtk2<\/Include>/' /root/.jwm/jwmrc-personal
#changed back to putting the mtk file in jwmrc-personal so the geany custom configuration shorts still function
#sed -i 's/<Include>\/root\/.jwmrc-tray<\/Include>/<Include>\/nwp\/root3\/9\/mtk2<\/Include>/' /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
/nwp/mbm
/nwp/joop
#added w11 to /root/my-applications/bin--enter into terminal to find out geometry of desktop's windows
# and what windows are on what desktop (12/12/15). use to make custom size and place scripts (open q5 in the launcher,
#pick something easier to remember to call it by, save as that name, plug in new coordinates--x,y,w,h follow the -e 0. swap ACTIVE for SELECT
# to have the cursor turn to cross hairs for next click. first line below is q5, second has the fields labeled and target switched from active to select.
#wmctrl -r :ACTIVE: -b remove,maximized_vert,maximized_horz && wmctrl -r :ACTIVE: -e 0,225,235,550,400
#wmctrl -r :SELECT: -b remove,maximized_vert,maximized_horz && wmctrl -r :SELECT: -e 0,x,y,w,h


-----
installation materials are in /nwp/c.


enjoy,


--p. dogfellow, 2/1/16
Last edited by Puppus Dogfellow on Mon 07 Mar 2016, 12:43, edited 1 time in total.

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

#51 Post by Puppus Dogfellow »

a tip from Barry Kauler allows us to control width in pdf/browser/view mode:

http://barryk.org/news/?viewDetailed=00305
My web pages are all "old school" HTML. I have dabbled in CSS and Javascript, but mostly create web pages with simple static HTML using tables.

My web pages look fine on a desktop screen, but not so good on a mobile phone. Typically, I create a centered table with a fixed width, and all content goes inside that. Basic structure:

Code: Select all

<html>
<head ... > ... </head>
<table align="center" width="700" ... > ... </table>
</html>
On a high resolution mobile phone screen, the table renders very small, with large blank space both sides.

However, I discovered a very simple fix. Just insert this line into the <head> section:

<meta name="viewport" content="width=700">
run the following in a terminal to add "view" as main launcher shortcut--delete the comment before it's run if you don't need the advice.

Code: Select all

echo $'#!/bin/sh
#place in template's <head> section for width control in view/browser/pdf mode
xdotool type \'<meta name="viewport" content="width=700">\'
' > /nwp/view
chmod 755 /nwp/view
here's an icon pack for the 669 virtual key launcher and the /nwp folder and/or its subfolders and other functions:
nwp-keys-icons.tar.xz

here's a screen shot of the main (i.e. the one i'm using for the /nwp folder itself) anuupuus icon (four versions):
Image

thanks to technosaurus for the script that made it easy to make the vast majority of the nearly 2400 icons--a-z in caps and lower case, 1-669, m0-m9 (for three modifiers plus those numbers), and a few other sets (all of which were rendered in black on transparent, white on transparent, and green-yellow on purple in what seemed like well under a minute).

On the Utilities side of things, though i guess it's still an issue that relates to word processing, i tweaked a key-generation script to be more friendly to LibreOffice (and other programs that share its way of setting up keyboard shortcuts). rather than recording what you press, Libre gives you a group of keys it accepts and which you are to choose from. in an attempt to give keycuts that could be launched quickly and somewhat intuitively, i've come up with the following, shorter version of the earlier key script:

Code: Select all

#!/bin/sh
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+a ' > /nwp/keys/k/a
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+b ' > /nwp/keys/k/b
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+c ' > /nwp/keys/k/c
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+d ' > /nwp/keys/k/d
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+e ' > /nwp/keys/k/e
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+f ' > /nwp/keys/k/f
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+g ' > /nwp/keys/k/g
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+h ' > /nwp/keys/k/h
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+i ' > /nwp/keys/k/i
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+j ' > /nwp/keys/k/j
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+k ' > /nwp/keys/k/k
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+l ' > /nwp/keys/k/l
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+m ' > /nwp/keys/k/m
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+n ' > /nwp/keys/k/n
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+o ' > /nwp/keys/k/o
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+p ' > /nwp/keys/k/p
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+q ' > /nwp/keys/k/q
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+r ' > /nwp/keys/k/r
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+s ' > /nwp/keys/k/s
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+t ' > /nwp/keys/k/t
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+u ' > /nwp/keys/k/u
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+v ' > /nwp/keys/k/v

echo $'#!/bin/sh
xdotool key alt+ctrl+shift+v ' > /nwp/keys/k/pu
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+w ' > /nwp/keys/k/w
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+x ' > /nwp/keys/k/x
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+y ' > /nwp/keys/k/y
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+z ' > /nwp/keys/k/z
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F12 ' > /nwp/keys/k/f12
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F11 ' > /nwp/keys/k/f11
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F10 ' > /nwp/keys/k/f10
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F9 ' > /nwp/keys/k/f9
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F8 ' > /nwp/keys/k/f8
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F7 ' > /nwp/keys/k/f7
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F6 ' > /nwp/keys/k/f6
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F5 ' > /nwp/keys/k/f5
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F4 ' > /nwp/keys/k/f4
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F3 ' > /nwp/keys/k/f3
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F2 ' > /nwp/keys/k/f2
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+F1 ' > /nwp/keys/k/f1
echo $'#!/bin/sh
xdotool key alt+ctrl+shit+0 ' > /nwp/keys/k/m0
echo $'#!/bin/sh
xdotool key alt+ctrl+shit+9 ' > /nwp/keys/k/m9
echo $'#!/bin/sh
xdotool key alt+ctrl+shit+8 ' > /nwp/keys/k/m8
echo $'#!/bin/sh
xdotool key alt+ctrl+shit+7 ' > /nwp/keys/k/m7
echo $'#!/bin/sh
xdotool key alt+ctrl+shit+6 ' > /nwp/keys/k/m6
echo $'#!/bin/sh
xdotool key alt+ctrl+shit+5 ' > /nwp/keys/k/m5
echo $'#!/bin/sh
xdotool key alt+ctrl+shit+4 ' > /nwp/keys/k/m4
echo $'#!/bin/sh
xdotool key alt+ctrl+shit+3 ' > /nwp/keys/k/m3
echo $'#!/bin/sh
xdotool key alt+ctrl+shit+2 ' > /nwp/keys/k/m2
echo $'#!/bin/sh
xdotool key alt+ctrl+shit+1 ' > /nwp/keys/k/m1

chmod 755 /nwp/keys/k/m1 /nwp/keys/k/m2 /nwp/keys/k/m3 /nwp/keys/k/m4 /nwp/keys/k/m5 /nwp/keys/k/m6 /nwp/keys/k/m7 /nwp/keys/k/m8 /nwp/keys/k/m9 /nwp/keys/k/m0

chmod 755 /nwp/keys/k/a /nwp/keys/k/b /nwp/keys/k/c /nwp/keys/k/d /nwp/keys/k/e /nwp/keys/k/f /nwp/keys/k/g /nwp/keys/k/h /nwp/keys/k/i /nwp/keys/k/j /nwp/keys/k/k /nwp/keys/k/l /nwp/keys/k/m /nwp/keys/k/n /nwp/keys/k/o /nwp/keys/k/p /nwp/keys/k/q /nwp/keys/k/r /nwp/keys/k/s /nwp/keys/k/t /nwp/keys/k/u /nwp/keys/k/v /nwp/keys/k/w /nwp/keys/k/x /nwp/keys/k/y /nwp/keys/k/z

chmod 755 /nwp/keys/k/f1 /nwp/keys/k/f2 /nwp/keys/k/f3 /nwp/keys/k/f4 /nwp/keys/k/f5 /nwp/keys/k/f6 /nwp/keys/k/f7 /nwp/keys/k/f8 /nwp/keys/k/f9 /nwp/keys/k/f10 /nwp/keys/k/f11 /nwp/keys/k/f12

#1-36 are F1-F36 without modifiers. f1-f12 in the key launcher are those keys plus alt, shift, and control. a-z similarly have three modifiers automatically applied, but i've included icon-text sets for them with a 3 prepended to the letters so they won't interfere should you use the same icons for word processing functions. m[0-9] are the number keys plus the three [m]odifiers LO allows.
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+a' > /nwp/keys/k/3a
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+b' > /nwp/keys/k/3b
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+c' > /nwp/keys/k/3c
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+d' > /nwp/keys/k/3d
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+e' > /nwp/keys/k/3e
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+f' > /nwp/keys/k/3f
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+g' > /nwp/keys/k/3g
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+h' > /nwp/keys/k/3h
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+i' > /nwp/keys/k/3i
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+j' > /nwp/keys/k/3j
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+k' > /nwp/keys/k/3k
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+l' > /nwp/keys/k/3l
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+m' > /nwp/keys/k/3m
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+n' > /nwp/keys/k/3n
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+o' > /nwp/keys/k/3o
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+p' > /nwp/keys/k/3p
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+q' > /nwp/keys/k/3q
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+r' > /nwp/keys/k/3r
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+s' > /nwp/keys/k/3s
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+t' > /nwp/keys/k/3t
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+u' > /nwp/keys/k/3u
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+v' > /nwp/keys/k/3v
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+w' > /nwp/keys/k/3w
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+x' > /nwp/keys/k/3x
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+y' > /nwp/keys/k/3y
echo $'#!/bin/sh
xdotool key alt+ctrl+shift+z' > /nwp/keys/k/3z
chmod 755 /nwp/keys/k/3a /nwp/keys/k/3b /nwp/keys/k/3c /nwp/keys/k/3d /nwp/keys/k/3e /nwp/keys/k/3f /nwp/keys/k/3g /nwp/keys/k/3h /nwp/keys/k/3i /nwp/keys/k/3j /nwp/keys/k/3k /nwp/keys/k/3l /nwp/keys/k/3m /nwp/keys/k/3n /nwp/keys/k/3o /nwp/keys/k/3p /nwp/keys/k/3q /nwp/keys/k/3r /nwp/keys/k/3s /nwp/keys/k/3t /nwp/keys/k/3u /nwp/keys/k/3v /nwp/keys/k/3w /nwp/keys/k/3x /nwp/keys/k/3y /nwp/keys/k/3z /nwp/keys/k/pu


#rename with ll or gl in the main launcher plus /keys/k/[old name] once you've assigned it in LO or a program that presents a similar interface for the task. if, anticipating what you'll use them for, you rename from this script directly/before they actually get made, be sure to set the permissions either with a right click or by substituting or adding the new script/name to a chmod 755 line as above.

# Out of a-z plus three modifiers, F1-F-12 plus three modifiers, and 0-9 plus three modifiers, only alt+ctrl+shift+v (paste unformatted) is used by default in LibreOffice. if you scroll up, you'll see it appears twice--once as v and once as pu--that's basically how you "pre-rename," so to speak, so to speak.

#libre has no shortage of unassigned key-plus-two-modifier combos, but using the key launcher for them seems unnecessary other than to maybe make the keycut a little easier to remember (just use the model above to generate your key and its new call code).
use the icons for the key scripts dragged to the pinboards or panels, or use them to give the word processing and other functions unobtrusive (or garish--one set's not so muted) yet identifiable icons (as an example, you can use the multiple versions of the letter b (or B--three of each) for bold --paste and place, bold --highlight then click to apply, page break above, page break below (well, there are PgBk icons included...)--you could use more than one icon for a given script to make it larger or more descriptive, or merely to have it snake around other icons and other obstacles on your desktop). since pinboard icons can have long titles/descriptions, having the scripts accessible also helps you to remember the code for it. that is, use an icon that shows the script's name and call code, but rename it something descriptive or otherwise helpful.

in short, here's a quick way to launch three modifiers plus the alphabet keys, the number keys, and the first twelve function keys, all but one of which are unassigned by default in LibreOffice (Tools > Customize > Keyboard to reach the configuration area).

here's a chunk of my jwmrc-personal file that relates to some of the new functions and launchers:

Code: Select all

<Key mask="AC" key="h">exec:/nwp/rungn</Key>
<Key mask="AC" key="j">exec:/nwp/rungo</Key>
<Key mask="AC" key="k">exec:/nwp/rungt</Key>
<Key mask="AC" key="l">exec:/nwp/lpx</Key>

<Key mask="A" key="h">exec:/nwp/k</Key>
<Key mask="A" key="j">exec:/nwp/rl</Key>
<Key mask="A" key="k">exec:/nwp/gl</Key>
<Key mask="A" key="l">exec:/nwp/ll</Key>

<Key mask="SA" key="h">exec:ccdi</Key>
<Key mask="SA" key="j">close</Key>
<Key mask="SA" key="k">exec:kill</Key>
<Key mask="SA" key="l">exec:cadi</Key>

<Key mask="SC" key="h">move</Key>
<Key mask="SC" key="j">resize</Key>
<Key mask="SC" key="k">prevstacked</Key>
<Key mask="SC" key="l">nextstacked</Key>
<!--  also on the arrow keys-->

<Key mask="SAC" key="h">exec:laa</Key>
<Key mask="SAC" key="j">exec:lma</Key>
<Key mask="SAC" key="k">exec:lba</Key>
<Key mask="SAC" key="l">exec:wmctrl -r :ACTIVE: -b add,sticky</Key>

<Key mask="A" key="space">exec:rox /usr/share/applications/</Key>
<Key mask="C" key="space">exec:/nwp/k</Key>
<Key mask="S" key="space">exec:/nwp/p</Key>
<Key mask="CA" key="space">exec:/nwp/winswitcher</Key>
<Key mask="CS" key="space">exec:/nwp/rr</Key>
<Key mask="AS" key="space">exec:/nwp/t</Key>
<Key mask="CAS" key="space">exec:/nwp/rup</Key> 

i assign something to nearly every key combo, but find myself rarely using any other than those that employ the space bar. it's just become the quickest, most fluid way to do nearly everything i find i need to do.

:? :P :oops:
:D
Last edited by Puppus Dogfellow on Mon 07 Mar 2016, 12:45, edited 2 times in total.

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

em dashes in text editors come word processors

#52 Post by Puppus Dogfellow »

Code: Select all

echo $'#!/bin/sh
#emdash --call with emd
xdotool type \'—\'
' > /nwp/emd
chmod 755 /nwp/emd
not sure howin demand a feature this is, but if you want to print em dashes in geany or leafpad, this is a pretty easy way to do it.

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

nwp upgrade pack: improvements to the virtual keypad

#53 Post by Puppus Dogfellow »

Puppus Dogfellow wrote:
all 669 keys (all 669 little xdotool scripts) combined are 25k uncompressed, which is significantly smaller than the full nwp. i think the next vtg launcher will only be a handful of scripts and keys folder in the shell of the nwp, but you don't really need to wait for a stripped down version. just put the keys folder (it contains the 669) anywhere you like and adjust k- to point to the new location. add or copy the v script from /nwp to that folder in its new location, and the k launcher will be able to just as easily activate the vtg function as the p launcher (set an easy to remember and press key combo for the k launcher).

anyway, puppy appears to be willing to accept F36 as input even if you don't have the key. xdotool can press the imaginary key plus four modifiers faster than you can press one (and can be scaled forward or back). rename keys to more easily remember and call them.
vtg_VPKP_pw,n-nwp.sh

the above is a script that will install the vtg shortcut script in a nwp folder empty apart from the improved key (function) folder. you get the launchers (call, modify, and mask/rename keys), a virtual programmable (set for a minimum of 1060 not including macros and scripts) keypad, and the vtg button/macro/key combo (which still requires the tweaks to the key config file mentioned on the first page of the thread. the script's a tweak of one of the build scripts i used to make the forthcoming anuupuus update, and was released in a slightly different form (replete with somewhat inaccurate comments) here.


there's no included help file, but the comments are fairly extensive:

Code: Select all

#!/bin/sh
mkdir -p /nwp/keys/k/
mkdir -p /nwp/keys/icons-pyg /nwp/keys/icons-tl /nwp/keys/icons-td /nwp/keys/icons
#cp -f /nwp/keys/k /nwp/keys/k2
#older version of the comments had "delete or comment out 1-99 if you're using the older version of the virtual keypad and have assignments for those keys. alternately, comment out the line above to make a back up of your existing key-set, which you can then copy your changes from and/or use as an alternate key set. these will overwrite keys 1-99 from from the 66k9 version," which is inaccurate/was only a .desktop and icon issue, and not much of one at that. a-z, 0-9, and all numbers plus all other single key assignments are available. if you want in excess of a thousand virtual keys requiring two or fewer presses, i have a version built around {a..z}; {a..z}{a..z}; {a..z}{0..9}; -{0..9}; -{a..z}(,etc) somewhere nearly completed--i started making shortcuts in geany to make making them easier, and the way i went about it made both that method and the previous method of assigning keys seem really inefficient. this uses more keys to call and edit a key, but it also makes it much easier to configure them on the fly and then use them thereafter. the additional keypad/script launchers/editors at the end of this file call the keys by first initial of modifier key (alphabetically--acsw are alt, control, shift, and windows key held simultaneously. add one at a time for fewer than the four, but always add alphabetically) followed by the letter or number of your choice, or f1-f36 to call those function key (regardless of whether you've got them on any of your keyboards). the renaming method is as follows: in the main launcher, enter kl or kg to open up either leafpad or geany at the keys' path. enter the name of the key you want to rename, save the file that opens as the call code you wish to have (one that's shorter and/or easier to remember), enter kch in the main launcher, enter the renamed key. that's it--the key launcher will now open up any menu item on whatever program with the command you gave it. to assign keys in programs that allow customization by recording your key presses, use the key launcher (dragging to the desktop's largely unnecessary unless you want a desktop button for some functions) or k in the main launcher (can't click the items in the folders because the key strokes are sent to rox/your windows manager itself).
echo $'#!/bin/sh
xdotool key alt+0 ' > /nwp/keys/k/a0
echo $'#!/bin/sh
xdotool key alt+9 ' > /nwp/keys/k/a9
[...]

Code: Select all

[...]

#i'm sort of drowning in icons at the moment, but there's a desktop file and iconification improvement/overload on the way that more or less obviates the attempt i make towards the end of the script to make things more ready-made and mouse friendly, but it's still conceivably useful and/or a possible convenience (right click in any rox folder to get a largely filed out .desktop file for any nwp function or key. "ilkon" or "igkon" in the main launcher will open a copy of the same file in either leafpad (i(l)kon) or geany (i(g)kon)).

#the 347 byte replacement icon for scripts makes navigating through some of the more overloaded /nwp directories (such as /nwp itself) much quicker, but i'm considering a how-to rather than a upload for the 18,000 or so icons i've somehow wound up with...

#i'm adding the original k, p, p-, and k- launchers so the anuupuus update script works as a standalone virtual/programmable keypad--just give /nwp/k a shortcut key (spacebar plus a single modifier works nicely for both /nwp/k and /nwp/p).

#have decided to add some others in case anyone wants the k ratehr than the p version as the main pw,n launcher. while the recommended configuration method assumes access from /nwp/p, you can back-space past the / and k in the k launcher to reach kl (rename key with leafpad), kch (set permission of renamed key), kgi (rename key with a new instance of geany), p (which can call the others from /nwp), kir (open the keys folder in rox), and kg (rename key with geany) from their backups in /nwp/keys.
[...]

Code: Select all

[...]
#it probably makes more sense to sacrifice the potential convenience of p, v,c,k,l, and g in the key launcher (the other 30 alpha-numeric characters are still available for scripts, commands, macros, or key combos you'd like to bind to a single key entry) in order to give the virtual keypad the ability to quickly configure itself. with that in mind, and because there's a chance the other way may still prove useful, here's a copy of the above launchers plus the vtg (the only one of the bunch that retains its original (v) call-code)

echo $'
#!/bin/sh
xdotool key ctrl+9 ctrl+8 Return F2 ctrl+7

#for precise, the F2 wasn,t needed
#script to execute the string in geany (needs a few tweaks to the keyboard config file or a swap with the key.config file in the word processing and related folder at the pupli repo).
# send line where cursor sits (or what,s been highlighted) to the terminal, run it, close the terminal, return to the editing view.
' > /nwp/keys/k/v

#^you could use an alpha-numeric plus four modifiers or some of the combos involving function keys 13-36 here to open up other keycuts in geany. it's an example of xdotool being used for a macro rather than a key--you aren't limited to key actions with these little xdotool scripts--you could bind mouse actions to them as well as incorporate the actions needed to access just about any program's menus or submenus. rename it it vtg if you'd like to use the v call-code in the pwn,n-k launcher for something else.

[...]



#---no warranties or whatnot, but i don't see what it could break, and like the nwp and vtg, it's working well. i find it useful.
#---------------------------------------- puppus dogfellow, march 2016.
#enjoy.
#ps: this was part of a set of scripts that built a full update to the nwp word processor and utilities suite. the template-spitting scripts below are mini versions of the other two build scripts. i use the custom keys a lot in geany, but the majority of what this does isn't necessarily vtg or geany related, or even related to word processorization of text editors or interfaces in general, so i've decided to make a move towards a more general issue release. it's a 1000 key virtual programmable keyboard and function renamer.

echo $'
#!/bin/sh
xdotool type \'text2xpm "-->" >/nwp/keys/icons-sup/(name).xpm\' ' > /nwp/t2x
chmod 755 /nwp/t2x
#print out code that will autogenerate (through vtg or terminal) an icon. they're small but expand to the fit the rox panels. on the pinboards, they remain tiny. requires text2xpm.


[...]

i'll post more of the build scripts a bit later--the vtg can use sections of either to more or less instantly generate sets of icons or desktop files, which can in turn be easily modded, renamed, and/or relocated/generated in a new location (change a few characters, click/activate the vtg again).
from http://www.murga-linux.com/puppy/viewto ... 272#895272 (the vtg thread).

the above sums up the improvements to the keypad, and most of the changes are to /nwp/keys. the following is what the directory will contain after the update:
nwp/keys/desktops
nwp/keys/desktopsd
nwp/keys/desktopsl
nwp/keys/dsktps-wp-hc
nwp/keys/dsktps-wp-pp
nwp/keys/icons
nwp/keys/icons-just modifiers
nwp/keys/icons-pyg
nwp/keys/icons-sup
nwp/keys/icons-td
nwp/keys/icons-tl
nwp/keys/icons-wp-hc
nwp/keys/icons-wp-pp
nwp/keys/k
nwp/keys/launchers
nwp/keys/k-
nwp/keys/kch
nwp/keys/keys-blank.desktop
nwp/keys/kg
nwp/keys/kgi
nwp/keys/kir
nwp/keys/kl
nwp/keys/p
nwp/keys/p-

wp-hc contains desktop files for the highlight and click desktop functions, -pp for the paste and paste functions (most of them--more later on how to change the included icons to a color scheme of your choosing). the three generic desktop folders (d and l added to the sets of light and dark icons, default is for purple background, green-yellow foreground) contain sets for the 1400 or so two-or-fewer-keypress keycuts you'd get by the pattern laid out in the first quoted comment. an improvement to two of the aemenus gets sent to /keys parent directory, and some functions (mostly configuration) have been added to the /k folder so that they can be directly called from the pw,n-k launcher (k in the main (p) launcher). should have probably included

cp -f /nwp/k /root/my-applications/bin/k
chmod 755 /root/my-applications/bin/k


to one of the scripts so that you could call the key launcher from a terminal if you wish...

(dump the two lines into a terminal if you think that's a good idea).

"pwnz" in the main launcher now calls up an an aemenu of all the launchers (which has also been added to the aemenu of all the aemenus that pops up when you enter "aef" in the main launcher). other new shortcuts:

t2x -- print out the template to use txt2xpm to create on the fly icons
t2x2 --same as above but add a desktop template filled out with the idea that the icon will be in the keys folder and the command in the nwp folder--there's not much to add beyond the name of the icon you generate and the script you choose for the file to activate (you'll have to change the path if you swap locations).

just download the compressed folder, unpack, and click the update script:

nwp-1.2.2-upgrade_pack.tar.xz

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

improved update script and icon/.desktop management

#54 Post by Puppus Dogfellow »

here's an improvement over the included update script:

Code: Select all

#!/bin/sh
#click2update-1.2.2_(24kf)--improved update script. 
cp -fRu ./nwp /

#keylauncher and vtg require xdotool. complete anuupuus (A New(bie's) UUord Processor and Ultimat(esqu)e Utilities Suite requires wmctrl and aemenu as well.
# this uses more keys to call and edit a key, but it also makes it much easier to configure them on the fly and then use them thereafter. the additional keypad/script launchers/editors at the end of this file call the keys by first initial of modifier key (alphabetically--acsw are alt, control, shift, and windows key held simultaneously. add one at a time for fewer than the four, but always add alphabetically) followed by the letter or number of your choice, or f1-f36 to call those function key (regardless of whether you've got them on any of your keyboards). the renaming method is as follows: in the main launcher, enter kl or kg to open up either leafpad or geany at the keys' path. enter the name of the key you want to rename, save the file that opens as the call code you wish to have (one that's shorter and/or easier to remember), enter kch in the main launcher, enter the renamed key. that's it--the key launcher will now open up any menu item on whatever program with the command you gave it. to assign keys in programs that allow customization by recording your key presses, use the key launcher (dragging to the desktop's largely unnecessary unless you want a desktop button for some functions) or k in the main launcher (can't click the items in the folders because the key strokes are sent to rox/your windows manager itself). 
#from http://www.murga-linux.com/puppy/viewtopic.php?p=894826#894826

#comments on that post mistakenly assume an icon conflict--it doesn't exist.

#minimum deps for this more or less stand alone update are xdotool and yad.
#aemenu and wmctrl are highly recommended additions.



#originally used for the 1.2.2 update; only changes to this script are these comments and below:
#no rox or jwm keycuts provided--installation with this script simply moves ./nwp to / as /nwp. you'll need to assign a keyboard shortcut to the p and/or k launcher (main, keys) with your windows or file manager. 
# 24kf --there are over 24000 little files (icons, desktops, scripts) in this update. i recommend using some of the little mini (sub 400B) icons rather than the default set for scripts and xpm files as a result of this update--helps when loading a loaded directory.


# late addition--
echo $'
#!/bin/sh
#print out code that will generate (through vtg or terminal) an icon. they\'re small but expand to the fit the rox panels, or gain the same target area as the panel\'s largest icon. on the pinboards, the icon-target remains tiny. requires text2xpm: http://www.murga-linux.com/puppy/viewtopic.php?p=561822#561822
#print out a desktop template file for the icon you just made. send through a terminal or highlight section and click or otherwise activate the vtg.

xdotool type \'text2xpm "icon-image" >/nwp/keys/icons-sup/(name).xpm\'
xdotool type "
echo $\'
[Desktop Entry]
Encoding=UTF-8
Name=virtual keys
Terminal=false
Type=Application
Exec=/nwp/keys/k/
Icon=/nwp/keys/icons/.xpm
Comment=scripts, keys, macros, masks
Categories=
GenericName=anuupuus keys
\' > /nwp/keys/(name).desktop
"
' > /nwp/txd
chmod 755 /nwp/txd

cp -f /nwp/k /root/my-applications/bin/k
chmod 755 /root/my-applications/bin/k

the following fixes a problem with the t2x2 script:

Code: Select all

#!/bin/sh
echo $'
#!/bin/sh
#print out code that will generate (through vtg or terminal) an icon. they\'re small but expand to the fit the rox panels, or gain the same target area as the panel\'s largest icon. on the pinboards, the icon-target remains tiny. requires text2xpm: http://www.murga-linux.com/puppy/viewtopic.php?p=561822#561822
#print out a desktop template file for the icon you just made. send through a terminal or highlight section and click or otherwise activate the vtg.

xdotool type \'text2xpm "icon-image" >/nwp/keys/icons-sup/(name).xpm\'
xdotool type "
echo $\'
[Desktop Entry]
Encoding=UTF-8
Name=virtual keys
Terminal=false
Type=Application
Exec=/nwp/keys/k/
Icon=/nwp/keys/icons/.xpm
Comment=scripts, keys, macros, masks
Categories=
GenericName=anuupuus keys
\' > /nwp/keys/(name).desktop
"
' > /nwp/txd
chmod 755 /nwp/txd
(it's part of the above but it's also a bug fix if you're not interested in running the rest of the code.)

the next script explains how to set up desktop icons and does so for a few /nwp functions (a bunch of stuff is commented out, but i figure it could serve as ready made templates for what ever seems a useful fit):

Code: Select all


#!/bin/sh
#to quickly generate desktop files from/for nwp call codes and other
mkdir -p  /nwp/keys/icons-{sup,pyg,tl,td,wp-hc,wp-pp}
cp -fRu ./ptext2xpm /root/my-applications/bin/ptext2xpm
cp -fRu ./text2xpm /root/my-applications/bin/text2xpm
cp -fRu ./blktext2xpm /root/my-applications/bin/blktext2xpm
cp -fRu ./wtxt2xpm /root/my-applications/bin/wtxt2xpm
chmod 755 /root/my-applications/bin/ptext2xpm /root/my-applications/bin/text2xpm /root/my-applications/bin/wtxt2xpm /root/my-applications/bin/blktext2xpm
#commented out template on the chance you'd like to batch produce some icons. see comments at the end of script for more.
#~ ptext2xpm "UU" >/nwp/keys/icons-sup/0puu1p.xpm   
#~ ptext2xpm ">_" >/nwp/keys/icons-sup/0pscrp.xpm   
#~ ptext2xpm " _  ">/nwp/keys/icons-sup/0pem21p.xpm   
#~ ptext2xpm "PgBk" >/nwp/keys/icons-sup/0pbk1p.xpm     
#~ ptext2xpm "lu" >/nwp/keys/icons-sup/0plu1p.xpm  
#~ ptext2xpm "1st" >/nwp/keys/icons-sup/0p1st1p.xpm   
#~ ptext2xpm "last" >/nwp/keys/icons-sup/0plast1p.xpm     
#~ ptext2xpm "(/)" >/nwp/keys/icons-sup/0pps2p.xpm   
#~ ptext2xpm "VTG" >/nwp/keys/icons-sup/0vtgp.xpm   
#~ ptext2xpm "PW,N" >/nwp/keys/icons-sup/0pwnp.xpm   
#~ ptext2xpm "AEM" >/nwp/keys/icons-sup/0aemp.xpm 
  
#~ text2xpm "UU" >/nwp/keys/icons-sup/3puu1p.xpm   
#~ text2xpm ">_" >/nwp/keys/icons-sup/3pscrp.xpm   
#~ text2xpm "(/)" >/nwp/keys/icons-sup/3pps2p.xpm   
#~ text2xpm " _  ">/nwp/keys/icons-sup/3pem21p.xpm   
#~ text2xpm "PgBk" >/nwp/keys/icons-sup/3pbk1p.xpm     
#~ text2xpm "lu" >/nwp/keys/icons-sup/3plu1p.xpm  
#~ text2xpm "1st" >/nwp/keys/icons-sup/3p1st1p.xpm   
#~ text2xpm "last" >/nwp/keys/icons-sup/3plast1p.xpm     
#~ text2xpm "VTG" >/nwp/keys/icons-sup/3vtgp.xpm   
#~ text2xpm "PW,N" >/nwp/keys/icons-sup/3pwnp.xpm   
#~ text2xpm "AEM" >/nwp/keys/icons-sup/3aemp.xpm  
  
#~ wtxt2xpm "UU" >/nwp/keys/icons-sup/2puu1p.xpm   
#~ wtxt2xpm ">_" >/nwp/keys/icons-sup/2pscrp.xpm   
#~ wtxt2xpm "(/)" >/nwp/keys/icons-sup/2pps2p.xpm   
#~ wtxt2xpm " _  ">/nwp/keys/icons-sup/2pem21p.xpm   
#~ wtxt2xpm "PgBk" >/nwp/keys/icons-sup/2pbk1p.xpm     
#~ wtxt2xpm "lu" >/nwp/keys/icons-sup/2plu1p.xpm  
#~ wtxt2xpm "1st" >/nwp/keys/icons-sup/2p1st1p.xpm   
#~ wtxt2xpm "last" >/nwp/keys/icons-sup/2plast1p.xpm     
#~ wtxt2xpm "VTG" >/nwp/keys/icons-sup/2vtgp.xpm   
#~ wtxt2xpm "PW,N" >/nwp/keys/icons-sup/2pwnp.xpm   
#~ wtxt2xpm "AEM" >/nwp/keys/icons-sup/aem.xpm 
  
#~ blktext2xpm "UU" >/nwp/keys/icons-sup/1puu1p.xpm   
#~ blktext2xpm ">_" >/nwp/keys/icons-sup/1pscrp.xpm   
#~ blktext2xpm "(/)" >/nwp/keys/icons-sup/1pps2p.xpm   
#~ blktext2xpm " _  ">/nwp/keys/icons-sup/1pem21p.xpm   
#~ blktext2xpm "PgBk" >/nwp/keys/icons-sup/1pbk1p.xpm     
#~ blktext2xpm "lu" >/nwp/keys/icons-sup/1plu1p.xpm  
#~ blktext2xpm "1st" >/nwp/keys/icons-sup/1p1st1p.xpm   
#~ blktext2xpm "last" >/nwp/keys/icons-sup/1plast1p.xpm     
#~ blktext2xpm "(/)" >/nwp/keys/icons-sup/1pps2p.xpm   
#~ blktext2xpm "VTG" >/nwp/keys/icons-sup/1vtgp.xpm   
#~ blktext2xpm "PW,N" >/nwp/keys/icons-sup/1pwnp.xpm   
#~ blktext2xpm "AEM" >/nwp/keys/icons-sup/aem.xpm 

#~ ptext2xpm "(/)" >/nwp/keys/icons-sup/1pps2p.xpm   
#~ ptext2xpm "VTG" >/nwp/keys/icons-sup/1vtgp.xpm   
#~ ptext2xpm "PW,N" >/nwp/keys/icons-sup/1pwnp.xpm   
#~ ptext2xpm "AEM" >/nwp/keys/icons-sup/aem.xpm 
#~ ptext2xpm "(/)k" >/nwp/keys/icons-sup/1k.xpm

#(enter "txd" in main launcher (or use the files in the wrapper/installation folder); example is making a desktop file for the main aem menu, the k launcher, the main pw,n launcher, the vtg and the ae menu that pops up all the pw,n launchers). highlight and middle click to make the needed copies of the desktop template, then fill in the call codes, icon paths, and pick a name for the desktop file (your pop up will give you "icon-image" for the text-picture selection, (name).xpm for the largely filed out icon path, and /nwp/keys/k as the executable path--i figure it's easier to delete the last two sections to execute from nwp than type them to launch from /keys/k. since i built the icon code from the text above, i can delete the template for a new text2xpm icon:
ptext2xpm "(/)" >/nwp/keys/icons/1pps2p.xpm   
ptext2xpm "VTG" >/nwp/keys/icons/1vtgp.xpm   
ptext2xpm "PW,N" >/nwp/keys/icons/1pwnp.xpm   
ptext2xpm "AEM" >/nwp/keys/icons/aem.xpm 
ptext2xpm "(/)k" >/nwp/keys/icons/1k.xpm
#the easiest way to swap icons once sets are already assigned to desktop files is probably to rename the folder that feeds them, then generate or rename a folder containing the other set to the original name.
#this example uses a folder that's empty in 1.3 but full in 1.2--it wasn't a good choice, example or not.
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=virtual keys
Terminal=false
Type=Application
Exec=/nwp/vtg
Icon=/nwp/keys/icons/1vtgp.xpm
Comment=scripts, keys, macros, masks
Categories=
GenericName=anuupuus keys
' > /nwp/keys/vtg.desktop

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=virtual keys
Terminal=false
Type=Application
Exec=/nwp/pwnz
Icon=/nwp/keys/icons/1pwnp.xpm
Comment=scripts, keys, macros, masks
Categories=
GenericName=anuupuus keys
' > /nwp/keys/pw,n-all.desktop

echo $'
[Desktop Entry]
Encoding=UTF-8
Name=virtual keys
Terminal=false
Type=Application
Exec=/nwp/aef
Icon=/nwp/keys/icons/aem.xpm
Comment=scripts, keys, macros, masks
Categories=
GenericName=anuupuus keys
' > /nwp/keys/ae.desktop


echo $'
[Desktop Entry]
Encoding=UTF-8
Name=virtual keys
Terminal=false
Type=Application
Exec=/nwp/k
Icon=/nwp/keys/icons/1k.xpm
Comment=scripts, keys, macros, masks
Categories=
GenericName=anuupuus keys
' > /nwp/keys/k.desktop
echo $'
[Desktop Entry]
Encoding=UTF-8
Name=virtual keys
Terminal=false
Type=Application
Exec=/nwp/p
Icon=/nwp/keys/icons/1pps2p.xpm
Comment=scripts, keys, macros, masks
Categories=
GenericName=anuupuus keys
' > /nwp/keys/p.desktop
i didn't include txt2xpm in the previous update, but you can grab copies here:

text2xpm (set as dark purple characters on a transparent background):
https://drive.google.com/file/d/0ByUDhE ... sp=sharing
ptxt2xpm (yellow-green on purple):
https://drive.google.com/file/d/0ByUDhE ... sp=sharing
wtxt2xpm (white on transparent):
https://drive.google.com/file/d/0ByUDhE ... sp=sharing
blktxt2xpm (black on transparent):
https://drive.google.com/file/d/0ByUDhE ... sp=sharing


the script with the commented out icons is a smaller version of what i used to generate all the icons and desktop files in the previous update. you can see them here.

copy the txt2xpm versions to /root/my-applications/bin, set the permissions, and the code above will generate some icons and desktop files. alter the txt2 scripts to alter the generated icons and rerunning them or dumping sections from them into the terminal will change the appearance of your desktop files as quickly as renaming the generated folders (change the paths to folder you can swap in) does.

the 24k in the name of the update script's a bit of a warning: the files are small, but the new update alone contains over 24000 files (it's quick despite this, but navigation for configuration purposes is best left to the launchers. small icons for script and xpm defaults help considerably from what i've seen, though after a huge folder has been loaded, subsequent visits show little if any lag. initially annoying and still better left unexperienced.) :( :P

here are the build scripts (minus the install and new icon management help file/script) as a compressed folder: bldscr-nwp-1.3.tar.xz

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

icon hop up kit

#55 Post by Puppus Dogfellow »

from Re: folder load speed improvements, aesthetics, iconification,
versioning, labeling and file differentiation: some uses for a very large pack of very small icons.

Puppus Dogfellow wrote:a_very_large_pack_of_very_small_icons.tar.xz

Image

here's the included readme:
folder load speed improvements, aesthetics, iconification, versioning, labeling and file differentiation: some uses for a very large pack of very small icons.
_____

to assign an icon to any script, file, folder, or file type, right click in rox and choose "set icon" then drag your choice into the box that pops up. each file type included has about forty or so icons you can use to tell one apart from the other at a quick glance, or to keep a color coded chronology, or, since they're so small (all are under a kilobyte and most are closer to half that), speed up file load times by making things easier for your machine.


_____

the funpack folder contains a batch of renamed versions of technosaurus's text2xpm script--they're copies of what the scripts in the build script folder used to make the icons. just place them in /root/my-applications/bin and set the permissions. use either Gcolorsel (gcolor2 in a terminal) or geany's built-in color chooser to edit the bits of the script that change the actual colors you pick (a search (without the regular expressions box ticked) for "${bg1" will take you to the part of the file where you enter the six letter foreground and background color codes. pick a color, highlight and middle click your choice into the correct spot, replacing the one that's there. to change what gets produced, check out the other scripts in the build folder and replace whatever's in between the quotation marks--the space in between them is the icon you generate and your changes to the scripts are the colors you choose (some templates are set for 37 versions of one icon, some are set for one set of many icons. some of the alternate mime types or labels (depending on preference and plans and how you look at the whole mess--it's now grown to 6200 icons or so) are entirely text dependent, and so have both upper case and lower case versions of the various color schemes, plus quite a few have micro alternatives (which were actually made first, but i find are better suited for the desktop than folders due to things like the little green ball that shows a drive is mounted or the thing that identifies a network drive obscuring the identifying bit of text of, for example, something like the !x icon (xpm--the exclamation point is supposed to look like a paintbrush, i guess. html and xml have >< surrounding their call letter to identify them, and all the text file types (odt, doc, docx, pdf, mono, serif, and sans nwp template files, etc) were given close brackets in an attempt to approximate a page image or book cover (and stretched out, they form a version of some directory replacement icons).

pics and/or a readme that shows the colors forthcoming, but you can pretty much tell what you'll get because the majority of the icons show their specific text2xpm ancestry in the letters that make up their names. (lo is blue orange since b for black had been taken, but most are more clear than that. kw and wk for black and white is another that may need an explanation--black on white, white on black--orca colors. there's a white on transparent, a black on transparent, orange and blue, green and blue, green and white, --sine they're small and the text on them even smaller, i've made an attempt to make at least some of them somewhat high-contrast.

___

the aemenu icons folder has sets for just about all the ae pop up menus--just find the file in /nwp, set the icon with your choice, and drag to a desktop or a panel. rename a copy if you want more than one version on your desktop in more than one color (perhaps to match different wallpapers on different screens or desktops).

--puppus dogfellow, 4/9/16
100k folder contains:
a_very_large_pack_of_very_small_icons.tar.xz
readme
buildscripts-icons.tar.xz
txpm_fun_pack.tar.xz

the icon folder itself contains:
0-9_4_menus,etc
ae-icons
mime-alt
mimes-wp
no_text(dirs,etc)
script-console-example(30)

0-9 are just alternative root menu icons, mime alt contains just about all the file types i could think of as possibly piling up (plus whatever happened to be part of a batch done at once--i looked up "media files" to get a list to copy and added whatever microsoft file types i could remember; i believe these got separated into subfolders apart from the majority you'll find in -alt). mimes-wp is mostly text-type documents, "no text" has arrows, blank rectangles and squares, sets of parentheses pointing both ways, inverted and standard braces and brackets, adorned (colons, ellipses, etc) rectangles and squares--i think there are 6,199 icons in all, but half the main folder's size comes from the build script folder (you can make 37 versions of an image-icon/set of image icons of your choice at a clip to make up for whatever you feel is missing).

because the /nwp folder contains so many tiny scriptlets, i recommend first setting the mime type for script with one of the 347 byte icons in the script-console-example(30) folder--it will speed up folder load time considerably and give you a quick overview of how the icon generating scripts are set up (so you can quickly zoom in on which ones you'd first like to modify).
here's an unembedded link to the compressed folder:
a_very_large_pack_of_very_small_icons.tar.xz

and here's the original text2xpm thread again:
http://www.murga-linux.com/puppy/viewto ... 822#561822

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

bugfix for the function keys in the 1060 key pack

#56 Post by Puppus Dogfellow »

some of the function keys from the 1060 virtual keypad upgrade pack are a number off. the following script will fix it by overwriting the mistakes (and the ones that are okay. 35k): nwp-functionkeyfix

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

nwp updated to 1.5

#57 Post by Puppus Dogfellow »

Puppus Dogfellow wrote:from

http://www.murga-linux.com/puppy/viewto ... 726#903726 and http://www.murga-linux.com/puppy/viewto ... 726#903726 (the large jwm thread).
Puppus Dogfellow wrote:nwp-1.5.tar.xz

screeny of aei (aei in the keyboard plus spacebar launcher) install/port/config menu (can't use the jwm version to swap to somewhere functional if one of your configs (temporarily) breaks it):

Image

screeny of earlier jwm version (root one menu and clickable install versions shown):
Image
[Re: NWP_1.5 adds toggleable trays, expanded keyboard and menu
Subject description: options, 30 or so quick switches (some are unmenued clicks...)... ]

Re: updated nwp: programs' commands on jwm menus, tweaked menus
install method for newest slacko included in notes
Puppus Dogfellow wrote:nwp-1.4.tar.xz

new support folder

three clicks or so gives you the nine menus, reversal and uninstall methods provided. new window buttons due to a semi-bug in Xenialpup--this is now a feature (swap in any images you like in place of the buttons that are there).

also includes the 1060 virtual key keyboard and the 669 key version (separate launchers, though the keys overlap (largely irrelevant unless mapped to global functions--programs don't care what you name the keys)).

anyway, on a buggy installation (really running great apart from the random freezes so glad to have this in and done before the next one) so screen shots and the how-to for the newest Slacko (can't use nwp-jwm as is though there are notes in the support folder and the download's installation folder) to come.

larger (2.3mb) than previous versions because it contains some recommended programs and an enormous amount of icons.

download includes 5 install versions for both old and new jwm syntax and copies of the files i was able to mod on my Slacko64 install. there are four blanks (actually redundancies) for future installations--these are for your versions of what the third step in the configuration folder is transferring (tweaked jwmrc-personal and _root_.jwmrc files).

________

Image

Image


edit: added a couple of screenies. top is from Slacko64, bottom is from Xenialpup. installation folder and download/install wrapper shown in second pic, which also shows one of the sets of new root menu icons and the top and side trays (some installation options rid you of these). Slacko gif shows program menus on the jwm menu and aemenu popup (called from a jwm shortcut--shift plus spacebar).

the idea of the word processor being able to remaster fresh installations is almost to fruition. the xenialpup i'm currently running feels more or less indistinct from the 572.13 or so it replaces, and it took less time to port the changes than it would have to first remaster, then do the initial set up--most of it done before the first few pets install.

the main changes are the quickswitches now work and you can toggle your menus, trays, and keycuts. back up your current nwp if you've made changes to root3, c, or individual menus and scripts. i need to check the thread over to see if it's the one into which i went into the details of the four main keys files (in another form), but in addition to swapping in the giant key banks, you could also swap in menu configurations fairly easily. install/port/config menu itself is configurable.
_____

step two will overwrite your geany keyconfig file to match the built in ae and jwm menus shown and swap in the mime and versioning icons (also all the aemenu icons except for gg (geany copy serves as the template for the editable others--it's not strictly necessary to keep track of what keys you use on a per program basis since only one window's active at a given time) and aei (i think. i probably should've used the cheat sheet as the template for the ae-icon making script). speaking of the icons--all the packs (and scripts that made them) are included, but most are in compressed folders and none are set to overwrite what you may have added/modded.

see keys0 and keys1 (key config files for jwm that exist as multiple copies in the folders of nwp/root3--i may have gone overboard with the comments) as well as "elp" in the launcher for help.

the notes file in the main download folder and the one in the install two folder may also serve as reference--toggle interfaces for specific word processing tasks.

enjoy.

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

some updates included the recs folder from some pages ago

#58 Post by Puppus Dogfellow »

from http://www.murga-linux.com/puppy/viewto ... 394#905394
Puppus Dogfellow wrote:(remaster project--51mb)nwp-1.7-ur.tar.xz
nwp-1.6.1.tar.xz (2.3mb)
nwp-1.7.tar.xz (1.5mb)


from "1.7 is without the recs folder,":

but it's expanded in 17ur, which aims to also be a convenient method of remastering a puppy and or taking your with you to a newer (or merely different) environment. tested in various ways in slacko (do not use or use the included workarounds), quirky, unicorn, precise, and xenial. 17-ur is the last in the series that will include so many optional pets (unless the thing is released as an insta-remaster or somesuch), or probably any pets beyond the dependencies. that large -ur folder in /nwp/c is the only difference between 1.7 and 1.7-ur. 1.6.1 fixes a omission--a few files were supposed to have been overwritten with newer copies and weren't, and allows MochiMoppel's WinSwitcher to work (comment in file was in wrong place--switch to fix manually in both nwp and app-bin). my4 and my3 are now set to tray sets other than those in /nwp/root3/9 (3 gets those in /9menusblanks and my4 gets the ones in /10.)

puppus dogfellow, may 25, 2016.

______

here's some info on 1.6:

http://www.murga-linux.com/puppy/viewto ... 120#905120

(swappable keysets and other improvements).


install/remaster folder has four scripts--one for remastering xenial as p7, one for recreating p6 (really p6.2 or around there), and one for recreating the precise spins. the fourth is more heavily commented and was original made to do the whole remaster from the vtg, but it became copies and the other scripts i mentioned.

you could alter the install scripts to aid with a woofy remaster (other than focuswriter, everything in the large pet is already in this spins--that version is if you want to take this stuff (and your own customizations) with you to other installations.

_____

here's the "uncompressed_remaster-vtg" script:

Code: Select all

#!/bin/sh
#you could launch and alter the script (add, comment out, change locations, etc) piecemeal and in real time through the vtg. you could also get sloppy with the comments since it need not be a functioning script--i suppose i could add the remove abiword code to this, or just have the remove-built-ins open for while the pets are installing: remove_builtin (code would be petget -(name of installed pet) for pets you install, not sure for built ins...
#uncomment last five lines to set as xenial unto p7 i.e. full nwp and most of the program that made p6 and the approximately series of precise spins for new jwm syntax.
petget ./xenial/antiword_0.37-8.pet 
petget ./xenial/brother_mfc685cw-1.0.pet 
petget ./xenial/catdoc-0.94.2-i486.pet 
petget ./xenial/dillo-3.0.5-i486-wary5.pet 
petget ./xenial/ExifTool-8.66.pet 
petget ./xenial/findnrun-1.9.1.pet 
petget ./xenial/geany-plugins-1.25-i686.pet 
petget ./xenial/getflash-1.5-6.pet 
petget ./xenial/get_java-1.0.pet 
petget ./xenial/img2pdf_tahrpup-1.1.pet 
petget ./xenial/install-recoll 
petget ./xenial/javaif-20151214.pet 
petget ./xenial/libc-ares2_1.10.0-2_i386.deb 
petget ./xenial/libicu48_4.8.1.1-3ubuntu0.1_i386.deb 
petget ./xenial/libQt3Support.so.4.pet 
petget ./xenial/libxapian22_1.2.8-1.pet 
petget ./xenial/megasync-xUbuntu_12.04_i386.deb 
petget ./xenial/megatools-1.9.97.pet 
petget ./xenial/mupdf-1.4.pet 
petget ./xenial/mydbox-1.2_noarch.pet 
petget ./xenial/pcmanfm-1.2.3.pet 
petget ./xenial/peasypdf-3.4.pet 
petget ./xenial/PuppyTerrier-02c_BIL.pet 
petget ./xenial/qt4-4.3.2.pet 
petget ./xenial/recoll-1.13.02.pet 
petget ./xenial/Right-click-6.9.8.pet 
petget ./xenial/sfs2pet-20121001.pet 
petget ./xenial/SimplePythonHTTPServer-1.0.pet 
petget ./xenial/slocate-3.1-i486-4.pet 
petget ./xenial/spacefm_0.9.4-0_20141009_DOC.pet 
petget ./xenial/spacefm_0.9.4-0_20141009.pet 
petget ./xenial/unrtf_0.19.3-1.1.pet 
petget ./xenial/xapian-core-1.0.18.pet
mkdir -p /usr/local/share/
ln -s /usr/share/spacefm /usr/local/share/spacefm
petget ./xenial/copy-fast-2.4.pet
#move the spacefm directory in /usr/share to /usr/local/share in order to be able to set preferences.
#rox /usr/share /usr/local/share
#thanks to ASRI (the pets) and cimarron (the fix).
#petget ./unicorn/focuswriter-1.5.5-i686.pet
#petget ./precise/bash-4.3.30-1.pet
#petget ./precise/dbus-1.8.12_i686.pet
#petget ./precise/python-2.7.pet 
#petget ./precise/dillo-3.0.5-precise.pet 
#petget ./precise/geany-1.25-i686.pet 
#petget ./precise/geany_DOC-1.25-i686.pet 
#petget ./precise/yad_0.33.1-slk56.pet
#late additions to the folder
#this is like woofy live in some respects
petget ./xenial/woofy-0.91.pet
petget ./xenial/youtube-dl 
petget ./xenial/youtubedl-gui-0.1.pet

#add sleep commands if you want to slow things down and get involved--or try to. your machine may benefit from the breather--one of the things that gets honed (and/or personalized) with subsequent versions.

#/nwp/c/0install_deps_64 
#/nwp/c/00install-recs-a #expanded and now this (though the original's still in that folder).
#/nwp/c/3--full nwp, older jwm

#do the rest of the install from here:
#cp -fRu ./nwp /
#/nwp/c/0install_deps_32 
#/nwp/c/1--step1 
#/nwp/c/2--step2 
#/nwp/c/3--full nwp, newer jwm 
(if you're going to do the install from that script i.e. in the vtg (rather than merely running it, which in its present form would require some commenting out so you'd have to open it in an editor regardless), you should move the move /update nwp line to the beginning so the script can stay out of its own way or because it's the most time consuming part.)

the other remaster scripts are similar. the folder for 64 bit quirky is empty, but this was successful on that although with fewer pets in common (which stand to reason but may not be true--i used the recoll package and quite a few 32 bit pets on it...anyway, i'm sticking with this old, small recoll as a fail safe--newer ones don't always install and truth be told, i'm happy with it as is.

here are install parts one and two (just like a regular install of the nwp, remastering with it would start with moving it, then adding the deps for it, etc. here's the etc):

step one script:

Code: Select all

#!/bin/sh
#step1
#make backup of original jwm configs
mkdir -p /root/my-applications/userjwm
cp -fRu /root/.jwm/jwmrc-personal /root/my-applications/userjwm/oldjp
cp -fRu /etc/xdg/templates/_root_.jwmrc /root/my-applications/userjwm/oldjc
echo $'
cp -f /root/my-applications/bin/userjwm/oldjp /root/.jwm/jwmrc-personal
cp -f /root/my-applications/bin/userjwm/oldjc /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
' >  /root/my-applications/bin/reverse_installj
echo $'
cp -fRu /root/.jwm/jwmrc-personal /root/my-applications/userjwm/oldjp
cp -fRu /etc/xdg/templates/_root_.jwmrc /root/my-applications/userjwm/oldjc
' >  /root/my-applications/bin/backupj
chmod 755 /root/my-applications/bin/reverse_installj
chmod 755 /root/my-applications/bin/backupj
cp -fRu /root/my-applications/bin/reverse_install /nwp/.reversej
chmod 755 /nwp/.reversej
#earlier version does the same thing but gives an additional backup in /nwp/c. you could use it to back up an off-nwp config (or just keep it as a duplicate).
mkdir -p /root/my-applications/userjwm
cp -fRu /root/.jwm/jwmrc-personal /root/my-applications/userjwm/oldjp
cp -fRu /etc/xdg/templates/_root_.jwmrc /root/my-applications/userjwm//oldjc
echo $'
cp -f /root/my-applications/userjwm/oldjp /root/.jwm/jwmrc-personal
cp -f/root/my-applications/userjwm/oldjc /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
' >  /root/my-applications/bin/reverse_install-nwp1
chmod 755 /root/my-applications/bin/reverse_install-nwp1
mkdir -p /nwp/c/userjwm
cp -fRu /root/.jwm/jwmrc-personal /nwp/c/userjwm/oldjp
cp -fRu /etc/xdg/templates/_root_.jwmrc /nwp/c/userjwm/oldjc
echo $'
cp -f /nwp/c/userjwm/oldjp /root/.jwm/jwmrc-personal
cp -f/nwp/c/userjwm/oldjc /etc/xdg/templates/_root_.jwmrc
fixmenus
jwm -restart
' >  /nwp/c/userjwm/reverse_install
chmod 755 /nwp/c/userjwm/reverse_install-nwp1
#copy in some files (mostly to /root/my-applications/bin)
cp -fRu /nwp/5ce /root/my-applications/bin/5ce
cp -fRu /nwp/3c /root/my-applications/bin/3c
cp -fRu /nwp/5c /root/my-applications/bin/5c
chmod 755  /nwp/5ce /root/my-applications/bin/5ce
chmod 755  /nwp/3c /root/my-applications/bin/3c
chmod 755  /nwp/5c /root/my-applications/bin/5c
cp -fRu /nwp/mc/mcc /root/my-applications/bin/mcc
cp -fRu /nwp/tasnwp /root/my-applications/bin/tas
cp -fRu /nwp/ww /root/my-applications/bin/ww
cp -fRu /nwp/fnr /root/my-applications/bin/f
cp -fRu /nwp/t /root/my-applications/bin/t
cp -fRu /nwp/p /root/my-applications/bin/p
cp -fRu /nwp/rr /root/my-applications/bin/rr
cp -fRu /nwp/w11 /root/my-applications/bin/w11
cp -fRu /nwp/k /root/my-applications/bin/k
cp -fRu /nwp/caw /root/my-applications/bin/caw
chmod 755 /nwp/ww /root/my-applications/bin/w11
chmod 755 /nwp/ww /root/my-applications/bin/ww
chmod 755 /nwp/f /nwp/fnr /nwp/tasnwp /root/my-applications/bin/f
chmod 755 /nwp/t /root/my-applications/bin/t
chmod 755 /nwp/p /root/my-applications/bin/p
chmod 755 /nwp/rr /root/my-applications/bin/rr
chmod 755 /nwp/ch /nwp/p /nwp/ll /nwp/gl /nwp/chab /nwp/rl
chmod 755 /nwp/caw /root/my-applications/bin/caw
chmod 755 /nwp/tas /root/my-applications/bin/tas  /root/my-applications/bin/mcc
chmod 755 /nwp/mc/mcc/*
#move some apps i may potentially want to run at startup in a startup subfolder (toggle on and off by moving in and out of subfolder) 
cp -fRu /nwp/c/rec/quar /root/Startup/quar
#change the paths in this file and step one to use this scripts for a woofy-style remaster.
#
step two script:

Code: Select all

#!/bin/sh
cp -fRu /root/.config/rox.sourceforge.net/Templates /root/.config/rox.sourceforge.net/Templates-orig
#add templates, themes, bookmarks, panels, rox menus, etc by setting up the copy commands in this file.
cp -fRu /root/.config/rox.sourceforge.net/MIME-icons /root/.config/rox.sourceforge.net/MIME-icons2
cp -fRu /root/.gtkrc.mine /root/.gtkrc.mine-orig
cp -fRu /root/.config/rox.sourceforge.net/ROX-Filer/menus2 /root/.config/rox.sourceforge.net/ROX-Filer/menus2~
cp -fRu /nwp/c/2/menus2 /root/.config/rox.sourceforge.net/ROX-Filer/menus2
cp -fRu /nwp/c/p6-p7_install1/p7/jthemes/grprgrn2/* /root/.jwm/themes
mkdir -p /root/.icons/rox-toolbar/
cp -fRu /nwp/icons/1rx1 /root/.icons/rox-toolbar/1rx1
cp -fRu /nwp/c/2/0.gtkrc.mine /root/.gtkrc.mine
cp -fRu /nwp/keys/icons/MIME-icons/* /root/.config/rox.sourceforge.net/MIME-icons
cp -fRu /nwp/c/rec/1/Flat-grey-rounded /usr/share/themes/Flat-grey-rounded
cp -fRu /nwp/c/p6-p7_install1/p7/gthemes/gtkp61 /usr/share/themes/
cp -fRu /nwp/templates/* /root/.config/rox.sourceforge.net/Templates
/nwp/mbm #get bookmarks on menus (by MochiMoppel)
/nwp/roxicon #slightly modified iconswitcher script--it should allow you set letter key shortcuts (right click functions, largely) in rox.
cp -fRu /root/.config/geany/keybindings.conf /root/.config/geany/keybindings.conf-old
cp -fRu ./nwp/c/geany/keybindings.conf /root/.config/geany/keybindings.conf
#it may be advisable to close geany before running this (untested. should be the same as manual or gui editing the file, but untested).
#swap in your existing for the next time:
#~ cp -fRu /nwp/c/1/Bookmarks.xml /root/.config/rox.sourceforge.net/ROX-Filer/Bookmarks.xml
#~ cp -fRu /nwp/c/1/globicons /root/.config/rox.sourceforge.net/ROX-Filer/globicons
#~ cp -fRu /nwp/c/1/Groups.xml /root/.config/rox.sourceforge.net/ROX-Filer/Groups.xml
#~ cp -fRu /nwp/c/1/menus2 /root/.config/rox.sourceforge.net/ROX-Filer/menus2
#~ cp -fRu /nwp/c/1/Options /root/.config/rox.sourceforge.net/ROX-Filer/Options
#~ cp -fRu /nwp/c/1/panels /root/.config/rox.sourceforge.net/ROX-Filer/panels
#~ cp -fRu /nwp/c/1/pan_lef1t /root/.config/rox.sourceforge.net/ROX-Filer/pan_lef1t
#~ cp -fRu /nwp/c/1/pan_to1p /root/.config/rox.sourceforge.net/ROX-Filer/pan_to1p
remove_builtin
#allows you to do just that by giving you a popup with pull down menus. could be moved to the install-pets part of the uncompressed remaster.

#~ cp -fRu /root/.config/rox.sourceforge.net/ROX-Filer/Bookmarks.xml /nwp/c/1/Bookmarks.xml
#~ cp -fRu /root/.config/rox.sourceforge.net/ROX-Filer/globicons /nwp/c/1/globicons
#~ cp -fRu  /root/.config/rox.sourceforge.net/ROX-Filer/Groups.xml /nwp/c/1/Groups.xml
#~ cp -fRu  /root/.config/rox.sourceforge.net/ROX-Filer/menus2 /nwp/c/1/menus2
#~ cp -fRu /root/.config/rox.sourceforge.net/ROX-Filer/Options /nwp/c/1/Options
#~ cp -fRu  /root/.config/rox.sourceforge.net/ROX-Filer/panels /nwp/c/1/panels
#~ cp -fRu /root/.config/rox.sourceforge.net/ROX-Filer/pan_lef1t /nwp/c/1/pan_lef1t
#~ cp -fRu  /root/.config/rox.sourceforge.net/ROX-Filer/pan_to1p  /nwp/c/1/pan_to1p
#~ remove_builtin

#didn't copy over the libreoffice or geany config files (for some of the items on the geany jwm and aemenus to work you'll need to install some plugins--the keyconfig swap will take care of matching up the default geany submenu (up and down (four and five) mouse buttons, alt four and five, gg or ggv (alt version for use as a template to get other program's oft-used commands in some convenient places) in the launcher, but the code to bring over (store your custom copies in the directories the code makes or change both that and the store section) your main geany and libreoffice configs is:
#mkdir -p /nwp/c/lo/user 
#mkdir -p /root/.config/libreoffice/4/user #(in case you do this before you actually install libreoffice on the new machine)
#cp -fR /nwp/c/lo/user /root/.config/libreoffice/4/user
#you would need to have copied yours over to that location first. similarly, with geany:
#mkdir -p /nwp/c/geany
#backup original geany:
#cp -f /root/.config/geany/geany.conf/root/.config/geany/geany.conf-old
#cp -f /nwp/c/geany/geany.conf /root/.config/geany/geany.conf
step three finalizes your nwp config choices and restarts jwm/fixes the menus to read the correct syntax (old or new).

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

updated to 1.9. more configuration options, instant access

#59 Post by Puppus Dogfellow »

made some improvements to the configuration options (especially if you like the idea of nine menus but want to leave the interface pretty much as is) and updated the quick links. next update gets better documentation and maybe released as a desktop environment.

files in the main c (configuration, installation, store your stuff to be ported) folder:
nwp/c/0install_deps_32
nwp/c/0install_deps_64
nwp/c/00install-recs-a #at present does nothing
nwp/c/1--step1
nwp/c/2--step2
nwp/c/3--full nwp
nwp/c/3-no bottom tray
nwp/c/3--no left or bottom trays
nwp/c/3--no left or top tray
nwp/c/3--no left, pup bot
nwp/c/3-no left tray
nwp/c/3--no top, puppy bottom tray
nwp/c/3--no top tray
nwp/c/3--pup plus nwp top and left
nwp/c/3--trad pup bot
nwp/c/4--trayfix-finish-new
nwp/c/4--trayfix-finish-old
nwp/c/4--trayfix-finish-old--movex1
nwp/c/4--trayfix--new--movex1
nwp/c/reverse jwm config swap (reverse step 3)
nwp/c/reverse step2
nwp/c/reverse_step1
nwp/c/uninstall_deps_32
nwp/c/uninstall_deps_64

files in the quick start folder (no jwm involvement though you could do that later through the mae menu):
0install_deps_32
0install_deps_64
0symlink-nwp
aef
aen
gg
mae
main launcher and some menus(txt)
p (main launcher--give it a keyboard shortcut)

____________

here's the updated list:
(from: http://www.murga-linux.com/puppy/viewto ... 267#906267 )

nwp updated to 1.9 -- many configuration switch improvements
plus here's the most up to date launcher cut list

nwp-1.9.tar.xz

launcher quickcuts link (that and this will be the ones i update--regrettably there are probably at least four others around that are not as accurate and likely never will be).

quick codes for the shift plus space bar (you can change it) launcher:
The ever-evolving list of launcher shortcuts (nwp installation sets the shortcut for the launcher itself as spacebar plus shift, but if you don't have jwm, you'll have to do it manually through whatever method you find convenient. The shortcut is used heavily if at all, i guess, and so my recommendation tries to make it fluid, simple, and quick). An almost complete (as of June 2016) list of shortcuts (interrupted by a list of fixes in the upcoming 1.9.1: geany and geany new instance were backwards on the root one menu; the mae aemenu (installation, port-store-backup, menumaker, shutdown+, and jwm config options submenus, etc) was never added to the nwp folder itself--the mae shortcut won't work until it's copied over (though you can activate it from the installation/download folder); trayfix old and new have been given more prominent placement on mae and its jwm equivalent; megasync's a builtin; ocr thanks to rcrsn51; …[one of the two upgrades in the works is in lieu of two isos. it upgrades p6.0 to what would have been p6.1 and makes ~572.15 out of -.14; other upgrade has no add-in pets. set for old syntax this time. fresh installs are generally quicker than upgrades so rename your old nwp if you're upgrading. once the folder turns to anubis (about 15 seconds on my slower machine) you can call from nwp rather than the install folder and/or complete the installation. pets run fixmenus and jwm -restart automatically so the update pack is just a click and a bunch of okaying (alt plus o or more clicking).....]):

bb -- spit out bold tags
bb2 -- span tags for bold fonts or other, non default font choices (bold tags don't appear to work though the nwp's underlining and italics tags show the expected results). default is for monospace, same as po1, po2, po4 (the latter two are templates, po1 is an xdotool "spit this code" script/a backup of the main (monospace) template).
book -- older version of one of the tocs/tics--customize if you like
bpo -- open the default template files in a browser so you can see the line spacing, highlighting, etc. use gpo to edit what the command calls and what browser gets opened
bq -- block quote tags
f - findnrun
gpo -- open the browser, leafpad, and geany configuration files for the nwp word processor plus the default default templates in geany.# geany /nwp/po1 /nwp/po2 /nwp/po3 /nwp/po4 /nwp/po5 /nwp/po6 /nwp/gpo /nwp/lpo /nwp/bpo /nwp/bb2
h1-h6 -- print out tags for headings 1-6
her -- open the hr template in geany
herl -- open the hr template in leafpad
hero -- open the hr template in geany
hr -- print out hr tags
hr0 -- open the hr template in geany
hr0l -- open the hr template in leafpad
hr1 -- spit out hr doc template
hrl -- <hr> tag, 35%, grey left side
hrr -- <hr> tag, 10%, grey right side
hrt -- template for autopage breaks with hr tag. called by other scripts.
ii -- italics tags
link -- external form of the toc tags
lp -- launch leafpad
lpo -- leafpad /nwp/po2| leafpad /nwp/po4 /nwp/po5| leafpad /nwp/po6| leafpad /nwp/lpo (open the wp template files in leafpad; open the file that determines what leafpad opens
mono -- open monospace template with geany
mono1 -- spit out monospace doc template
monol -- open monospace template with leafpad
monot -- monospace template
np02 -- pu(/)up launcher (configured to begin with a highlighted /nwp/)
p -- pu(/)up launcher configured to start at the end of /nwp/
pb -- <par style="page-break-after: always"></par>
pba -- <par style="page-break-before: always"></par> (a=above)
po -- open po2
po1 -- print out an improved version of the preotry template
po2 -- (template--po1 without the mini-wait--use Clone (under Documents menu) or SaveAs to preserve the file)
po3 -- geany /nwp/po4 /nwp/po5 /nwp/po6 /nwp/po2
po4 -- template as 14 pt monospace
po5 -- template as 14 pt sans
po6 -- template as 14 pt serif
pr -- print out paragraph tags
prc -- print out paragraph centered tags
prj -- print out paragraph justified tags
prl -- print out paragraph left tags
prr -- print out paragraph right tags
q -- cite tags
san1 -- spit out sans serif doc template
sans -- open sans template with geany
sansl -- open sans template with leafpad
sanst -- sans serif doc template
ser1 -- spit out serif doc template
serf -- open serf template with geany
serfl -- open serf template with leafpad
sert -- serif doc template
sub -- subscript tags
sup -- superscript tags
t -- launch terminal of your choice (delete/comment sakura and uncomment or add your choice)
toc and tic paste bookmark/hyperlink codes. good for tables of contents, master documents, etc. on the editing side, you can make bookmarks in geany with ctrl+m, which will also toggle it off. ctrl plus comma is previous bookmark, control plus period is next bookmark. the plugin for numbered bookmarks makes a list on the side panel (unless that's default and i can't just can't figure out how to work/access the plug in version):
tic -- tic same page template and anchor --new tab
tic1 -- external page or same or external file, no anchor -- same tab
tic2 -- external page or same or external file with anchor -- same tab
toc -- toc same page template and anchor, same tab (general bookmarks). look up your text editor's method for bookmarking for the edit text (also non formatted) view.
toc1 -- external page or same or external file, no anchor -- new tab
toc2 -- external page or same or external file with anchor -- new tab
to open files in geany at specific location, append :line#:column# to the file, i.e. geany /nwp/docs/file1:50:14
ul -- underline
v -- activate vtg
xp -- launch xpad/new xpad
terminal nwp/pwn/pax shortcuts:
s# send active window to desktop#
s#s send next clicked window to desktop#
d# go to desktop#
c plus a single letter is normally a close command--cr, close rox; cu, close urxvt terminals; ct, close rxvt Terminal.
pp# --change pinboard
p# --change/toggle four panel set frame (can be altered down to one)
my# --swap out custom jwm configurations
gea3 --edit custom jwm configurations
la, lb, lm ---layer above, below, middle/normal for active window
las,lbs, lms ---layer above, below, middle/normal for selected window
stk, ustk --stick unstick active (add an s for the click to select version)
pv2--partview and rox /mnt
rr --rox recently visited
rb1 --four (iirc) rungs down on the rox bookmarks menu
rup --three rungs up from the bottom of the rox bookmarks menu (this and rr may need to be adjusted depending on how your rox filer is set up)
pcp --access pup control
fnr --find and run (same as f--fnr is it's traditional short.)
hlx -- htop in an urvxt window and lx task ...
ppm is a built in for package manager (will work in nwp launcher or terminal)
x#-- move to # on x-axis (increments of 5)
y# --move to # on y-axis (increments of 5)
h# --height (increments of 5)
w# --width (increments of 5)
rs --resize
t --terminal (set for my-applications/bin, so launchable from terminal or np/nwp/pxc launcher)
f --findandrun (also set for my-apps/bin)
np --nwpus launcher2 (no sweep right--prehighlighted entry)
sd --speeddials
sdr --speed dials recent list only
gnysys --open a slew of config files in geany
3but -- speed dials and a version of winswitcher
ww -- winswitcher (also ctrl plus spacebar).
galc -- galculator
nc-- notecase
gd -- goldendict
jv -- make java sfs and take you there (thanks, uten. (still there but superseded by rerwin's packages (two installed if you use the -ur version of the nwp))).
##5c -- now the command to make 5 copies of a file by command line.
5ce -- generate drag and drop file in your current working directory and another set to make editing it easier (set for 5 copies with the bulk-renameable extension X(followed by the number of copies). this is an improvement, i think, but you may prefer
mcc -- Make_Concurrent_Copies, which open a directory set for sets of three and five for a fairly wide variety of file types
##5cd -- [obs.]
7c -- print out the command for changing permissions of a script to executable (kind of lazy--chmod 755 isn't that involved...).(sorta made obsolete by the ch launchers (still arguably useful for vtg use)).
1 -- single monitor menu
2 -- double monitor menu
g -- grid menu
x -- x axis menu
y -- y axis menu
w -- width menu
h -- height menu
mv -- move
wn -- windows menu
mn -- minimize
mx -- maximize window
o -- old windows manipulation menu
s -- new version of supplemental menus
n -- the original nwpus menu
n1 -- the full word-processing menu without any of the supplementals. it has n2 and n3 as submenus but gives some prominence to the overall document formatting commands from n3
n2 -- just the highlight and click to apply word processing/html code section
n3 -- the paste and place section of the main (word processing) menu.
slac -- search all databases
sloc -- search selected database with option to print results #sometimes problematic
sluc --update all slocate databases/create databases (thanks to musher0 for the slocate wrapper and the three scripts i've renamed here)
ww - winswitcher
sv -- make a folder a server. open a terminal and sv in the pax launcher (nwp launcher, etc) will print out "python -m SimpleHTTPServerWithUpload"--open a browser in the client computer and input the ipnet address (run ifconfig in a terminal) with :8000 appended to it (i.e. http://192.168.1.66:8000). this will allow you to upload and download files to the directory you ran the sv command (i.e. shift+spacebar (which pops up the modified pexec launcher showing /nwp/ in the entry box) then sv then enter) in.
by rcrsn51. thread here: http://www.murga-linux.com/puppy/viewto ... 132#415132 (unnecessary now that it has a gui)
fw -- toggle firewall on off (actually give a pop up that provides the function. requires the pet by tronkel you can find at
http://murga-linux.com/puppy/viewtopic. ... 9ea478cf1f). rcrsn51's SimpleHTTPServerWithUpload won't run with the firewall in place and this is a convenient way to temporarily disable it.
-3--------------------------- 6
1 2----------------------- 8 9
-4 ----------------------------7
b5=full screen left, b10=full screen right. b series is halves and wholes.
1 2--------------6 7
--5----------------10
3 4--------------8 9
a# series is quadrants...
sk - sakura (also t in nwp/pwn/pax or any terminal for most of them (some may be set to urxvt or rxvt--they all have sakura though)
rn - gfnrename (batchrenamer)
hlx - htop (through urxvt) and lxtask
bh - adds bold tags around a selection of text in any text editor
uh - adds underline tags around a selection of text in any text editor
sth - add strikethrough tags around a selection of text in any editor or window that can receive text input
ih - add italics tags around a selection of text in any editor or window that can receive text input
bb - print out bold tags
cmt - print out comment (<!-- -->) tags
ii - print out italics tags
st - print out strikethrough tags
ul - print out underline tags
#wm -- go to one of the giant menu submenu menus (presently set for root 0 menu--requires jwm and the root3 folder in /nwp)--[Obs.]
some changes to the templates...
a much better way to launch and batch launch files (you'll get a a dual view without having to to click the file more than once. for print preview of the pdf form of this essentially txt/html word processing document (though you can embed and link what you like , it seems), you'll need to access to your choice of browser/htmlviewer's print preview button. to change the headers and footers, you'll need to use your browser's print > options menu.
-------------
dual launchers (text editor and browser) for the Nooby Word Processor/nwp:
ggc -- geany, chrome
gigc -- geany new instance, chrome
gio -- geany new instance, opera
lgc -- leafpad, chromium
gif -- geany new instance, firefox
def -- default text editor, default browser
gf -- geany, firefox
tef -- default text editor, firefox
lff -- leafpad, firefox
gb -- geany, default browser
gib -- geany new instance, default browser
leb -- leafpad, default browser
leafy -- leafpad, seamonkey
dlll -- leafpad, dillo
ged -- geany, dillo
ges -- geany, seamonkey
lop -- leafpad, opera
gep -- geany, palemoon
gc -- geany, chromium
gip -- geany new instance, palemoon
gic -- geany new instance, chromium
lep -- leafpad, palemoon
gid -- geany new instance, dillo
lec -- leafpad, chromium
gis -- geany new instance, seamonkey
more shortcuts now available to the Nooby Uber Utility Pack
sda[1-6]-sdd[1-6] -- open those partitions
the following will open in rox if entered in the pw,n launcher: mnt, home, mdoc (opens root/my-documents), apps (opens usr/share/applications), jwm (/root/.jwm), bin, jxdg(etc/xdg/templates), conf (/root/.configure), mybin (/root/my-applications/bin), etc, tmp, and pack (/nwp).
at, at[1-10] are autotext scripts. atx is the template, ate will open the 11 in geany for you to edit/rename. single monitor setups now have similar nwp shortcuts as doubles:
q series is quarter sized up to five (which is configurable and centrally placed);
q6 and q7 set the active window to left and right halves of the screen respectively
q8 and q9 are top and bottom. q10 is full/maximized (as is mx).
Code:
q1 q2 q8
q5 q6 q7
q3 q4 q9
some deps, recs, and links:
pcp requires puppy control panel:http://www.murga-linux.com/puppy/viewtopic.php?t=61961
tas requires take a shot: http://murga-linux.com/puppy/viewtopic.php?t=84528
f requires find and run: http://www.murga-linux.com/puppy/viewto ... 5582835582
xpc and xpb require xpad
[tas and find and run are now built ins-for original tas icon install the pet. some alternate icons in nwp/icons, nwp/keys, and nwp/root3/icons]
some other included shortcuts:
xpc -- xpad clear
xpb -- xpad back up
[these have been neglected because i mostly use "lpx" in place of xpad and sync the notes folder to my dropbox account--been meaning to switch copy out for rsync (but i still haven't read up on rsync beyond tales of its superiority]
cnt -- spit out the code in those echo sections from the script above that allows you to create files with predetermined content (cnt--content)
c- -- a comment line that looks like this: #------------------
tas -- SFR's take a shot
pcp -- radky's puppy control panel
ww -- MochiMoppel's WinSwitcher
v -- vtg
---------
(another batch from recent update:)
roks -- open k1-10 in geany for editing (they're rox bookmark files, but will open regular files with default handler in addition to directories with rox)
geak - open all the word processor templates in geany
duals -- open a folder containing a group of dual launchers (text editors and browsers) for use with the nooby word processor
paw -- page break above, white text
pbw -- page break below, white text
l- open launcher customized for leafpad
r- open launcher customized for rox
g- open launcher customized for geany
---------
another batch from recent update:
rad -- rox, starting level is /root/my-documents
rab -- rox, starting level is /root/my-applications/bin
gad -- geany, starting level is /root/my-documents
gab -- geany, starting level is /root/my-applications/bin
lad -- leafpad, starting level is /root/my-documents
lab -- leafpad, starting level is /root/my-applications/bin
chab -- chmod 755 (allow script to run) prefix, starting level is /root/my-applications/bin
atdesk --make a desktop template
jp -- open jwmrc-personal with geany
(a new gynysys based on the move of many files out of root and root/my-applications/bin and into /nwp. will open a duplicate for you to modify)
hi - hard info
mr - sfr's multi rename
ppm --so you can call the ppm from the nwp launcher without having to go to findnrun or a terminal or backspace or ctrl-a over the text (/nwp/)
v - the vtg (also working well in quirky)
m - pmount and partview
veg - same a alt+g -- vgt, nwp and puup help
gi - new instance of geany
cursor at right versions of launcher
p -- main nwp launcher
ch - permissions launcher
gl - geany launcher (also -g)
ll - leafpad launcher (also -l)
rl - rox launcher (also -r)
highlighted entry versions:
r- rox launcher
g- geany launcher
ch- change permissions launcher
l- leafpad launcher
f1-f36 --type those function keys
(one of my machines is without) Crying or Very sad(though 1600 virtual key keypad(s) make up for it--not every program will accept all it has to offer, but you can try F36 plus up to four modifiers (k launcher, acswf36 (alt, control, shift, windows key--that's the pattern. from one to four modifiers in alphabetical order for alphanumeric characters and function keys to F36--rename the call codes whatever you like. single digit codes all unused though i've been finding sometimes too cryptic's not much of a help (but the k2 launcher gives you 600 by number--iirc, just the function and numbers starting with the former with four modifiers? (i prefer the other version, but the easiest way to set keycuts for programs may be through a menu you generate for the purpose))))).
elp - help opened up in leafpad (mostly paste and paste cheats until you modify them)
tem - ae templates menu
*********************
AEMENU KEYCUTS:
what it is -- what to enter into the p,wn launcher:
nwp and submenus -- n
word processor without supplemental menus -- n1
paste and place formatting codes only -- n2
highlight and select formatting codes only -- n3
supplemental -- s
single monitors -- 1
double monitors -- 2
aef -- aemenu containing (nearly?) all the aemenus
pw,n launchers for nwp -- pwns
grids (x and y by 100 pixel increments) -- g
extra windows manipulation menu -- o
points on axis y -- y
points on axis x -- x
width by fives -- w
height by fives -- h
templates and dual launchers -- tem
aemenu dual launchers -- dual
aemenu window size and placement -- w1
(new one, "elp," pops up a leafpad document with what's between the asterisk trains. modify to taste)
*********************


new additions:

gg and the key launchers [documentation pending]

http://www.murga-linux.com/puppy/viewto ... 274#895274
main key launcher -- k
key launcher for 669 version -- k2 (as separate launcher)
key launcher without sweep right-- k-
key launcher, change permissions of mini script (key, key sequence, etc)-- kch
open key folder -- kir
key launcher, mod keys in geany -- kg
key launcher, mod keys in geany, new instance -- kgi
key launcher, mod keys (rename, save as, repeat, etc) in leafpad -- kl
key launcher, return to main launcher -- p
gg -- aemenu popup for custom geany items (vtg, keys, menu entries--use as a template to put other programs' shortcuts in easier reach and/or a custom arrangement.
pwns -- aemenu of all the launchers
aef -- all the aemenus as an aemenu popup


_______

vtg5 opens up an expanded version of "elp" in geany.


***

mae -- configuration menu (ae menu also containing port, store, install scripts for use with NWPDE i.e. the insta-configure setup in /nwp/c)
ams1-3 -- toggle in the three alternate menu sets (for new installs, as of version 1.9 you needn't use any of the my series quickswitches to use this or the other toggle functions (with the exception of the six keyboard configuration switches (kb1on-kb6on---also on the ae and jwm menus in less cryptic form (jwm version of the mae menu you find starting in 1.9 is on the root four and five (up and down, alt+four and +five) menus and the shutdown+ menu on the left click (root1, alt+1) menu.)
my1-4 -- keyboard centric configuration toggle
my1r-my42 -- reverse those configurations. pattern is the same for the my30-my49 quickswitches.
avtray and dvtray 1 and the rest of the menu and tray swapping commands were originally for the menus and so may not be worded/shortened for nwp launcher use, but looking at the rest of that menu making menu (what mae originally was, although first called maekr (still there as a copy you can mod) and aei (also still there--you can mod that for your five custom jobbies in nwp/root3. they in turn can be your default swap-ins when and if you decide you take your current/future-current setup with you.
when i make 1.9 official (it's in the repo but i haven't announced in a murga-linux thread) i'll likely first clean away all from the following that isn't a launch code, but you can always check out what code launches a menu item using the same method as for editing. unfortunately for ae menus, it's usually a two step ll since the first one will only show you the name of the file it's reading--this second one is the one you need to actually look at. for menu making items, tray items, etc, for now see here (or ll > maek in the launcher, maek being the file mae reads): http://www.murga-linux.com/puppy/viewto ... 121#905121


ilkon -- open up desktop template, leafpad
igkon -- open up desktop template, geany

from the notes file in the recs section:

Kind of related to the following idea of nwp as remaster-tool, you could use it as a sort of bootleg zero-install method. For example, i have a number of programs and scripts (01micko's get_libre office utility, MochiMoppel's SpeedDials and Winswitcher (ww), SFR and Step's FindnRun(f), etc) that aren't installed, but get called as if they are through the launcher that pretends the nwp is part of the executables' path/PATH. You can do it with scripts by renaming them and moving them into the nwp (get_libreoffice becomes getlibre in the launcher, speed dials is sd or sdr, if you just want the recents to pop up), and many pets are amenable to the same with one or two extra steps (uncompress the folder, find the script that the pet is a wrapper for, then move it and/or rename it). Of course, some things are just easier left as pets (but you may know how to make a jwm theme but not know how to make a pet of it--easier just to copy it over to its correct location perhaps).

bonus on the bootleg0: the which command will give you the location of the scripts powering most pets you and other developers have installed (it doesn't distinguish between builtins and addins). you could then just up arrow that in the terminal, prepend with "geany" or "leafpad" and a space, hit enter, then save the thing that pops up as a nwp/pwn shortcut (i.e. give it a short, easy to remember (and associate with its intended function) name and save it in the /nwp folder so the shift plus spacebar launcher can launch it. rename the keys in a similar (though easier) way: kl (or kg) in the main launcher followed by the keycode/key call--then rename the script or a copy of it).

here's that menu with a little substitution so it more resembles the rest of the list on these pages (less codey and saves you a click):

menu "menu maker
aemenu launcher template -- ael
aemenu--given program -- aeae
aemenu--given title -- aeae2
aemenu template -- aeaem
jwm --given program -- jwmkr
jwm --given label -- jwmmkr
jwm menu template -- jwmm
jwm includes template -- jwmi
[these follow the same pattern as the highlight and click to apply formatting codes in the n,n1, and n2 ae menus]
grab exec commands --leafpad -- e4ml
grab exec commands --geany -- e4m
end

menu "Select Custom Keyboard Configuration
keycentric configs:" "
keyboard-1 (my1) -- my1
keyboard-2 (my2) -- my2
keyboard-3 (my3) -- my3
keyboard-4 (my4) -- my4

reverse keycentric configs:" "
reverse my1 (my1) -- my1r
reverse my2 (my2r) -- my2r
reverse my3 (my3r) -- my3r
reverse my4 (my4r) -- my4r
edit quickswitches (40 series and KB) -- edit4i



these could be made into two separate scripts for launcher (rather than menu/launcher-to-menu) activation:

menu "edit the 6 key configs:
edit keys: geany" "geany /nwp/root3/9menusblanks/keys0 /nwp/root3/9menusblanks/keys1 /nwp/root3/9/keys0 /nwp/root3/9/keys1 /nwp/root3/10/keys0 /nwp/root3/10/keys1
edit keys: geany -i" "geany -i /nwp/root3/9menusblanks/keys0 /nwp/root3/9menusblanks/keys1 /nwp/root3/9/keys0 /nwp/root3/9/keys1 /nwp/root3/10/keys0 /nwp/root3/10/keys1

[geany -i means a new instance (window)--it's easier to copy and paste between menu sets that way. another, somewhat related tip: if you drag file contents to a tab it will open--together with select to copy and middle click to paste, menu making is more like finger painting than coding (not that i really know how to do the latter). three sets of nine seemed like too many slots for individual leafpad entries (just use rl > root3 and open the files individual if that's what you want), and scrolling from the first to (a version of?) the thirtieth seemed like a stretch without the new window, but you could also open the lot in the same/current geany.]

Choose Alternate Key Configuration (my1-4 series only):"
(the 4 can swap 6)" "
KB1 -- kb1on
KB2 -- kb2on
KB3 -- kb3on
(these are the swap on keyboard configs mentioned earlier)
KB4 -- kb4on
KB5 -- kb5on
KB6 -- kb6on


menu "Swap Menu Sets
edit menu set 1 -- ems1
edit menu set 2 -- ems2
edit menu set 3 -- ems3
activate menu set 1 -- ams1
activate menu set 2 -- ams2
activate menu set 3 -- ams3
edit menu set 1i -- ems1i
edit menu set 2i -- ems2i
edit menu set 3i -- ems3i
(edit items from this menu is what i had in mind with the earlier comment regarding geany and the keyboard configs)

menu "edit configs and helpers
edit/open configuration files --jwm -- gea3i
edit my40 series config switches -- edit4i
edit quickswitches (30 series) -- edit3i
edit main jwm configs -- joopi
edit main jwm system configs -- jpe
edit panels incoming -- edpanc
edit panels current -- edpan
edit pinboards incoming -- edpinc
edit panels current -- edpin
edit panels incoming--new instance -- edpanic
edit panels current--new instance -- edpani
edit pinboards incoming--new instance -- edpinic
edit panels current--new instance -- edpini
edit word processing templates -- geak
edit rox shortcuts -- roks
edit autotext shortcuts -- ate
edit this menu--geany" "geany jwmim
fixmenus; jwm -restart -- fixu
swap to tray syntax for older jwm setups -- jio
swap to tray syntax for newer jwm setups -- jin
edit this menu--leafpad" "leafpad /nwp/jwmim
edit my40 series config switches -- edit4i
edit my30 series config switches -- edit3i
end


menu "tray toggles

move over the stock tray a pixel (better mouse menu access) -- xover1
undo the pixel move -- undoxover1
toggle off stock tray -- puptrayoff
toggle on stock tray -- puptrayon
SEND" "fixmenus; jwm -restart ---this one exists as "fixu"


menu "deactivate vertical trays (odd #s are set to left by default)
deactivate vertical tray12 -- dvtray12
deactivate vertical tray11 -- dvtray11
deactivate vertical tray10 -- dvtray10
deactivate vertical tray9 -- dvtray9
deactivate vertical tray8 -- dvtray8
deactivate vertical tray7 -- dvtray7
deactivate vertical tray6 -- dvtray6
deactivate vertical tray5 -- dvtray5
deactivate vertical tray4 -- dvtray4
deactivate vertical tray3 -- dvtray3
deactivate vertical tray2 -- dvtray2
deactivate vertical tray1 -- dvtray1
end

menu "deactivate top and bottom trays
deactivate top tray6 -- dtop6
deactivate top tray5 -- dtop5
deactivate top tray4 -- dtop4
deactivate top tray3 -- dtop3
deactivate top tray2 -- dtop2
deactivate top tray1 -- dtop1
deactivate bottom tray6 -- dbot6
deactivate bottom tray5 -- dbot5
deactivate bottom tray4 -- dbot4
deactivate bottom tray3 -- dbot3
deactivate bottom tray2 -- dbot2
deactivate bottom tray1 -- dbot1


menu "activate top and bottom trays
activate top tray6 -- atop6
activate top tray5 -- atop5
activate top tray4 -- atop4
activate top tray3 -- atop3
activate top tray2 -- atop2
activate top tray1 -- atop1
activate bottom tray6 -- abot6
activate bottom tray5 -- abot5
activate bottom tray4 -- abot4
activate bottom tray3 -- abot3
activate bottom tray2 -- abot2
activate bottom tray1 -- abot1
end

menu "activate vertical trays (odd #s are set to left by default)
activate vertical tray12 -- avtray12
activate vertical tray11 -- avtray11
activate vertical tray10 -- avtray10
activate vertical tray9 -- avtray9
activate vertical tray8 -- avtray8
activate vertical tray7 -- avtray7
activate vertical tray6 -- avtray6
activate vertical tray5 -- avtray5
activate vertical tray4 -- avtray4
activate vertical tray3 -- avtray3
activate vertical tray2 -- avtray2
activate vertical tray1 -- avtray1
end
end



Install/configure/store/port (entries with > need two commands):
edit the jwm version of this menu -- [gl (or ll)] > jwmim
edit the ae version of this menu -- [gl (or ll)] > aeim
edit 30 series -- edit3i
edit 40 series -- edit4i
back up current/original configuration files -- bk
restore original/previous configuration files -- rbk
port configuration files from /nwp/c -- port
store configuration files in /nwp/c -- store
edit recs, port, store -- editport
end

[my30-49, my30r-my49r were here]

edit quickswitches (30 series and KB) -- edit3i
fixmenus; jwm -restart -- fixu
edit quickswitches (40 series and KB) -- edit4i

menu "shutdown2
menu "window button issue
no buttons (possible bugfix) -- nobut
standard -- standbut
line buttons -- linebut
square buttons -- sqbut

winswitcher -- ww
recents -- sdr
rox recents -- rr



_____________

wiz -- run the wizard wizard
pcp -- (same as wiz but with pupcontrol commented out. ll > pcp > switch position of pound sign if you've installed pup control (panel? popup? not sure where i got that last p from. name change with version 2.8?) and want a separate launcher cut for it)

lpx -- ae menu that uses (mostly) leafpad as a notetaker
t2x -- print out text2xpm code template
t2x2 -- same as above plus template for a .desktop file (presumably to match up a program with the icon you just made)
jin -- trayfix-new
jio -- trayfix-old
aekill (or killae)--solve an issue reported by musher0 (who introduced me to aemenu and how to use its syntax--thanks, musher). apparently too many launched in succession can cause it to hang or not close menus it otherwise should have--this will allow it to continue as normal (once i remember seeing lxtask showing some hanging menus, but the few didn't affect much. this was on a random check of what was going on with the system (i get a kick out of htop and lxtask). another time it did, or i think it did--there were quite a few and i think i noticed some sluggishness and checked for an actual reason. or at least that's the reason there's now an aekill/killae.
it's worded as if for a fresh install--these spins are centered around the thing, but if you want to take these functions with you, that part of it is being developed here.
edit: (updated the list a little) and here's 1.9.1: http://www.murga-linux.com/puppy/viewto ... 421#906421

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

update to 1.9.2

#60 Post by Puppus Dogfellow »

from http://www.murga-linux.com/puppy/viewto ... 677#906677


Puppus Dogfellow wrote:the backup, store, and port libreoffice and geany configs part of the install process have been taken off the 2step2 script and made clickable choices of their own. some files called by the editing scripts had typos or were from a different era noop.

new additions to the launcher code list:
[...]
cadi -- close all instances of active window's program
ccdi -- close just program's windows on current desktop
caw -- MochiMoppel's CloseAllWindows script (like cadi and ccdi but with more options and a popup)
_____

new for 1.9.2:

backup Geany configs -- backg
store Geany configs -- storeg
port Geany configs -- portg
restore original/previous Geanyconfigs -- restg


geanytweak -- backg
-- portg

store LibreOffice configs -- storel
restore original/previous LibreOffice configs -- restl
backup LibreOffice configs -- backl
port LibreOffice configs -- portl

portil -- backl
-- portl

equivalent of back/portg and back/portl now removed from installation (2)step2 and each made into scripts/buttons (wrong picture covering them but that's essentially what they are--i may just copy the syntax from the wizard wizard and make this stuff a panel at some point--could use tx2 (text2xpm code printout) to make label-buttons and skip the text field part...). "portil" backs up the current lo configs if any and ports in your custom choice. "geanytweak" backs up the original geany configurations (keyboard, toolbar, main) and ports in a set ready made with the vtg tweak in place, a history set at roughly 50 configuration files (including all those from the three folders (9,10, 9menusblanks) in root3 that feed JWM the info for the menus, trays, and keys), the necessary keycuts for the custom geany menus (set for alt9, alt0, alt2 (also middle click) at the moment) to work, and enables spell check. jag and jagvk should be on the new recent documents list, which should help you in your menu making endeavors. swap the non vk version (it shows you the code the other has in the scripts--follow its pattern to add more keys and set them after the menu is made by keys>edit>[clicking your menu]) out (relabel, expand, copy) for use with other programs or to add additional menus. look at root4menu, root5menu, root2menu, root9menu, root0menu for that "<Includes>" line--change to match other menus you'd like to add by pointing to the new files (no reason for that menu to repeat five times, the space efficiency of pipe menus notwithstanding. control+shift o (or right click>open selected file) take the inconvenience out of files reading from other files--it's a cool feature another reason i recommend editing the JWM stuff in geany over leafpad).

fixes to joop, joopi, jp, and jpe
(typo on "jwmrc-tray," defunct files removed; joop and joopi open all the keys, menus, and trays in the main three in root3; joopi does it in a new instance of geany. jp opens just jwmrc-personal and /etc/.../_root_.jwmrc. jpe opens the tray in addition to these two. you could just open joop in geany (gl launcher) and access the files individually with the right click as described above). dopey name for joop/i is mnemonic for root plus jwm--both will open over forty files at once. vtg5 gave another five files to add to the recents list…


_____

[should have 192 up by tomorrow morning or earlier]

edit: four and five contain the installation, configuration switches, menumaking, and port-store-restore submenus--i never put the custom program menus on those (but you're free to if you like--just add an includes line wherever you want it to go, sandwich it between <Menu></Menu> tags to compress a submenu to a line on the main if your menus get too long (copy the other menu templates to see how to label it--well, the second one's fine as is. for the top of the sandwich just add a label="" tag:


<Menu label="your title here">
[menu entries or an <Includes></Includes> line]
</Menu>

))
.

***

for 192, you can skip the second step of the install sequence (the one labeled "2," not the actual second step, which is labeled 00--install the deps and move the nwp folder to /, then proceed to 1step1, which will back up your jwm configs and move some useful files to /root/my-applications/bin--the nwp launcher calls on these for some functions and to reset itself should you get finger-tied or typo it past convenience) and transfer over the configuration files for the vtg and custom menus/menu templates. the recs from 1.9 are gone and replaced by just geany 125 and the plugin pack for it (both made by Corvus). i added two 1.27 plugins (overview and multiterm) that are working well for me in Xenialpup--haven't tried them in anything else yet (and so they're commented out). you could skip the recs and still have the vtg, but the extend select and some of the other functions shown on the menus won't work without the plugins.

nwp-1.9.2.tar.xz

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

a variety of updates

#61 Post by Puppus Dogfellow »

Puppus Dogfellow wrote:
Puppus Dogfellow wrote:from installation of p5(jaewm)/u6(jaewm)/x7/nwp32/nwp-64
jaewms are updates to ~572.14 (making it p5--next version is 5p) and p6 (making it 6p--next version will be 6u (lamely sticking to p5/6 simply because of the following wallpaper):

Image


eventually x7 will become 7x as a spin of xenialpup, but both the sfs and pet should work okay in all 5-8 series pups using jwm and rox except the newest slackos, which have been updated twice since 6.3.0 and possibly prove this assertion wrong. anyway, the pet doesn't affect jwm unless you activate it, which can be done in a number of ways, the easiest being entering /nwp/my1 (keycentric base config) or /nwp/my30 (regular default) into a terminal. you can see the jaewm documentation in /nwp/c/installation-retro for more on how they differ. the same folder also has clickable installation options--you can preconfigure which trays show rather than use mae (entered in the shift plus spacebar launcher) or the root4 menu (alt plus 4 and 5, scroll up and down) to do it after the initial set of jwm config changes are in place. being updates, the jaewms don't install the dependencies (aemenu, xdotool, wmctrl)--the spins have it already, plus they've got the pets for transfer to either 64 or 32 bit in nwp/c. if you don't want to see the pet installed already error message, you can use that version to update an existing nwp installation. nwp32/64 contain just the dependencies and the nwp itself. installation is the same as with x7--either go to /nwp/c and pick and choose or enter /nwp/my19-my4) or /nwp/my30(-my49) into a terminal and wait for fixmenus and jwm -restart to run after the backup and swap are made.


Image

p5-jaewm.pet
p5-jaewm.sfs
u6-jaewm.pet
u6-jaewm.sfs
x7.sfs
x7.pet
nwp-64.pet
nwp32.pet
nwp-64.sfs
nwp32.sfs

x7:


aemenu-1.2.12.pet
antiword_0.37-8.pet
brother_mfc685cw-1.0.pet
CamPhoneTab_Hotplug-1.0.pet
catdoc-0.94.2-i486.pet
copy-fast-2.4.pet
Desktop-Global-Theme-Profile-1.7.2.pet
desktopiconarrangement-1.8.2.pet
desktoplaunchericonmaker-1.0.pet
dillo-3.0.5-i486-wary5.pet
duplipets-1.2.pet
easylauncher-2.0.pet
easypackage-0.1.pet
ExifTool-8.66.pet
findnrun-1.9.1.pet
fixup_util-linux-0.1.pet
flashplayer11-11.2.202.626.pet
geany-plugins-1.25-i686.pet
getflash-1.5-6.pet
get_java-1.0.pet
get_libreoffice-0.40.pet
gnewpet-6.5.pet
GTK_Theme_Maker-2.1.pet
img2pdf_tahrpup-1.1.pet
isomaster-1.3.7-i486.pet
javaif-20151214.pet
jwmthememaker-2.2.pet
libQt3Support.so.4.pet
libxapian22_1.2.8-1.pet
megatools-1.9.97.pet
multirename-1.7.pet
mupdf-1.4.pet
mydbox-1.2_noarch.pet
packit-1.14.pet
pArchive-2.1.pet
partview-2016.pet
pcmanfm-1.2.3.pet
peasyglue-1.9.pet
peasypdf-3.6.pet
peasyscale-1.9.pet
peasyscan-2.9.pet
peasyscan_pdf_plugin-1.3.pet
peekapet-1.3.pet
Pet_Maker-2.3.pet
pets2sfsgui-1.4.pet
pGtk-theme-refresh-1.1.pet
pic2txt-1.3.pet
picframemaker-2.0.pet
PupClockset-2.4.2.pet
PupControl-2.8.pet
PuppyTerrier-02c_BIL.pet
qt4-4.3.2.pet
quickpet_precise-2.pet
recoll-1.13.02.pet
Right-click-6.9.8.pet
roxterm_1.22.2-1.pet
sakura-2.3.8.pet
sfs2pet-20121001.pet
sfs-compatibility-01.pet
sfsinstaller-1.3.pet
sfs_version_converter-1.4-1.pet
SimplePythonHTTPServer-1.0.pet
simpson-1.3.pet
slocate-3.1-i486-4.pet
spacefm_0.9.4-0_20141009_DOC.pet
spacefm_0.9.4-0_20141009.pet
storymaker-1.4.pet
tesseract-3.00-i486.pet
tesseract_eng-3.00.pet
treesize-0.54.1.pet
uextract-3.23.pet
UnPet-0.6.pet
unrtf_0.19.3-1.1.pet
util-linux-2.21.2-i686_xen701.pet
verysmallfileeditor-1.0.pet
wmctrl-1.07-6_i386.pet
woofy-0.91.pet
xapian-core-1.0.18.pet
xdotool-2.20110530.1-3.pet
Xournal_Puppy-0.4.8.pet
youtubedl-gui-0.1.pet


u6:

CamPhoneTab_Hotplug-1.0.pet
Desktop-Global-Theme-Profile-1.7.2.pet
desktopiconarrangement-1.8.2.pet
desktoplaunchericonmaker-1.0.pet
dillo-3.0.5-precise.pet
duplipets-1.2.pet
easylauncher-2.0.pet
easypackage-0.1.pet
flashplayer11-11.2.202.626.pet
focuswriter-1.5.5-i686.pet
geany-1.25-i686.pet
geany_DOC-1.25-i686.pet
gnewpet-6.5.pet
GTK_Theme_Maker-2.1.pet
img2pdf_tahrpup-1.1.pet
isomaster-1.3.7-i486.pet
jwmthememaker-2.2.pet
multirename-1.7.pet
mupdf-1.4.pet
openssl-1.0.2g-w5-i486.pet
packit-1.14.pet
pArchive-2.1.pet
partview-2016.pet
pcmanfm-1.2.3.pet
peasyglue-1.9.pet
peasypdf-3.6.pet
peasyscale-1.9.pet
peasyscan-2.9.pet
peasyscan_pdf_plugin-1.3.pet
peekapet-1.3.pet
Pet_Maker-2.3.pet
pets2sfsgui-1.4.pet
pGtk-theme-refresh-1.1.pet
pic2txt-1.3.pet
picframemaker-2.0.pet
PupClockset-2.4.2.pet
PupControl-2.8.pet
python-2.7.pet
quickpet_precise-2.pet
roxterm_1.22.2-1.pet
sakura-2.3.8.pet
sfs-compatibility-01.pet
sfsinstaller-1.3.pet
sfs_version_converter-1.4-1.pet
simpson-1.3.pet
storymaker-1.4.pet
tesseract-3.00-i486.pet
tesseract_eng-3.00.pet
tree-1.6.0-i486-1.txz
treesize-0.54.1.pet
uextract-3.23.pet
UnPet-0.6.pet
urxvt-9.21_man.pet
urxvt-9.21_PrecisePup-5.4.3.pet
UrxvtControl-1.1.pet
Xournal_Puppy-0.4.8.pet
yad_0.33.1-slk56.pet
youtubedl-gui-0.1.pet


p5:

CamPhoneTab_Hotplug-1.0.pet
Desktop-Global-Theme-Profile-1.7.2.pet
desktopiconarrangement-1.8.2.pet
desktoplaunchericonmaker-1.0.pet
dillo-3.0.5-precise.pet
duplipets-1.2.pet
easylauncher-2.0.pet
easypackage-0.1.pet
flashplayer11-11.2.202.626.pet
focuswriter-1.5.5-i686.pet
geany-1.25-i686.pet
geany_DOC-1.25-i686.pet
gnewpet-6.5.pet
GTK_Theme_Maker-2.1.pet
img2pdf_tahrpup-1.1.pet
isomaster-1.3.7-i486.pet
jwmthememaker-2.2.pet
multirename-1.7.pet
mupdf-1.4.pet
openssl-1.0.2g-w5-i486.pet
packit-1.14.pet
pArchive-2.1.pet
partview-2016.pet
pcmanfm-1.2.3.pet
peasyglue-1.9.pet
peasypdf-3.6.pet
peasyscale-1.9.pet
peasyscan-2.9.pet
peasyscan_pdf_plugin-1.3.pet
peekapet-1.3.pet
Pet_Maker-2.3.pet
pets2sfsgui-1.4.pet
pGtk-theme-refresh-1.1.pet
pic2txt-1.3.pet
picframemaker-2.0.pet
PupClockset-2.4.2.pet
PupControl-2.8.pet
python-2.7.pet
quickpet_precise-2.pet
roxterm_1.22.2-1.pet
sakura-2.3.8.pet
sfs-compatibility-01.pet
sfsinstaller-1.3.pet
sfs_version_converter-1.4-1.pet
simpson-1.3.pet
storymaker-1.4.pet
tesseract-3.00-i486.pet
tesseract_eng-3.00.pet
tree-1.6.0-i486-1.txz
treesize-0.54.1.pet
uextract-3.23.pet
UnPet-0.6.pet
urxvt-9.21_man.pet
urxvt-9.21_PrecisePup-5.4.3.pet
UrxvtControl-1.1.pet
Xournal_Puppy-0.4.8.pet
yad_0.33.1-slk56.pet
youtubedl-gui-0.1.pet

common but unlisted:

treesize, megasync, dropbox,

_________

to enable the custom geany menu (ae menu gg in the launcher, root 2 menu) on your system, enter /nwp/c/geanytweak into a terminal or go to /nwp/c/ and click the geanytweak script.


i recommend the pets in general, the SFSes for testing.


p.dogfellow, 6/30/16


______

more dopiness:


Image

Image
_____________

known bugs: xenial won't let go of the blue active window title bars and xcalc crashes it (so don't use it unless you want to shut down). there's supposedly a fix (see xenial folder in puppy isos) for the broken mounted drive icons, but i haven't tried it yet--so already a pet or two i've left out and the upgrade path for x7 presents itself. the rox tweaks (letter shortcuts, etc) and jwm/gtk theme upgrades (to "official pux specs"...) don't have a nwp shortcut as yet--go to nwp/c to click the activation scripts (in the process of being phased out).


/nwp/mae in a terminal will also get you the installation menu after the pet or sfs is installed.



---------------
documentation updates:

Jaewm!-.1.ncd
launcher shortcuts
nwp keyboard shortcuts (jwm)

approximatic for most 32 bit pups:

x7 sfs
x7 pet
upgrade p6 to 6p:
u6 sfs
u6 pet
upgrade ~572.14 to p5:
p5 sfs
p5 pet
(sfs was mostly used to make the pet--it won't overwrite/update on an existing install in either the precise or the unicorn spin (or most any other existing installation of the jaewmie).

no helper pets, just the nwp folder, aemenu, xdotool, the pexec based launcehrs, and wmctrl:

nwp64 pet
nwp 64 sfs
nwp32 pet
nwp32 sfs
update fixes some documentation and (this time-- accidentally left it out of the earlier one/the one four in the vtg thread...) has the geany and geany plug-in update for ~...14.

Corvus' geany 125 pet and plugins separate from the p5 and x7 packages.

pets will update existing setups, the sfs won't unless you remove or rename your old nwp (you may want to rename it before the pet installation since merging of the contents may overwrite any customizing you've done).
from http://www.murga-linux.com/puppy/viewto ... 183#910183, which also has onsite documentation for the included keyboard shortcuts.

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

update for the 64bit version of the nwp and geany plugins

#62 Post by Puppus Dogfellow »

Puppus Dogfellow wrote:update for the 64bit version of the nwp.pet posted earlier plus the necessary dependencies for the geanytweak script (in /nwp/c):

from here and here:
[...]
though now that i'm working on porting the customizations that define these spins to 64bit, there may be more forthcoming. for now, scroll back towards page one for some of the more minimal setups--pets and sfs versions of the approximatic (p5, u6, x7) require activation through the terminal (/nwp/my1 or /nwp/my30) on new installs, though rox /nwp/c will take you to the installation folder, which opens up some preconfiguration options (none of which will take the menu, tray, or key swapping features--you'll need to swap in from the my series for those). i will soon post an updated version of the 64 bit nwp--been playing around with it a bit in tahr64 (finally got it to boot on a worthy (6gb ram) machine).
[...]

Post subject: towards a 64bit version of the spins
Subject description: progress so far (and why i always try to include recoll) since few start with linux, it makes sense to me to allow users to easily search through their non linux created files--unfortunately nothing seems to be in the class of recoll, which isn't always convenient to install (these spins and the approximatic include a fairly old version of it (1.13), which works well enough that i'd be happy to be able to get it consistently working in 64bit, even if i needed to use a compatibility sfs to do so). had a go at getting the era-correct 1.17 to work in tahr64, but only succeeded one in three times. trick may have been to start with the bug fix, then first ppm-install recoll and its dependencies. other orders failed, but i'm not sure if that was necessarily due to sequencing.

anyway, the updated nwp.64 pet below works better than the one i posted earlier, at least in tahr64, but if you already installed the earlier one and want to try out what makes them different, apart from compression used by the somewhat disimilar utilities i used to make them, just install the following xdotoolpet:

xdotool_3.20130111.1-3.1.pet

here's the newer 64bit nwp:
nwp-64.pet

and here are the geany plugins you'll need for the geanytweak script to work (and consequently the custom menus in set1 and/or the installation defaults) in 64bit:

geanytahr64.tar.xz

if you've installed the newer 64bit nwp and want to give the older one a go, just try out this xdotool package (which to work well in slacko64, iirc):

xdotool-2.2-x86_64.pet

speaking of slacko64 and what i said earlier about the jwm management--doesn't appear to be related to jwm desk or sticky jwm or any of that, but until i test the newest version, if you install the pet, manually play with jwm at your own risk (and be aware you may be playing around with the configuration quick switches at an even greater potential risk under that distro).

apart from the difficulties with recoll and the somewhat expected by now loss of some nwp funtions under 64, the tahr64 proto spin/insta-spin seems to have worked well. next reboot i'll test it under xenial64 and see if anything needs to be adjusted.

here's some of the rest (really all as of now but i expect it to grow/change) of the 64 bit spin/upgrade path:
[...]
files extracted from the post:
xdotool_3.20130111.1-3.1.pet
here's the newer 64bit nwp:
nwp-64.pet
geanytahr64.tar.xz
xdotool-2.2-x86_64.pet
from
Re: minor update for nwp.64 plus the 64bit versions of the geany
plugins (required by the ae and jwm custom menu tweaks)
.

____

will update the first page (it's probably quite a few updates behind by now) after i test the 64 bit version some more and in more things. apart from possible difficulty (discussed above) in slacko, both 32 and 64bit versions should work in just about any pup or quirky (though without jwm, you'd obviously lose/have no neet to configure the jwm menus and/or their functions.)

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

nwp update including a patch of sorts

#63 Post by Puppus Dogfellow »

nwp-64.2.pet

nwp-32.2.pet

nwp-mae2.pet

they overwrite previous changes--use the nwp or config2pet scripts in the mae menu to back up your personal settings to .pet. rox icon templates now allow you to make lpx, the pet configs and other items at a click, plus install menus (aef, mae, the main word processing nwp menu) in folders with the right click menu. my menus2 file has many keyboard shortcuts for these functions, but actual remastering seems to be the only way of reliably transferring them...
(can't get unicorn to take it even with an x restart, but it was set with many of the shortcuts, so can still use most of the file and the templates that transfer over).

here's the new menu (most of the submenus off the right click menus can be given keycuts):

(the wp is a folder of word processing (html format for conversion to pdf or copy paste from a browser to a fuller word processor or other...) templates--just rename and you have batch-templates (you could customize the contents from within the New folder--customize is another right click option) you could call as a group, including or constisting of only file structures and hierarchies, etc.)

______
http://www.murga-linux.com/puppy/viewto ... 106#917106
^ most of the recent changes are covered from that post down to the repeat of the pet links. additional screen shots and info forthcoming, but mostly it's just that the jwm menus now have the same bookmarks as the improved nwp and mae aemenus, the port your config functions and make-a-notepad functions are right clickable in rox, and thunor, spacefm, and pcman get aemenus for pups that use those instead of/in addition to rox (baekt, baeks, baekp--updated launcher code post coming soon.

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

composite screeny, which may be deleted due to hugeness...

#64 Post by Puppus Dogfellow »

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.

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

update fixes some menus (aemenu and jwm had n2 and n3

#65 Post by Puppus Dogfellow »

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:
Attachments
nwp-rox-rtclk-new.jpg
(40.88 KiB) Downloaded 531 times

Post Reply