Brightness notifications now correctly show single and triple digit percentages.

This commit is contained in:
Sid Roberts
2022-06-02 19:24:26 +09:00
parent 6d4e2bc247
commit fcc037ce4f
+2 -2
View File
@@ -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