add notifications for audio (they're rubbish, but eh)

This commit is contained in:
2025-07-21 14:38:29 +02:00
parent 1bd89db726
commit d51ce2986f
4 changed files with 16 additions and 1 deletions

View File

@@ -1,2 +1,5 @@
#!/usr/bin/sh
wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
vol_str=$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)
vol_int="$(echo "$vol_str" | sed 's/[^0-9]*//g')"
notify-send -i microphone-sensitivity-muted -u low -h int:value:"$vol_int" -h string:x-dunst-stack-tag:'audioctl' -a 'audioctl' "$vol_str"