Add i3 binds for changing brightness with light.

This commit is contained in:
2026-07-16 18:02:49 -07:00
parent 2b40012443
commit e3f2d42017
+14
View File
@@ -116,6 +116,20 @@ bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Use the bracket keys to change the brightness.
# light requires sudo privileges unless video group and udev are configured.
bindsym $mod+bracketleft exec "light -U 5; notify-send 'Brightness Down' $(light -G)"
bindsym $mod+bracketright exec "light -A 5; notify-send 'Brightness Up' $(light -G)"
bindsym shift+$mod+bracketleft exec "light -U 25; notify-send 'Brightness Down' $(light -G)"
bindsym shift+$mod+bracketright exec "light -A 25; notify-send 'Brightness Up' $(light -G)"
bindsym XF86MonBrightnessUp exec "light -A 5; notify-send 'Brightness Up' $(light -G)"
bindsym XF86MonBrightnessDown exec "light -U 5; notify-send 'Brightness Down' $(light -G)"
bindsym shift+XF86MonBrightnessUp exec l"ight -A 25; notify-send 'Brightness Up' $(light -G)"
bindsym shift+XF86MonBrightnessDown exec l"ight -U 25; notify-send 'Brightness Down' $(light -G)"
# Use the comma and period keys to change volume.
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
# Command Line