From 518959fb9fa7cf8b242d196a076249c3c875af7d Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 23 Oct 2019 12:00:59 +0200 Subject: [PATCH] [FIX][I3] Replace brightness notification message Dunst can overwrite a notification if we give it an id (an integer value) or a name (a string). This allows for displaying a single notification when incrementing/decrementing the brightness multiple times in a quick succession. --- i3/.config/i3/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index eb673d2..bdda58f 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -256,8 +256,8 @@ bindsym XF86Tools exec toggle_touchpad bindsym XF86Display exec arandr # Bind sreen brightness controls -bindsym XF86MonBrightnessUp exec xbacklight -inc 10 && notify-send -t 500 -u low "Increment brightness: $(printf '%.0f' `xbacklight -get`)%" -bindsym XF86MonBrightnessDown exec xbacklight -dec 10 && notify-send -t 500 -u low "Decrement brightness: $(printf '%.0f' `xbacklight -get`)%" +bindsym XF86MonBrightnessUp exec xbacklight -inc 10 && notify-send -h string:x-canonical-private-synchronous:bright -t 500 -u low "Increment brightness: $(printf '%.0f' `xbacklight -get`)%" +bindsym XF86MonBrightnessDown exec xbacklight -dec 10 && notify-send -h string:x-canonical-private-synchronous:bright -t 500 -u low "Decrement brightness: $(printf '%.0f' `xbacklight -get`)%" # Auto start system tray applets exec --no-startup-id blueman-applet