NetworkManager without gnome-panel
Since I don’t use Gnome anymore and switching to DR-E17, having the gnome panel installed in the system is a big hog to my computer resources not to mention wasting my harddisk space in doing so.
So, I remove the gnome panel and installed trayer instead.
-=Gentoo related=-
Seems that I need to change the nm-applet ebuild to remove the gnome-panel dependencies and added trayer instead.
FIXME! attached the new modified ebuild or the patch for ebuild.
-=Trayer=-
I used the emerge x11-misc/trayer to installed it. no configuration needed.
I just needed to make a script for trayer called trayer.sh
( sleep 1; trayer --align right --edge bottom --distance 0 --expand true --transparent true
nm-applet & ) &
save it and make it executable.
-=E17 part=-
I just need to create a new applications pointing to trayer.sh and added it on startup.
-=Tweaks for solving problem=-
Sometimes if the nm-applet crashed in E17, it wouldn’t automatically restarted. So I created a litlle script and added it in crontab job to check every minute if the nm-applet still working or not.
#!/bin/bash
SERVICE="nm-applet"
SERVICERUN="nm-applet --sm-disable"
PATHSERV="/usr/bin"
if ps ax | grep -v grep | grep $SERVICE &> /dev/null
then
echo "$SERVICE service running, killing it"
echo "Killing $SERVICE"
killall $SERVICE
killall sleep
$PATHSERV/$SERVICERUN"
else
echo "$SERVICE is not running"
echo "Running new $SERViCE"
$PATHSERV/$SERVICERUN #"
fi
exit 0
then add the script to crontab by issuing crontab -u USERNAME SCRIPTFILE.
-=end transmission=-


















Reader Comments