diff --git a/usr/bin/x-mic-mute b/usr/bin/x-mic-mute index bffc53f..2b7cf3b 100755 --- a/usr/bin/x-mic-mute +++ b/usr/bin/x-mic-mute @@ -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" diff --git a/usr/bin/x-volume-down b/usr/bin/x-volume-down index 52f1d96..be2445b 100755 --- a/usr/bin/x-volume-down +++ b/usr/bin/x-volume-down @@ -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" diff --git a/usr/bin/x-volume-mute b/usr/bin/x-volume-mute index 62f6318..7b5dfdc 100755 --- a/usr/bin/x-volume-mute +++ b/usr/bin/x-volume-mute @@ -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" diff --git a/usr/bin/x-volume-up b/usr/bin/x-volume-up index 01068f6..1cbf76f 100755 --- a/usr/bin/x-volume-up +++ b/usr/bin/x-volume-up @@ -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"