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