Tiny Core Linux
Tiny Core Base => TCB Tips & Tricks => Topic started by: AbNoRMiS on March 26, 2012, 03:56:16 PM
-
in some desktop managers like lxde, xfce4, enlightenment etc.
wbar requires --above-desk option to correct displaying
but in some other desktop managers like jwm
use of this option causes problems
so that each time not to change wbar options manually
when work with several desktop managers
i suggest that following simple script /opt/tc_wbar_options.sh
#!/bin/sh
WBARCONF=/home/$USER/.wbar
[ "$(version)" \< "4.5" ] || WBARCONF=${WBARCONF}conf
[ -f $WBARCONF ] && OPTIONS=`sed 's/ --above-desk//g' $WBARCONF`
case `cat /etc/sysconfig/desktop` in
lxde|xfce) echo "$OPTIONS --above-desk" > $WBARCONF ;;
*) [ "$OPTIONS" ] && echo $OPTIONS > $WBARCONF ;;
esacrun from /opt/bootlocal.sh
echo /opt/tc_wbar_options.sh >> /opt/bootlocal.sh