site  contact  subhomenews

JWMDesk 3.5 coming soon

March 11, 2022 — BarryK

Roger (radky in the forum) is working on JWMDesk 3.5, with new features and compatibility with EasyOS 3.4.1+. Roger has designed JWMDesk to work in most pup derivatives, which is a formidable task, and I take my hat off to him for doing it.

He has provided me with a pre-release, and we are sorting out some issues.

One thing that I have changed today, is to adjust the tray width in the /root/.xinitrc script:

if [ "${UI_DESK_MANAGER}" == "jwm" ];then #20220208
#20220208 pup_event_frontend_d calls frontend_startup, which creates /root/.pup_event/drive_*
# so have to wait until frontend_startup exits before run the following.
if [ ! -f /tmp/pup_event_wait/frontend_startup_finished ];then
inotifywait -t 5 -q -q -e create,open /tmp/pup_event_wait
fi
if ! grep -q 'drives48' /root/.jwmrc-tray;then #20220212 fix test.
#populate /root/.jwmrc-tray...
/usr/local/ui/jwm/jwmrc-insert-menu
/usr/local/ui/jwm/jwmrc-insert-icons
/usr/local/ui/jwm/jwmrc-insert-extra
fi
if [ "$SCRN_X" != "$oldSCRNX" ];then
#may need to display app icons without labels...
/usr/local/ui/jwm/jwmrc-insert-icons
#20220311 adjust tray width to suit screen...
if [ $SCRN_X -le 1366 ];then
trayX=$SCRN_X
elif [ $SCRN_X -le 1600 ];then
trayX=1366
else
trayX=1440 #$(($SCRN_X*3/4)) #3/4 ex: 1920 becomes 1440
#...no need to go wider.
fi
PTNt='s%\(<Tray .*width="\)[0-9][0-9][0-9][0-9]"%\1'"${trayX}"'"%'
sed -i -e "$PTNt" /root/.jwmrc-tray
fi
#generate /root/.jwmrc-drives and .jwmrc-containers... (these files are included in .jwmrc)
/usr/local/ui/jwm/generate-drives-menu #> /root/.jwmrc-drives
/usr/local/ui/jwm/generate-containers-menu #> /root/.jwmrc-containers
else
if [ -s /root/.jwmrc-drives ];then
#empty...
echo -n '' > /root/.jwmrc-drives
echo -n '' > /root/.jwmrc-containers
#depopulate /root/.jwmrc-tray...
/usr/local/ui/jwm/jwmrc-remove-menu
/usr/local/ui/jwm/jwmrc-remove-icons
#20220311 keep this, as jwmdesk may have added more icons...
#/usr/local/ui/jwm/jwmrc-remove-extra
fi
if [ "$SCRN_X" != "$oldSCRNX" ];then #20220311
#the old behaviour was tray full width of screen...
#no, make it a fixed width....
PTNt='s%\(<Tray .*width="\)[0-9][0-9][0-9][0-9]"%\11024"%'
sed -i -e "$PTNt" /root/.jwmrc-tray
fi
fi

While typing this post, I remembered something. Testers reported that the icons in the tray become a bit too small with high-resolution screen. I guess that also depends on the size of the TV/monitor.
Well, JWMDesk can adjust the tray height, which also sets the icon size. I could add some code into the .xinitrc script to set tray height, but want to minimize potential conflicts with JWMDesk.

Roger has added a button to flip between ROX icons-on-desktop, and JWM icons-in-tray. That's great. We are sorting out some details for that.     

Tags: easy