#!/bin/sh . /tmp/wms_var ## some info width dzen2 ## FLAG=$1 clock() { while true; do date +%H:%M sleep 60 done } # kill dzen DZPID=$(pgrep dzen) if [ -n "$DZPID" ]; then pkill dzen pkill wms_dz.sh else case $FLAG in -c) # make a simple clock. clock | dzen2 -fn Hack-80 \ -fg "#$BC" -bg "#$AC" \ -w 360 -h 120 -x 500 -y 300 \ & ;; -f) # make a simple fetch. sfetch.sh | dzen2 -fn Hack-14 \ -e 'onstart=uncollapse' -l 16 \ -fg "#$BC" -bg "#$AC" \ -w 960 -x 200 -y 160 -p \ & ;; -s) # make a simple status. status.sh | dzen2 -fn Hack-14 \ -e 'onstart=uncollapse' -l 7 \ -fg "#$BC" -bg "#$AC" \ -w 500 -x 420 -y 280 -p \ & ;; *) exit 0 ;; esac fi