You are not logged in.

#1 2010-06-16 01:25:42

teh
Member
From: Tijuana, Mexico
Registered: 2009-07-07
Posts: 374
Website

[dwm] xsetroot broke? [solved]

`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:

vNG1keQ

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

#2 2010-06-16 03:53:09

teh
Member
From: Tijuana, Mexico
Registered: 2009-07-07
Posts: 374
Website

Re: [dwm] xsetroot broke? [solved]

After a couple of hours... it works.

Weird.


arst

Offline

Board footer

Powered by FluxBB