diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-07-08 04:00:15 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-07-08 04:00:45 +0200 |
commit | 3c6cf7ee3eb1cd768072b21c569a69428bf3ce4c (patch) | |
tree | 44309ce9656e4c8a157c7ce6d4c5af7fd7903ce7 /bin/dzen2_pgrp.sh | |
download | dzen2-config-3c6cf7ee3eb1cd768072b21c569a69428bf3ce4c.tar.gz dzen2-config-3c6cf7ee3eb1cd768072b21c569a69428bf3ce4c.tar.xz dzen2-config-3c6cf7ee3eb1cd768072b21c569a69428bf3ce4c.zip |
inital commit
Diffstat (limited to '')
-rw-r--r-- | bin/dzen2_pgrp.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/dzen2_pgrp.sh b/bin/dzen2_pgrp.sh new file mode 100644 index 0000000..0473db8 --- /dev/null +++ b/bin/dzen2_pgrp.sh @@ -0,0 +1,21 @@ +#!/bin/sh +DIR="${HOME}/.dzen2/" + +cat $* | dzen2 -xs 1 -x 0 -w 1223 -ta l -fn '-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*' -bg black -e 'button1=none' & +MAIN=$! + +sh "${DIR}/bin/bat.sh" | dzen2 -xs 1 -x 1360 -w 120 -fn '-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*' -bg black -e 'button1=none' & + +sh "${DIR}/bin/clock.sh" | dzen2 -xs 1 -x 1480 -w 200 -fn '-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*' -bg black -l 17 -p -sa c -e 'button1=exec:xscreensaver-command -lock;button3=exec:xcalendar;button2=exec:xscreensaver-command -prefs;onstart=collapse;entertitle=uncollapse,unhide;leavetitle=collapse' & + +gcpubar -fg '#999' -bg '#444' -w 50 -h 7 -l "^i(${DIR}/icons/cpu.xbm) " | sed -u 's/#D56F6C/#ff0000/' | dzen2 -xs 1 -x 1240 -w 120 -fn '-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*' -bg black -e 'button1=none' & + +sh "${DIR}/bin/sound.sh" | dzen2 -xs 1 -x 1223 -tw 17 -w 100 -fn '-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*' -bg black -sa c -l 1 -e 'entertitle=uncollapse,unhide;leavetitle=collapse;button1=exec:amixer -q -c0 set Master toggle;button2=exec:pavucontrol;button3=exec:amixer -c0 -- set Master playback 80%;button4=exec:amixer -c0 -- set Master playback 2%+;button5=exec:amixer -c0 -- set Master playback 2%-' & + +# kill bars on new RandR config +( ${DIR}/bin/xrandr-notify && kill ${MAIN} ) & + +wait $MAIN + +# kill all +kill -TERM -$$ |