river_xkb_config_v1 ↗
Copyright
SPDX-FileCopyrightText: © 2026 Isaac Freund SPDX-License-Identifier: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- river_xkb_config_v1 — xkb config global interface
- river_xkb_keymap_v1 — xkbcommon keymap
- river_xkb_keyboard_v1 — xkbcommon keyboard device
configure xkbcommon keyboards
This protocol allow a client to set the xkbcommon keymap of individual keyboard input devices. It also allows switching between the layouts of a keymap and toggling capslock/numlock/scrolllock state.
The key words "must", "must not", "required", "shall", "shall not", "should", "should not", "recommended", "may", and "optional" in this document are to be interpreted as described in IETF RFC 2119.
river_xkb_config_v1
river_xkb_config_v1
- error
- stop — stop sending events
- finished — the server has finished with the object
- destroy — destroy the river_xkb_config_v1 object
- keymap_format
- create_keymap — create a keymap object
- xkb_keyboard — new xkb keyboard
xkb config global interface
Global interface for configuring xkb devices.
This global should only be advertised if river_input_manager_v1 is advertised as well.
river_xkb_config_v1
river_xkb_keymap_v1
- destroy — destroy the keymap object
- success — keymap creation succeeded
- failure — keymap creation failed
xkbcommon keymap
This object is the result of attempting to create an xkbcommon keymap.
river_xkb_config_v1
river_xkb_keyboard_v1
- error
- destroy — destroy the xkb keyboard object
- removed — the xkb keyboard is removed
- input_device — corresponding river input device
- set_keymap — set the keymap
- set_layout_by_index — set the active layout by index
- set_layout_by_name — set the active layout by name
- layout — currently active layout
- capslock_enable — enable capslock
- capslock_disable — disable capslock
- capslock_enabled — capslock is currently enabled
- capslock_disabled — capslock is currently disabled
- numlock_enable — enable numlock
- numlock_disable — disable numlock
- numlock_enabled — numlock is currently enabled
- numlock_disabled — numlock is currently disabled
- done — all information has been sent
- scrolllock_enable — enable scrolllock
- scrolllock_disable — disable scrolllock
- scrolllock_enabled — scrolllock is currently enabled
- scrolllock_disabled — scrolllock is currently disabled
xkbcommon keyboard device
This object represent a physical keyboard which has its configuration and state managed by xkbcommon.