You are not logged in.
`I'm working in my status bar in dwm and this are so far my functions:
estado(){
echo "`uptime | cut -f 4-5 -d " " | cut -f 1 -d "," ` "
}
volumen(){
DRONE="`amixer get Master | awk '/Front\ Left:/ {print $7}' | sed -e 's/\[//g' | sed -e 's/]//g'`"
if test $DRONE != 'on' ; then
echo "mute"
else
echo "`amixer get Master |awk '/Front\ Left:/ {print $5}' | sed -e 's/\[//g'|sed -e 's/%\]//g' `"
fi
}
wifi(){
STATUS="X`iwgetid`"
if test "$STATUS" != "X" ; then
ESSID="`iwgetid |awk -F ":" '{print $2}'|sed -e 's/"//g'`"
LINK="`awk '/wlan0:/ {print $3}' /proc/net/wireless |sed -e 's/\.//g'`"
echo " $ESSID:$LINK"
else
echo "Sin conexión"
fi
}
while true;
do
xsetroot -name "[ Vol: `volumen`% ] [ `wifi` ] [ `estado` ] `date +"[ %a %d %b %Y ] [ %H:%M:%S ]"` "
sleep 1m
done &
exec ~/Scripts/startdwm
And when dwm starts (xinitrc), the data is correctly displayed... for only a second. After that, this:
Blinking randomly... and it doesn't show anymore the initial config.
Help please.
Last edited by teh (2010-06-16 04:23:12)
arst
Offline
After a couple of hours... it works.
Weird.
arst
Offline