Make Concurrent Copies (and optionally label the versions)

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

it might be helpful to have

#21 Post by Puppus Dogfellow »

to have an even better look of the defaults above, dump into a terminal or save as a script, set the permissions and click:

Code: Select all

#!/bin/sh
#swap the swap below and remove the # to make new locations for the tests, drag them a level up to have them on the icon path for most puppies (just the name on  a desktop file saves some time--right click association with a file is easy an easy way to test out menu-worthy items
#mkdir -p /root/puppy-reference/mini-icons/swap/
mkdir -p /root/puppy-reference/mini-icons/defaults/
0artxpm "0artxpm" >/root/puppy-reference/mini-icons/defaults/0art.xpm
0atxpm "0atxpm" >/root/puppy-reference/mini-icons/defaults/0at.xpm
0rwtxpm "0rwtxpm" >/root/puppy-reference/mini-icons/defaults/0rwt.xpm
0txpm "0txpm" >/root/puppy-reference/mini-icons/defaults/0t.xpm
1txpm "1txpm" >/root/puppy-reference/mini-icons/defaults/1t.xpm
2txpm "2txpm" >/root/puppy-reference/mini-icons/defaults/2t.xpm
3txpm "3txpm" >/root/puppy-reference/mini-icons/defaults/3t.xpm
4txpm "4txpm" >/root/puppy-reference/mini-icons/defaults/4t.xpm
5txpm "5txpm" >/root/puppy-reference/mini-icons/defaults/5t.xpm
6txpm "6txpm" >/root/puppy-reference/mini-icons/defaults/6t.xpm
7txpm "7txpm" >/root/puppy-reference/mini-icons/defaults/7t.xpm
8txpm "8txpm" >/root/puppy-reference/mini-icons/defaults/8t.xpm
9txpm "9txpm" >/root/puppy-reference/mini-icons/defaults/9t.xpm
bltxpm "bltxpm" >/root/puppy-reference/mini-icons/defaults/blt.xpm
botxpm "botxpm" >/root/puppy-reference/mini-icons/defaults/bot.xpm
btxpm "btxpm" >/root/puppy-reference/mini-icons/defaults/bt.xpm
bwtxpm "bwtxpm" >/root/puppy-reference/mini-icons/defaults/bwt.xpm
deftxpm "deftxpm" >/root/puppy-reference/mini-icons/defaults/deft.xpm
defxpm "defxpm" >/root/puppy-reference/mini-icons/defaults/def.xpm
gbtxpm "gbtxpm" >/root/puppy-reference/mini-icons/defaults/gbt.xpm
gwtxpm "gwtxpm" >/root/puppy-reference/mini-icons/defaults/gwt.xpm
kwtxpm "kwtxpm" >/root/puppy-reference/mini-icons/defaults/kwt.xpm
lbtxpm "lbtxpm" >/root/puppy-reference/mini-icons/defaults/lbt.xpm
lotxpm "lotxpm" >/root/puppy-reference/mini-icons/defaults/lot.xpm
obtxpm "obtxpm" >/root/puppy-reference/mini-icons/defaults/obt.xpm
oltxpm "oltxpm" >/root/puppy-reference/mini-icons/defaults/olt.xpm
prtext2xpm "prtext2xpm" >/root/puppy-reference/mini-icons/defaults/prtext2.xpm
prtxpm "prtxpm" >/root/puppy-reference/mini-icons/defaults/prt.xpm
ptxpm "ptxpm" >/root/puppy-reference/mini-icons/defaults/pt.xpm
rdbltxpm "rdbltxpm" >/root/puppy-reference/mini-icons/defaults/rdblt.xpm
rdltxpm "rdltxpm" >/root/puppy-reference/mini-icons/defaults/rdlt.xpm
rldtxpm "rldtxpm" >/root/puppy-reference/mini-icons/defaults/rldt.xpm
rrdbltxpm "rrdbltxpm" >/root/puppy-reference/mini-icons/defaults/rrdblt.xpm
text2xpm "text2xpm" >/root/puppy-reference/mini-icons/defaults/text2.xpm
wbtxpm "wbtxpm" >/root/puppy-reference/mini-icons/defaults/wbt.xpm
wgtxpm "wgtxpm" >/root/puppy-reference/mini-icons/defaults/wgt.xpm
wktxpm "wktxpm" >/root/puppy-reference/mini-icons/defaults/wkt.xpm
wtxpm "wtxpm" >/root/puppy-reference/mini-icons/defaults/wt.xpm
wtxt2xpm "wtxt2xpm" >/root/puppy-reference/mini-icons/defaults/wtxt2.xpm

all the scripts (each line is a call to an individual script--thanks again technosaurus) are located in /root/my-applications/bin/. edit lines 75-76 or so to change the colors--you'll see the six digit hex codes you can swap out.

____

make simple scripts like geany file 1 2 3 or rox folder one two three or xdotool type '"blah
blah
blah"
for me---'
(requires xdotool)--i think autotext plus the panels is a well suited use for this...)

enjoy.

--pd

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

recycle the extra panel frames icons as pinboard swaps

#22 Post by Puppus Dogfellow »

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

Code: Select all

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

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


swap already done (but without the icon code):

Code: Select all

mkdir -p /root/Desktop/desktops/{scripts,icons/{pans,defaults,dirs,conf,cus}}
echo $'	#!/bin/sh
#(older comments from nwp utility) name mk6ps and place in /nwp or just run in terminal as:  cd /root/Choices/ROX-Filer; for f in PuppyPin{2..6} ; do cp PuppyPin $f ; done
cd /root/Choices/ROX-Filer
# nwp menu entry for aemenu: cmd "make  6 puppy pins for pp# series" "/nwp/mk6p"
# nwp menu entry  for jwm: <Program label="make  6 puppy pins">/nwp/mk6p</Program>
for f in PuppyPin{2..6} ; do cp PuppyPin $f ; done
' > root/Desktop/desktops/scripts/mk6p
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin1
' > root/Desktop/desktops/scripts/pp1
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin2
' > root/Desktop/desktops/scripts/pp2
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin3
' > root/Desktop/desktops/scripts/pp3
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin4
' > root/Desktop/desktops/scripts/pp4
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin5
' > root/Desktop/desktops/scripts/pp5
echo $'#!/bin/sh
rox --pinboard=/root/Choices/ROX-Filer/PuppyPin6
' > root/Desktop/desktops/scripts/pp6

chmod 755 root/Desktop/desktops/scripts/pp*
chmod 755 root/Desktop/desktops/scripts/mk6p
get your pinboard how you like it then run mk6p; you'll have six identical copies that can evolve individually, taking their specific scripts, icons, and keyboard shortcuts with them.

(it's also a handy way of fixing rox's occasional tendency of rearranging your icons at reboot. the copies will restore your settings as of last run (unfortunately, once run, mk6p will overwrite all individual pinboards with the current default, which is one of the reason it may not warrant its own icon)).

enjoy.

:D

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

putting your stuff on the jwm menu

#23 Post by Puppus Dogfellow »

Code: Select all

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

<!--  you could use any name for the icon then make the scripts to match after the fact-->
</JWM>
' > /root/.jwm/pansnpins
sed -i 's/<Menu label="Shutdown/<Include>\/root\/.jwm\/pansnpins<\/Include>\n<Menu label="Shutdown/' /etc/xdg/templates/_root_.jwmrc
jwm -reload
requires the above script and the earlier panel pet (either one will do) for the contents of /root/my-applications/bin. if you're not running the scripts from a PATH location, you'll have to put in the full path (as you'd have to for the versions we have running from /../Desktop/scripts/..(etc).

here's the script to run that on the jwm menu:

Code: Select all

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

<!--  you could use any name for the icon then make the scripts to match after the fact-->
</JWM>
' > /root/.jwm/pansnpins

sed -i 's/<Menu label="Shutdown/<Include>\/root\/.jwm\/pansnpins<\/Include>\n<Menu label="Shutdown/' /etc/xdg/templates/_root_.jwmrc
jwm -reload

move the position of the <Include>/root/.jwm/pansnpins</Include> line in /etc/xdg/templates/_root_.jwmrc if you want it elsewhere:

geany /etc/xdg/templates/_root_.jwmrc


p1-9 and, once mk6p is run, pp1-6 in the terminal will also make the swaps (again, only for the ../bin version. off the PATH you'd have to type/copy the whole path).

as to the naming convention, p is panel, pp is puppy pin (the backdrop with the icons, drives and wallpaper). i left the second p off mk6p since the panels don't need to be copied to have something to work with.

enjoy.

:D

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

templates/examples of configuration quickswitches

#24 Post by Puppus Dogfellow »

ease of configuration is one of the joys of puppy, but it's also a way to mess up your system. script below makes copies of your jwm configuration in folders that each contain an import script--when you get a configuration or variation you like, go to one of the folders and click that to repopulate the switch with the new files. set for six jwm and three micro, but you can swap out the paths, files, and icon (names) below before you run it to incorporate whatever you find yourself tinkering with most. quickswitch-jm:

Code: Select all


#!/bin/sh
#examples of configuration quickswitches (add flexibility to your setups and safety to your experiments)
mkdir -p /root/.config/micro/conf1
mkdir -p /root/.config/micro/conf2
mkdir -p /root/.config/micro/conf3
cp -f /root/.config/micro/settings.json /root/.config/micro/conf1/settings.json
cp -f /root/.config/micro/bindings.json /root/.config/micro/conf1/bindings.json
echo $'#!/bin/sh
cp -f /root/.config/micro/conf1/settings.json /root/.config/micro/settings.json 
cp -f /root/.config/micro/conf1/bindings.json /root/.config/micro/bindings.json
' > /root/.config/micro/mcon1
chmod 755 /root/.config/micro/mcon1
echo $'#!/bin/sh
cp -f /root/.config/micro/conf2/settings.json /root/.config/micro/settings.json 
cp -f /root/.config/micro/conf2/bindings.json /root/.config/micro/bindings.json
' > /root/.config/micro/mcon2
chmod 755 /root/.config/micro/mcon2
echo $'#!/bin/sh
cp -f /root/.config/micro/conf3/settings.json /root/.config/micro/settings.json 
cp -f /root/.config/micro/conf3/bindings.json /root/.config/micro/bindings.json
' > /root/.config/micro/mcon3
chmod 755 /root/.config/micro/mcon3
#unlike the version in microplugins.pet, this set up isn't on PATH. work from the configuration directories themselves 
#and/or substitute /root/.config/micro/ for /root/my-applications/bin/ in the mcon scripts above. the ones below assume you're in the directory and have fiddled around with the configs to sufficient satisfaction that you'd want to be able to switch or revert to what you'd done to them. use this template to set other configs to come to you for easy modding
echo $'#!/bin/sh
cp -f /root/.config/micro/settings.json ./
cp -f /root/.config/micro/bindings.json ./
' > /root/.config/micro/conf1/importcurrent
chmod 755 /root/.config/micro/conf1/importcurrent
echo $'#!/bin/sh
cp -f /root/.config/micro/settings.json ./
cp -f /root/.config/micro/bindings.json ./
' > /root/.config/micro/conf2/importcurrent
chmod 755 /root/.config/micro/conf2/importcurrent
echo $'#!/bin/sh
cp -f /root/.config/micro/settings.json ./
cp -f /root/.config/micro/bindings.json ./
' > /root/.config/micro/conf3/importcurrent
chmod 755 /root/.config/micro/conf3/importcurrent
#this section is three backups/switches for your micro editor configs
#using the mcc icon/label maker for the desktop files and menu entries (thanks again technosaurus for txt2xpm)
echo $'[Desktop Entry]
Encoding=UTF-8
Name=mcon1
Icon=/root/puppy-reference/pixmaps/6tMiCon.xpm
Comment=micro editor mconfiguration switcher
Exec=/root/.mconfig/micro/mcon1
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=mconfig swapper
' > /usr/share/applications/mcon1.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=mcon2
Icon=/root/puppy-reference/pixmaps/7tMiCon.xpm
Comment=micro editor mconfiguration switcher
Exec=/root/.mconfig/micro/mcon2
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=mconfig swapper
' > /usr/share/applications/mcon2.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=mcon3
Icon=/root/puppy-reference/pixmaps/8tMiCon.xpm
Comment=micro editor mconfiguration switcher
Exec=/root/.mconfig/micro/mcon3
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=mconfig swapper
' > /usr/share/applications/mcon3.desktop
#=====================================================

#!/bin/sh
mkdir -p /root/.jwm/cona/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/cona/importcurrent
chmod 755 /root/.jwm/cona/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/cona/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/cona/_root_.jwmrc
echo $'#!/bin/sh
#jwmca
#!/bin/sh
cp -f /root/.jwm/cona/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/cona/jwmrc-personal /root/.jwm/jwmrc-personal 
fixmenus
jwm -restart
' > /root/.jwm/jwmca
chmod 755 /root/.jwm/jwmca
#=============================
#!/bin/sh
mkdir -p /root/.jwm/conb/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/conb/importcurrent
chmod 755 /root/.jwm/conb/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/conb/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/conb/_root_.jwmrc
echo $'#!/bin/sh
#jwmcb
#!/bin/sh
cp -f /root/.jwm/conb/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/conb/jwmrc-personal /root/.jwm/jwmrc-personal 
fixmenus
jwm -restart
' > /root/.jwm/jwmcb
chmod 755 /root/.jwm/jwmcb
#=============================
#!/bin/sh
mkdir -p /root/.jwm/conc/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/conc/importcurrent
chmod 755 /root/.jwm/conc/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/conc/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/conc/_root_.jwmrc
echo $'#!/bin/sh
#jwmcc
#!/bin/sh
cp -f /root/.jwm/conc/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/conc/jwmrc-personal /root/.jwm/jwmrc-personal 
fixmenus
jwm -restart
' > /root/.jwm/jwmcc
chmod 755 /root/.jwm/jwmcc
#=============================
#!/bin/sh
mkdir -p /root/.jwm/cond/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/cond/importcurrent
chmod 755 /root/.jwm/cond/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/cond/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/cond/_root_.jwmrc
echo $'#!/bin/sh
#jwmcd
#!/bin/sh
cp -f /root/.jwm/cond/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/cond/jwmrc-personal /root/.jwm/jwmrc-personal 
fixmenus
jwm -restart
' > /root/.jwm/jwmcd
chmod 755 /root/.jwm/jwmcd
#=============================
#!/bin/sh
mkdir -p /root/.jwm/cone/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/cone/importcurrent
chmod 755 /root/.jwm/cone/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/cone/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/cone/_root_.jwmrc
echo $'#!/bin/sh
#jwmce
#!/bin/sh
cp -f /root/.jwm/cone/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/cone/jwmrc-personal /root/.jwm/jwmrc-personal 
fixmenus
jwm -restart
' > /root/.jwm/jwmce
chmod 755 /root/.jwm/jwmce
#=============================
#!/bin/sh
mkdir -p /root/.jwm/conf/
echo $'#!/bin/sh
cp -f /root/.jwm/jwmrc-personal ./
cp -f /etc/xdg/templates/_root_.jwmrc ./
' > /root/.jwm/conf/importcurrent
chmod 755 /root/.jwm/conf/importcurrent
cp -f /root/.jwm/jwmrc-personal /root/.jwm/conf/jwmrc-personal
cp -f /etc/xdg/templates/_root_.jwmrc /root/.jwm/conf/_root_.jwmrc
echo $'#!/bin/sh
#jwmcf
#!/bin/sh
cp -f /root/.jwm/conf/_root_.jwmrc /etc/xdg/templates/_root_.jwmrc
cp -f /root/.jwm/conf/jwmrc-personal /root/.jwm/jwmrc-personal 
fixmenus
jwm -restart
' > /root/.jwm/jwmcf
chmod 755 /root/.jwm/jwmcf
#=========================================
0txpm "JWM-A" >/root/puppy-reference/pixmaps/0tjwmc.xpm
1txpm "JWM-B" >/root/puppy-reference/pixmaps/1tjwmc.xpm
2txpm "JWM-C" >/root/puppy-reference/pixmaps/2tjwmc.xpm
3txpm "JWM-D" >/root/puppy-reference/pixmaps/3tjwmc.xpm
4txpm "JWM-E" >/root/puppy-reference/pixmaps/4tjwmc.xpm
5txpm "JWM-F" >/root/puppy-reference/pixmaps/5tjwmc.xpm
6txpm "MiCon1" >/root/puppy-reference/pixmaps/6tMiCon.xpm
7txpm "MiCon2" >/root/puppy-reference/pixmaps/7tMiCon.xpm
8txpm "MiCon3" >/root/puppy-reference/pixmaps/8tMiCon.xpm

echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwma
Icon=/root/puppy-reference/pixmaps/0tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmca
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmca.desktop

echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwmb
Icon=/root/puppy-reference/pixmaps/1tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmcb
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmcb.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwmc
Icon=/root/puppy-reference/pixmaps/2tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmcc
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmcc.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwmd
Icon=/root/puppy-reference/pixmaps/3tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmcd
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmcd.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwme
Icon=/root/puppy-reference/pixmaps/4tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmce
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmce.desktop
echo $'[Desktop Entry]
Encoding=UTF-8
Name=jwmf
Icon=/root/puppy-reference/pixmaps/5tjwmc.xpm
Comment=your jwm settings pre-nwp
Exec=/root/.jwm/jwmcf
Terminal=false
Type=Application
Categories=X-Desktop;Utility
GenericName=config swapper
' > /usr/share/applications/jwmcf.desktop
fixmenus
jwm -restart
most programs seem to keep their configurations in /root/.config or in /opt, but pfind can help you find where a given program scatters its files (pfind>search system files). backups clobber the experimental live version of whatever you're working on, but the affected program usually would need to be restarted or reloaded for change to take effect. template i used for the desktop files puts the entries in desktop and utility--swap the line to mimic a location/entry of your choice by copying the Categories= line from the .desktop files in /usr/share/applications.

--chose one each to represent the default set of color combos, but it seems the reference screen shot and all others from that service are gone, so...i guess that's something else to do.

anyway, enjoy/hope someone finds it useful/helpful
-pd

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

aesthetic and practical tweaks for the word processor plugin

#25 Post by Puppus Dogfellow »

the browser based word processors/word processor plugins use whatever generic icon your browser provides for a new tab. to customize the tabs and names displayed you need to edit the file directly (through a text editor (recommended) or one of the text box tabs (ewp, box1, box2)). make desktop files that match the directory and files tabs to be opened.

xpm doesn't appear to be supported by the convert-to.ico site linked below.

from [...]
Subject description: aesthetic tweaks for the browser based word processors (bwp, bbwp, mcwp, ewp--there may be more...)

(http://murga-linux.com/puppy/viewtopic. ... 76#1049576)
from pupli repo/word processing and related/nwp+vtg/ico/ico-title-adjust:
browser based word processor and spinoffs use a generic tab icon unless you add a version of the following code to the head area in the html files (viewable in box1 tab or a text editor but not in default):

Code: Select all

<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico">     
 <link rel="shortcut icon" type="image/x-icon" href="file:///[cus]()/mc/bwp1/()[cus].ico">

adjust to suit your choices and paths/addresses.

from https://stackoverflow.com/questions/488 ... te#4888458

jpegs and pngs converted with:
https://www.convertico.com/

____
while in the head area, you can change the name of the tab by swapping out the text between the <title>tags</title>
(above example would give you a tab that's named "tags" regardless of the name you saved the file under.)


--p.dogfellow, 12/19

____

edit 2/20: the ico format apparently also works in .desktop files and with rox's right click file association function (tested in bionic64)

at the very least, the custom icons make it easier to identify your files when you have the tabs pinned.

enjoy

--p. dogfellow
the icons appear to be scalable--desktop versions get expanded to 48x48, tabs are (i think) 16x16, and you can seemingly use whatever jpg, svg, or png you like and the converted image remains pretty crisp and/or discernible (at least to my old eyes).

enjoy

-pd

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

usability tip/update for the word processor plugin(s)

#26 Post by Puppus Dogfellow »

from
a small restructuring and some added functions
Subject description: (it's now also a tiny browser based word processor (complete with keyboard tweaker)) (http://murga-linux.com/puppy/viewtopic. ... 915#965915):

[...]seems saving to pdf works in mozilla based browsers after all, and i need to take back some of my hedging on its usability as a word processor--it will save the changes you make in the editable tab if you save it as a pdf through the print dialog, but the same file downloaded through the same interface doesn't show your changes if you save it as an html file.

(both functions work as expected in chromium based browsers, and either can use bookmarking to return to previous work. drag and drop the file to an open browser; use the rox new templates to start a project wherever you like.)

--p. dogfellow, 8/22/17

edit: save as webpage complete as opposed to html only and the mozlilla based family works fine. saving as plain text also works through the ctrl+s function and file menu.

sorry for all the unnecessary drama--it works, it's a word processor.

(enjoy).
[...]

works in android and windows as well, but i now recommend webpage complete regardless of browser if you want to continue to edit the file and reliably save your changes. something seems to have changed in the last few months and the html only option no longer does anything useful in any browser (beyond download a copy of the template). adjust in page layout view to choose what headers and footers appear (date, path of the file, page numbers, etc).

tested in firefox, midori, palemoon, vivaldi, chrome, chromium, edge, explorer, and some of these same in android (after some fiddling with permissions through a file browser, iirc.)

enjoy

-pd

Post Reply