Re: and update of the install procedure (jwm only) and of the jwm ten (really 11) configuration quickswitch
http://www.murga-linux.com/puppy/viewto ... 825#877825
Puppus Dogfellow wrote: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: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.
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
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]".