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

This commit is contained in:
2025-07-21 14:38:29 +02:00
parent 63c90d6009
commit b45ee0960e
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"

View File

@@ -1,2 +1,6 @@
#!/usr/bin/sh
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && play -n synth 0.005 sine 1000 vol 0.2
vol_str=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
vol_int="$(echo "$vol_str" | sed 's/[^0-9]*//g')"
notify-send -i audio-volume-low -u low -h int:value:"$vol_int" -h string:x-dunst-stack-tag:'audioctl' -a 'audioctl' "$vol_str"

View File

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

View File

@@ -1,2 +1,6 @@
#!/usr/bin/sh
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && play -n synth 0.005 sine 1000 vol 0.2
vol_str=$(wpctl get-volume @DEFAULT_AUDIO_SINK@)
vol_int="$(echo "$vol_str" | sed 's/[^0-9]*//g')"
notify-send -i audio-volume-high -u low -h int:value:"$vol_int" -h string:x-dunst-stack-tag:'audioctl' -a 'audioctl' "$vol_str"