From 3855d7e7a0969e10301ae0a1573f4502829f48db Mon Sep 17 00:00:00 2001 From: NullBite <me@nullbite.com> Date: Sat, 3 Feb 2024 13:56:15 +0100 Subject: [PATCH] don't spam notifications when changing volume --- home/wm-helpers.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/wm-helpers.nix b/home/wm-helpers.nix index 1520fa6..e5189f0 100644 --- a/home/wm-helpers.nix +++ b/home/wm-helpers.nix @@ -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 () {