Posted: Sun 22 Aug 2010, 22:20 Post_subject:
jwmconfig2-20101228 Sub_title: pannel-buttons works/gtk2jwm removed
The 'Application launch buttons in tray' of JWM configuration did not work for a long time.
The Japanese Forum member, himajin and shinobar, fixed the code.
Hopefully works on puppies 4.x/5.x.
# 2009-NOV-06 low and high position fixed by himajin, shinobar
# 23aug2010 shinobar: skip comments from edit
# 20101212 01micko: removed gtktheme section from main menu
# 23aug2010 shinobar: remove warnings at parsing new config
# 27dec2010 shinobar: remove warnings from virtualDesk, thanks to Gyle
# 28dec2010 shinobar: gtk2jwm fixed but still removed from the main menu
Note: it includes jwm themes at '/root/.jwm/themes'.
The font setting in '*-jwmrc' of the themes is modified.
at .jwmrc-tray while playing around with the move feature , that I hadn't recognized before. Must have gone between dpup-001 and puppy-431 .....
Just for the if [ "$choice" = Move ]; then
# 2009-NOV-06 low and high position fixed
total=`wc -l /root/.jwmrc-tray | sed -e 's/ *//' | sed -e 's/ .*//g'` ### get total number of lines
low=`grep -n '^[[:blank:]]*<TrayButton' /root/.jwmrc-tray | head -n 1| cut -d':' -f1` ### get line number of the first button(Menu)
#high=`grep -n '^[[:blank:]]*<TrayButton' /root/.jwmrc-tray | tail -n 1| cut -d':' -f1` ### get line number of the last button
high=`grep '<!-- Additional Pager attributes; width, height -->' -n /root/.jwmrc-tray | sed -e 's/\:.*>//g'` ### get line number with Additional Pager
high=`echo "(("$high" - 0))" | bc -l`
last=`echo "(("$total" - "$high" + 2))" | bc -l`
begin=`echo "(("$low" + 1))" | bc -l` ### first line with panel buttons
#end=`echo "(("$high" - 1))" | bc -l` ### last line with panel buttons
cat /root/.jwmrc-tray | head -n "$low" > /tmp/jwmrc-tray-head.txt
cat /root/.jwmrc-tray | tail -n "$last" > /tmp/jwmrc-tray-tail.txt
Xdialog --title "INPUT BOX" \
--inputbox "$PB2 is button $yy of your $zz buttons.\n\
If you would like that button in another\n\
position please enter the number below." 18 45 2> /tmp/inputbox.tmp.$$