WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: troublefree using wbar when work with several desktop managers  (Read 4172 times)

Offline AbNoRMiS

  • Hero Member
  • *****
  • Posts: 550
  • nothing can be impeccable in this imperfect world
    • @ß№®M!$
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
Code: [Select]
#!/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 ;;
esac
run from /opt/bootlocal.sh
Code: [Select]
echo /opt/tc_wbar_options.sh >> /opt/bootlocal.sh
« Last Edit: April 30, 2012, 12:45:28 AM by AbNoRMiS »
Basic Design Concept © @ß№®M!$
please forgive my terrible english :)