summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvolsv8
1 files changed, 4 insertions, 4 deletions
diff --git a/volsv b/volsv
index 551b3fd..ac9b7a3 100755
--- a/volsv
+++ b/volsv
@@ -17,7 +17,7 @@ detect () {
#{{{ up
up () {
[ -n "$SNDIO" ] && sndioctl output.level=+"$(printf "%0.02f" "$(( amt * 0.01 ))")"
- [ -n "$PULSE$PIPEWIRE" ] && pamixer -i $amt
+ [ -n "$PULSE$PIPEWIRE" ] && pactl set-sink-volume $(pactl get-default-sink) "+${amt}%"
[ -n "$ALSA" ] && amixer sset Master "${amt}%+"
}
#}}}
@@ -25,7 +25,7 @@ up () {
#{{{ down
down () {
[ -n "$SNDIO" ] && sndioctl output.level=-"$(printf "%0.02f" "$(( amt * 0.01 ))")"
- [ -n "$PULSE$PIPEWIRE" ] && pamixer -d $amt
+ [ -n "$PULSE$PIPEWIRE" ] && pactl set-sink-volume $(pactl get-default-sink) "-${amt}%"
[ -n "$ALSA" ] && amixer sset Master "${amt}%-"
}
#}}}
@@ -35,12 +35,12 @@ mute () {
case "$1" in
spr)
[ -n "$SNDIO" ] && sndioctl output.mute=!
- [ -n "$PULSE$PIPEWIRE" ] && pamixer -t
+ [ -n "$PULSE$PIPEWIRE" ] && pactl set-sink-mute $(pactl get-default-sink) toggle
[ -n "$ALSA" ] && amixer sset Master toggle
;;
mic)
[ -n "$SNDIO" ] && sndioctl input.mute=!
- [ -n "$PULSE" ] && pamixer --source 1 -t
+ [ -n "$PULSE$PIPEWIRE" ] && pactl set-source-mute $(pactl get-default-source) toggle
[ -n "$PIPEWIRE$ALSA" ] && amixer sset Capture toggle
;;
esac