#!/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