diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-07-16 13:13:43 +0200 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-07-16 13:13:43 +0200 |
commit | 2bbf91bd260085e0e078de38d7d0e98eb7c38017 (patch) | |
tree | c76451abc1060ace245702c062c59b1c01cb960d | |
parent | 122e85cbb096bd2ab108305722487eb23ac8ab47 (diff) | |
download | bin-2bbf91bd260085e0e078de38d7d0e98eb7c38017.tar.xz |
volumecontrol: Use pactl instead of amixer
-rwxr-xr-x | volumecontrol | 8 |
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 |