aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2019-10-27 13:29:59 +0000
committerVasil Zlatanov <v@skozl.com>2019-10-27 13:29:59 +0000
commit4080a8ba826cc52297aa0174d03fb8534e45246e (patch)
treeeaf660b6b28bb948638005d1ebf5cef79c6cfbf0
parentb1273694c3918c98c1474ff1cac452bda4332bf6 (diff)
downloaddotfiles-4080a8ba826cc52297aa0174d03fb8534e45246e.tar.gz
dotfiles-4080a8ba826cc52297aa0174d03fb8534e45246e.tar.bz2
dotfiles-4080a8ba826cc52297aa0174d03fb8534e45246e.zip
Replace volume command with pamixer in rat
-rw-r--r--Window_Manager/ratpoison/ratpoisonrc.conf4
1 files 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%