From 4080a8ba826cc52297aa0174d03fb8534e45246e Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Sun, 27 Oct 2019 13:29:59 +0000 Subject: Replace volume command with pamixer in rat --- Window_Manager/ratpoison/ratpoisonrc.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Window_Manager/ratpoison/ratpoisonrc.conf b/Window_Manager/ratpoison/ratpoisonrc.conf index 7dc91d1..70430fb 100644 --- a/Window_Manager/ratpoison/ratpoisonrc.conf +++ b/Window_Manager/ratpoison/ratpoisonrc.conf @@ -171,8 +171,8 @@ definekey top KP_Enter exec ~/Dropbox/speech/run-duplex.sh #------------------------------------------------------------- # Volume Control #------------------------------------------------------------- -alias volup exec pactl set-sink-volume `pactl list sinks short | perl -ne '/^(\d*)/; $x=$1; END { print $x }'` +2% && volume -f 'V%i' > /tmp/panel-fifo -alias voldown exec pactl set-sink-volume `pactl list sinks short | perl -ne '/^(\d*)/; $x=$1; END { print $x }'` -2% && volume -f 'V%i' > /tmp/panel-fifo +alias volup exec pactl set-sink-volume `pactl list sinks short | perl -ne '/^(\d*)/; $x=$1; END { print $x }'` +2% && echo "V$(pamixer --sink 9 --get-volume)" > /tmp/panel-fifo +alias voldown exec pactl set-sink-volume `pactl list sinks short | perl -ne '/^(\d*)/; $x=$1; END { print $x }'` -2% && echo "V$(pamixer --sink 9 --get-volume)" > /tmp/panel-fifo alias spvolup exec pactl set-sink-input-volume `.config/ratpoison/get_spotify_sink` +2% alias spvoldown exec pactl set-sink-input-volume `.config/ratpoison/get_spotify_sink` -2% -- cgit v1.2.3-54-g00ecf