Add support for 'None' modifier for keybinds

This is mostly useful for media and brightness keys, but could be used
for other stuff, too.
This commit is contained in:
Ben Buhse 2026-02-11 13:01:12 -06:00
commit e29c4d01e1
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
3 changed files with 23 additions and 12 deletions

View file

@ -55,6 +55,17 @@ keybinds {
resize_height Mod4+Alt+Shift J 100
resize_height Mod4+Alt+Shift K -100
resize_width Mod4+Alt+Shift L 100
// Media keys (no modifier)
spawn None XF86AudioRaiseVolume "~/.config/river/volume-up.sh"
spawn None XF86AudioLowerVolume "~/.config/river/volume-down.sh"
spawn None XF86AudioMute "~/.config/river/volume-toggle-mute.sh"
spawn None XF86AudioMedia "playerctl play-pause"
spawn None XF86AudioPlay "playerctl play-pause"
spawn None XF86AudioPrev "playerctl previous"
spawn None XF86AudioNext "playerctl next"
// Brightness keys (no modifier)
spawn None XF86MonBrightnessUp "~/.config/river/brightness-up.sh"
spawn None XF86MonBrightnessDown "~/.config/river/brightness-down.sh"
// Special command to generate keybinds for keys 1-9 and tags 1<<0 through 1<<9
tag_bind Mod4 set_output_tags
tag_bind Mod4+Shift set_window_tags