aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-07-16 13:13:43 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-07-16 13:13:43 +0200
commit2bbf91bd260085e0e078de38d7d0e98eb7c38017 (patch)
treec76451abc1060ace245702c062c59b1c01cb960d
parent122e85cbb096bd2ab108305722487eb23ac8ab47 (diff)
downloadbin-2bbf91bd260085e0e078de38d7d0e98eb7c38017.tar.xz
volumecontrol: Use pactl instead of amixer
-rwxr-xr-xvolumecontrol8
1 files changed, 5 insertions, 3 deletions
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