don't spam notifications when changing volume

This commit is contained in:
NullBite 2024-02-03 13:56:15 +01:00
parent b33638d944
commit 3855d7e7a0
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -5,8 +5,12 @@
wpctl=${pkgs.wireplumber}/bin/wpctl
notify_send=${pkgs.libnotify}/bin/notify-send
notify-send () {
$notify_send -h string:x-canonical-private-synchronous:keysetting "$@"
}
notifyvol () {
$notify_send "$(wpctl get-volume @DEFAULT_SINK@)"
notify-send "$(wpctl get-volume @DEFAULT_SINK@)"
}
setvol () {