From 2bbf91bd260085e0e078de38d7d0e98eb7c38017 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Thu, 16 Jul 2015 13:13:43 +0200 Subject: volumecontrol: Use pactl instead of amixer --- volumecontrol | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'volumecontrol') diff --git a/volumecontrol b/volumecontrol index 285d029..174a303 100755 --- a/volumecontrol +++ b/volumecontrol @@ -8,12 +8,14 @@ fi case $1 in lower) - amixer -D pulse -q set Master $step%- + pactl set-sink-mute 1 false + pactl set-sink-volume 1 -"$step"% ;; raise) - amixer -D pulse -q set Master $step%+ + pactl set-sink-mute 1 false + pactl set-sink-volume 1 +"$step"% ;; mute) - amixer -D pulse -q set Master toggle + pactl set-sink-mute 1 toggle ;; esac -- cgit v1.2.3-70-g09d2