|
|
|
|
@ -3,6 +3,7 @@
|
|
|
|
|
# Scripts for volume controls for audio and mic |
|
|
|
|
|
|
|
|
|
iDIR="$HOME/.config/swaync/icons" |
|
|
|
|
sDIR="/usr/share/sounds/freedesktop/stereo" |
|
|
|
|
|
|
|
|
|
# Get Volume |
|
|
|
|
get_volume() { |
|
|
|
|
@ -34,6 +35,7 @@ notify_user() {
|
|
|
|
|
notify-send -e -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" "Volume: Muted" |
|
|
|
|
else |
|
|
|
|
notify-send -e -h int:value:"$(get_volume | sed 's/%//')" -h string:x-canonical-private-synchronous:volume_notif -u low -i "$(get_icon)" "Volume: $(get_volume)" |
|
|
|
|
paplay "$sDIR/audio-volume-change.oga" |
|
|
|
|
fi |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|