From c6acb864baef66c1bb3b7c0bb7b66ba7ce9da94b Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 10 Jul 2015 01:58:50 +0200 Subject: dzen2_pgrp: Add variable for mixer --- bin/dzen2_pgrp.sh | 7 ++++--- 1 file 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' & -- cgit v1.2.3