From fcc037ce4f26de38934193e22133f94e9341bd5c Mon Sep 17 00:00:00 2001 From: Sid Roberts Date: Thu, 2 Jun 2022 19:24:26 +0900 Subject: [PATCH] Brightness notifications now correctly show single and triple digit percentages. --- .config/i3/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index 03a7d8f..dd15906 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -199,8 +199,8 @@ bindsym F1 exec ~/.config/i3/scripts/keyhint-2 # bindsym $mod+F1 exec xed ~/.config/i3/keybindings # Backlight control -bindsym XF86MonBrightnessUp exec xbacklight +5 && notify-send "Brightness - $(xbacklight -get | cut -c1-2)%" -bindsym XF86MonBrightnessDown exec xbacklight -5 && notify-send "Brightness - $(xbacklight -get | cut -c1-2)%" +bindsym XF86MonBrightnessUp exec xbacklight +5 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%" +bindsym XF86MonBrightnessDown exec xbacklight -5 && notify-send "Brightness - $(xbacklight -get | cut -d '.' -f 1)%" # change focus bindsym $mod+j focus left