From e3f2d4201702a74b75808a4d616193615774f799 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 16 Jul 2026 18:02:49 -0700 Subject: [PATCH] Add i3 binds for changing brightness with `light`. --- files/settings/i3.config | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/files/settings/i3.config b/files/settings/i3.config index e12a729..bce1961 100644 --- a/files/settings/i3.config +++ b/files/settings/i3.config @@ -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