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

@ -134,6 +134,11 @@ fn initialize(wm: *WindowManager) void {
}
binding.enable();
}
// Apply keyboard layout from config
if (context.xkb_config) |xkb_config| {
xkb_config.applyKeyboardLayout();
}
}
fn manage(wm: *WindowManager) void {