wmi

git clone git://oldgit.suckless.org/wmi/
Log | Files | Refs | LICENSE

statustext-deleuze.sh (532B)


      1 #!/bin/sh
      2 
      3 # Deleuze proposed following statustext.sh
      4 
      5 # Just add following line to your .xinitrc to launch this status text:
      6 #
      7 # exec <patch-to-this-dir>/statustext.sh&
      8 # (or whatever file name you prefer)
      9 #
     10 
     11 # set statusbar to
     12 # .wmi/common.conf:statusbar.status-width=60
     13 
     14 # time format
     15 TFORMAT="%d.%m., %H:%M"
     16 
     17 while sleep 8
     18 do
     19     UP=`uptime |awk '{ print $1 " " $2  $3 $4 " " $5 " " $6 " " $7 " "$9
     20     +$10 $11
     21 }'`
     22     TAIL=`tail -n 1 /var/log/messages`
     23 
     24     wmiremote -t "[$TAIL] "
     25     sleep 8
     26     wmiremote -t "[$UP] "
     27 done