Make sure sb-volume module is updated when closed after opening

This commit is contained in:
appeasementPolitik 2023-04-27 15:06:35 +00:00 committed by GitHub
parent 77fd62b9f3
commit ac50d1fbd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
# Prints the current volume or 🔇 if muted. # Prints the current volume or 🔇 if muted.
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
1) setsid -f "$TERMINAL" -e pulsemixer ;; 1) setsid -w -f "$TERMINAL" -e pulsemixer; pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}" ;;
2) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;; 2) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;;
4) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ ;; 4) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ ;;
5) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- ;; 5) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- ;;