diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-02-12 22:38:11 +0100 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2015-02-12 22:38:11 +0100 |
commit | 3a75ae21b05ec3457069b214731eed6bb491d640 (patch) | |
tree | 03ad3b8b55f8ab06b26477e5a5336624bf5ee88b | |
parent | d63da22be1ec4c1061bc67d6f3659077bd3d642c (diff) | |
download | dotfiles-3a75ae21b05ec3457069b214731eed6bb491d640.tar.gz dotfiles-3a75ae21b05ec3457069b214731eed6bb491d640.tar.bz2 dotfiles-3a75ae21b05ec3457069b214731eed6bb491d640.zip |
fix mpd volume control in bar
-rw-r--r-- | config/sxhkd/sxhkdrc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc index 2aabb48..b3a72de 100644 --- a/config/sxhkd/sxhkdrc +++ b/config/sxhkd/sxhkdrc @@ -162,25 +162,25 @@ super + space mpc -h 127.0.0.1 toggle super + Right - mpc -h 127.0.0.1 next && echo "p`mpc current`" | cut --bytes 1-40> "$PANEL_FIFO" + mpc -h 127.0.0.1 next && echo "p`mpc current`" | cut --bytes 1-40> /tmp/panel-fifo super + Left - mpc -h 127.0.0.1 prev && echo "p`mpc current`" | cut --bytes 1-40 > "$PANEL_FIFO" + mpc -h 127.0.0.1 prev && echo "p`mpc current`" | cut --bytes 1-40 > /tmp/panel-fifo super + Up - mpc -h 127.0.0.1 volume +5 && mpc -h 127.0.0.1 volume | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ /M/' > "$PANEL_FIFO" + mpc -h 127.0.0.1 volume +5 && mpc -h 127.0.0.1 volume | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ /K/' > /tmp/panel-fifo super + Down - mpc -h 127.0.0.1 volume -5 && mpc -h 127.0.0.1 volume | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ /M/' > "$PANEL_FIFO" + mpc -h 127.0.0.1 volume -5 && mpc -h 127.0.0.1 volume | perl -pe 's/^volume://' | perl -pe 's/%$//' | perl -pe 's/^ /K/' > /tmp/panel-fifo XF86AudioRaiseVolume - amixer -q set Master 5+ && volume -f 'V%i' > "$PANEL_FIFO" + amixer -q set Master 5+ && volume -f 'V%i' > /tmp/panel-fifo XF86AudioLowerVolume - amixer -q set Master 5- && volume -f 'V%i' > "$PANEL_FIFO" + amixer -q set Master 5- && volume -f 'V%i' > /tmp/panel-fifo super + Prior - amixer -q set Master 5+ && volume -f 'V%i' > "$PANEL_FIFO" + amixer -q set Master 5+ && volume -f 'V%i' > /tmp/panel-fifo super + Next amixer -q set Master 5- && volume -f 'V%i' > "$PANEL_FIFO" |