Paste: dzen2.sh

Author: dublindan
Mode: shellscript
Date: Thu, 21 May 2009 14:54:16
Plain Text |
#!/bin/sh
 
FN='-xos4-terminus-*-*-*-*-13-*-*-*-*-*-*-*'
BG='#262626'
FG='#dadada'
W=980
X=0
Y=1008
GH=14
GW=50
#GFG='#a8a3f7'
GBG='#111'
 
MAXPOS="100"
 
while true; do
($2=="*"?"bla":"bla2")$3} END{printf "\n"}'`
    ws=`musca -c "show groups" | awk -v ORS=" " '{ print ($2=="*"?"^fg(#000000)^bg(#ffffff)":"^fg(#dadada)^bg(#262626)")$3} END{printf "\n"}'`
    time=`date +"%H:%M"`
  echo "^fg(#ccc)^bg(#000)$time^fg()^bg()  $ws"
  sleep 1;
done | dzen2 -ta l -tw $W -x $X -y $Y -fg $FG -bg $BG -fn $FN -e

Annotation: fixed version

Author: dublindan
Mode: text
Date: Thu, 21 May 2009 16:43:50
Plain Text |
#!/bin/sh
 
FN='-xos4-terminus-*-*-*-*-13-*-*-*-*-*-*-*'
BG='#262626'
FG='#dadada'
W=980
X=0
Y=1008
GH=14
GW=50
#GFG='#a8a3f7'
GBG='#111'
 
MAXPOS="100"
 
while true; do
    ws=`~/bin/musca/musca -c "show groups" | awk -v ORS=" " '{ print ($2=="*"?"^fg(#000000)^bg(#ffffff)":"^fg(#dadada)^bg(#262626)")$3} END{printf "\n"}'`
    time=`date +"%H:%M"`
  #echo "^fg(#ccc)^bg(#000)$time^fg()^bg()^p(16)$ws"
  echo "^fg(#ccc)^bg(#000)$time^fg()^bg()  $ws"
  sleep 1;
done | dzen2 -ta l -tw $W -x $X -y $Y -fg $FG -bg $BG -fn $FN -e

New Annotation

Summary:
Author:
Mode:
Body: