From d7e5bbdb325081d03e976ce10842b0467ab106e4 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 17 Jul 2019 18:21:00 +0200 Subject: [PATCH] [UPDATE][I3] Notify on brightness up/down Show a short-lived notification to say which action was done and what the current screen brightness is. --- 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 bff6db9..a1918d4 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -215,8 +215,8 @@ bindsym XF86Tools exec toggle_touchpad bindsym XF86Display exec arandr # Bind sreen brightness controls -bindsym XF86MonBrightnessUp exec xbacklight -inc 10 -bindsym XF86MonBrightnessDown exec xbacklight -dec 10 +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`)%" # Auto start system tray applets exec --no-startup-id blueman-applet