new in the family.
This commit is contained in:
parent
9cb48745ea
commit
d111f6f503
1 changed files with 48 additions and 0 deletions
48
wms_dz.sh
Executable file
48
wms_dz.sh
Executable file
|
@ -0,0 +1,48 @@
|
|||
#!/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 # if pid exist
|
||||
pkill dzen # kill'em all
|
||||
pkill dz.sh
|
||||
|
||||
else
|
||||
case $FLAG in
|
||||
-c)
|
||||
clock | dzen2 -fn Hack-80 \
|
||||
-fg "#$BC" -bg "#$AC" \
|
||||
-w 360 -h 120 -x 500 -y 300 \
|
||||
&
|
||||
;;
|
||||
-f)
|
||||
sfetch.sh | dzen2 -fn Hack-14 \
|
||||
-e 'onstart=uncollapse' -l 16 \
|
||||
-fg "#$BC" -bg "#$AC" \
|
||||
-w 960 -x 200 -y 160 -p \
|
||||
&
|
||||
;;
|
||||
-s)
|
||||
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
|
Loading…
Reference in a new issue