Fix sb-volume (toggle mute, scroll volume change) (#1411)

the current wpctl version does not support @DEFAULT_AUDIO_SINK@, but works with @DEFAULT_SINK@

quick fix
This commit is contained in:
zetef 2024-07-15 20:14:25 +03:00 committed by GitHub
parent dda032a37d
commit e8ba78c518
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,9 +4,9 @@
case $BLOCK_BUTTON in
1) setsid -w -f "$TERMINAL" -e pulsemixer; pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}" ;;
2) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;;
4) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ ;;
5) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- ;;
2) wpctl set-mute @DEFAULT_SINK@ toggle ;;
4) wpctl set-volume @DEFAULT_SINK@ 1%+ ;;
5) wpctl set-volume @DEFAULT_SINK@ 1%- ;;
3) notify-send "📢 Volume module" "\- Shows volume 🔊, 🔇 if muted.
- Middle click to mute.
- Scroll to change." ;;