aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianni Ceccarelli <gianni.ceccarelli@broadbean.com>2019-12-18 10:12:57 +0000
committerGianni Ceccarelli <gianni.ceccarelli@broadbean.com>2019-12-18 10:12:57 +0000
commite1e28f79fee27db06f1cc8ffc75c5e2200d9c580 (patch)
tree0d6a8c2bde9e943bd1d3213dfb2daadb2b9adfd3
parentmore media bindings (diff)
downloadfvwm-crystal-e1e28f79fee27db06f1cc8ffc75c5e2200d9c580.tar.gz
fvwm-crystal-e1e28f79fee27db06f1cc8ffc75c5e2200d9c580.tar.bz2
fvwm-crystal-e1e28f79fee27db06f1cc8ffc75c5e2200d9c580.zip
handle volume/mute via pactl
this should work on all machines now
-rw-r--r--components/functions/Mixer6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/functions/Mixer b/components/functions/Mixer
index 260faeb..df236d2 100644
--- a/components/functions/Mixer
+++ b/components/functions/Mixer
@@ -1,14 +1,14 @@
DestroyFunc Change-Volume-Up
AddToFunc Change-Volume-Up
-+ I exec amixer set Master 10%+ >/dev/null
++ I exec pactl set-sink-volume '@DEFAULT_SINK@' +10% >/dev/null
DestroyFunc Change-Volume-Down
AddToFunc Change-Volume-Down
-+ I exec amixer set Master 10%- >/dev/null
++ I exec pactl set-sink-volume '@DEFAULT_SINK@' -10% >/dev/null
DestroyFunc Mixer-Volume-Toggle
AddToFunc Mixer-Volume-Toggle
-+ I exec amixer set Master toggle >/dev/null
++ I exec pactl set-sink-mute '@DEFAULT_SINK@' toggle >/dev/null
DestroyFunc Mixer-Show
AddToFunc Mixer-Show