add notifications for audio (they're rubbish, but eh)
This commit is contained in:
@@ -1,2 +1,5 @@
|
|||||||
#!/usr/bin/sh
|
#!/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"
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
#!/usr/bin/sh
|
#!/usr/bin/sh
|
||||||
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && play -n synth 0.005 sine 1000 vol 0.2
|
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"
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
#!/usr/bin/sh
|
#!/usr/bin/sh
|
||||||
wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
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"
|
||||||
|
|||||||
@@ -1,2 +1,6 @@
|
|||||||
#!/usr/bin/sh
|
#!/usr/bin/sh
|
||||||
wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && play -n synth 0.005 sine 1000 vol 0.2
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user