[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.
This commit is contained in:
Bruno BELANYI 2019-10-23 12:00:59 +02:00
parent 044f5f4c14
commit 518959fb9f

View file

@ -256,8 +256,8 @@ bindsym XF86Tools exec toggle_touchpad
bindsym XF86Display exec arandr bindsym XF86Display exec arandr
# Bind sreen brightness controls # Bind sreen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 10 && notify-send -t 500 -u low "Increment 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 -t 500 -u low "Decrement 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 # Auto start system tray applets
exec --no-startup-id blueman-applet exec --no-startup-id blueman-applet