Change volume and brightness in smaller increments.

This commit is contained in:
2026-07-17 14:49:28 -07:00
parent 88717f745b
commit ae20dec6f1
+16 -16
View File
@@ -120,16 +120,16 @@ bindsym $mod+a focus parent
## Brightness ##
# Use the bracket keys to change the brightness.
# light requires sudo privileges unless video group and udev are configured.
bindsym $mod+bracketleft exec --no-startup-id "light -U 5; notify-send 'Brightness -' $(light -G)"
bindsym $mod+bracketright exec --no-startup-id "light -A 5; notify-send 'Brightness +' $(light -G)"
bindsym shift+$mod+bracketleft exec --no-startup-id "light -U 25; notify-send 'Brightness ---' $(light -G)"
bindsym shift+$mod+bracketright exec --no-startup-id "light -A 25; notify-send 'Brightness +++' $(light -G)"
bindsym $mod+bracketleft exec --no-startup-id "light -U 2; notify-send 'Brightness -' $(light -G)"
bindsym $mod+bracketright exec --no-startup-id "light -A 2; notify-send 'Brightness +' $(light -G)"
bindsym shift+$mod+bracketleft exec --no-startup-id "light -U 10; notify-send 'Brightness ---' $(light -G)"
bindsym shift+$mod+bracketright exec --no-startup-id "light -A 10; notify-send 'Brightness +++' $(light -G)"
# Also get the actual brightness keys to work!!
bindsym XF86MonBrightnessUp exec --no-startup-id "light -A 5; notify-send 'Brightness +' $(light -G)"
bindsym XF86MonBrightnessDown exec --no-startup-id "light -U 5; notify-send 'Brightness -' $(light -G)"
bindsym shift+XF86MonBrightnessUp exec --no-startup-id "light -A 25; notify-send 'Brightness +++' $(light -G)"
bindsym shift+XF86MonBrightnessDown exec --no-startup-id "light -U 25; notify-send 'Brightness ---' $(light -G)"
bindsym XF86MonBrightnessUp exec --no-startup-id "light -A 2; notify-send 'Brightness +' $(light -G)"
bindsym XF86MonBrightnessDown exec --no-startup-id "light -U 2; notify-send 'Brightness -' $(light -G)"
bindsym shift+XF86MonBrightnessUp exec --no-startup-id "light -A 10; notify-send 'Brightness +++' $(light -G)"
bindsym shift+XF86MonBrightnessDown exec --no-startup-id "light -U 10; notify-send 'Brightness ---' $(light -G)"
## Volume ##
@@ -137,17 +137,17 @@ bindsym shift+XF86MonBrightnessDown exec --no-startup-id "light -U 25; notify-se
# TBD: Why is the displayed volume not showing up like `light -G` above?
# Use the comma and period keys to change volume.
bindsym $mod+comma exec --no-startup-id bash -c 'source /usr/local/bin/volume.function && volume -5 && notify-send "Volume -" $(vol-d)'
bindsym $mod+period exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume +5 && notify-send 'Volume -' $(vol-d)"
bindsym shift+$mod+comma exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume -25 && notify-send 'Volume ---' $(vol-d)"
bindsym shift+$mod+period exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume +25 && notify-send 'Volume +++' $(vol-d)"
bindsym $mod+comma exec --no-startup-id bash -c 'source /usr/local/bin/volume.function && volume -2 && notify-send "Volume -" $(vol-d)'
bindsym $mod+period exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume +2 && notify-send 'Volume -' $(vol-d)"
bindsym shift+$mod+comma exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume -10 && notify-send 'Volume ---' $(vol-d)"
bindsym shift+$mod+period exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume +10 && notify-send 'Volume +++' $(vol-d)"
# Actual volume keys.
bindsym XF86AudioMute exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume mute && notify-send 'Volume Muted' $(vol-d)"
bindsym XF86AudioRaiseVolume exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume +5 && notify-send 'Volume +' $(vol-d)"
bindsym XF86AudioLowerVolume exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume -5 && notify-send 'Volume -' $(vol-d)"
bindsym shift+XF86AudioRaiseVolume exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume +25 && notify-send 'Volume +++' $(vol-d)"
bindsym shift+XF86AudioLowerVolume exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume -25 && notify-send 'Volume ---' $(vol-d)"
bindsym XF86AudioRaiseVolume exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume +2 && notify-send 'Volume +' $(vol-d)"
bindsym XF86AudioLowerVolume exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume -2 && notify-send 'Volume -' $(vol-d)"
bindsym shift+XF86AudioRaiseVolume exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume +10 && notify-send 'Volume +++' $(vol-d)"
bindsym shift+XF86AudioLowerVolume exec --no-startup-id bash -c "source /usr/local/bin/volume.function && volume -10 && notify-send 'Volume ---' $(vol-d)"
# Define names for default workspaces for which we configure key bindings later on.