Implement river-xkb-config-v1

This commit adds support for the river-xkb-config-v1 protocol. There's
a new keyboard_layout block in config that can take options from
xkeyboard-config(7).
This commit is contained in:
Ben Buhse 2026-03-16 08:41:49 -05:00
commit a1bd356943
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
12 changed files with 714 additions and 6 deletions

View file

@ -123,6 +123,14 @@ pointer_binds {
// tiled windows will automatically float if resized
resize_window Mod4 BTN_RIGHT
}
// Keyboard layout configuration
// All fields are optional and default to system/xkbcommon defaults
keyboard_layout {
layout "us"
// variant "dvorak"
options "compose:rctrl"
}
// Default input config for all devices
input {
accel_profile "flat"