diff options
author | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2015-07-10 01:58:50 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander.sulfrian@fu-berlin.de> | 2015-07-10 01:58:50 +0200 |
commit | c6acb864baef66c1bb3b7c0bb7b66ba7ce9da94b (patch) | |
tree | ea2ef1abbfbeda7e40d767d4a10948cbd6991936 | |
parent | 904cd8797e093003119d8c4a44788a70a82acdae (diff) | |
download | dzen2-config-c6acb864baef66c1bb3b7c0bb7b66ba7ce9da94b.tar.gz dzen2-config-c6acb864baef66c1bb3b7c0bb7b66ba7ce9da94b.tar.xz dzen2-config-c6acb864baef66c1bb3b7c0bb7b66ba7ce9da94b.zip |
dzen2_pgrp: Add variable for mixer
-rw-r--r-- | bin/dzen2_pgrp.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/dzen2_pgrp.sh b/bin/dzen2_pgrp.sh index d94cfe7..61777d3 100644 --- a/bin/dzen2_pgrp.sh +++ b/bin/dzen2_pgrp.sh @@ -3,6 +3,7 @@ DIR="${HOME}/.dzen2/" FONT="-*-terminus-medium-r-normal-*-12-*-*-*-*-*-*-*" SCREEN=1 DZEN2="$HOME/dev/dzen/dzen2" +MIXER="amixer -D pulse -q sset Master" # get width of screen OFFSET=$(${DIR}/bin/xinerama-resolution ${SCREEN} | cut -dx -f1) @@ -25,9 +26,9 @@ gcpubar -fg '#999' -bg '#444' -w 50 -h 7 -l "^i(${DIR}/icons/cpu.xbm) " | \ OFFSET=$((OFFSET - 17)) ${DIR}/bin/pulse-dbus-receive.py | \ $DZEN2 -xs ${SCREEN} -x ${OFFSET} -tw 17 -w 100 -fn "${FONT}" -bg black -sa c -l 1 \ - -e 'entertitle=uncollapse,unhide;leavetitle=collapse;button2=exec:pavucontrol\ - ;button1=exec:amixer -q sset Master toggle;button3=exec:amixer -q sset Master 80%\ - ;button4=exec:amixer -q sset Master 2%+;button5=exec:amixer -q sset Master 2%-' & + -e "entertitle=uncollapse,unhide;leavetitle=collapse;button2=exec:pavucontrol\ + ;button1=exec:$MIXER toggle;button3=exec:$MIXER 80%\ + ;button4=exec:$MIXER 2%+;button5=exec:$MIXER 2%-" & # fill the rest of the screen with the information from xmonad cat $* | $DZEN2 -xs ${SCREEN} -x 0 -w ${OFFSET} -ta l -fn "${FONT}" -bg black -e 'button1=none' & |