diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-11-28 20:46:57 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-11-28 20:46:57 +0100 |
commit | 4e773bd7c60dfed11c5a5a8df4115607ea9d523d (patch) | |
tree | 2adc287c3b567ceccd33cdaf53670d6413625b91 /bin/dzen2_pgrp.sh | |
parent | 130dfa760b27a1cfce48f849a01b1f38306bea03 (diff) | |
download | dzen2-config-4e773bd7c60dfed11c5a5a8df4115607ea9d523d.tar.gz dzen2-config-4e773bd7c60dfed11c5a5a8df4115607ea9d523d.tar.xz dzen2-config-4e773bd7c60dfed11c5a5a8df4115607ea9d523d.zip |
sound: replace inotify with dbus notify from pulseaudio
Diffstat (limited to '')
-rw-r--r-- | bin/dzen2_pgrp.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/dzen2_pgrp.sh b/bin/dzen2_pgrp.sh index 05c186e..83f801e 100644 --- a/bin/dzen2_pgrp.sh +++ b/bin/dzen2_pgrp.sh @@ -13,7 +13,12 @@ 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 "${FONT}" -bg black -e 'button1=none' & -sh "${DIR}/bin/sound.sh" | dzen2 -xs 1 -x 1223 -tw 17 -w 100 -fn "${FONT}" -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%-' & +${DIR}/bin/pulse-dbus-receive.py | \ + /home/alex/dev/dzen/dzen2 -xs 1 -x 1223 -tw 17 -w 100 -fn "${FONT}" -bg black -sa c -l 1 \ + -e 'entertitle=uncollapse,unhide;leavetitle=collapse;button2=exec:pavucontrol\ + ;button1=print:sset Master toggle;button3=print:sset Master 80%\ + ;button4=print:sset Master 2%+;button5=print:sset Master 2%-' | \ + amixer -sq & # kill bars on new RandR config ( ${DIR}/bin/xrandr-notify && kill ${MAIN} ) & |