Skip to content

Conversation

@ArthurHeymans
Copy link

This enables users to configure different layouts and settings for individual keyboards and mice by device name. For example, you can now have one keyboard with a US layout and another with US+RU layouts, with automatic XKB switching when typing on different devices.

Changes:

  • Add per-device keyboard layout configuration support
  • Add per-device mouse settings configuration
  • Implement automatic XKB switching based on active keyboard device
  • Refactor Keyboard and Mouse types to support multiple device configs
  • Add Keyboards and Mice collection types with device name lookup
  • Update documentation with per-device configuration examples
  • Save numlock state per keyboard (this may look weird as the LED follow the global state but as soon as you type on a keyboard with numlock disabled the LED shuts off)

Device names are matched case-insensitively from libinput (use sudo libinput list-devices to find device names).

This addresses issue #371

This enables users to configure different layouts and settings for
individual keyboards and mice by device name. For example, you can now
have one keyboard with a US layout and another with US+RU layouts,
with automatic XKB switching when typing on different devices.

Changes:
- Add per-device keyboard layout configuration support
- Add per-device mouse settings configuration
- Implement automatic XKB switching based on active keyboard device
- Refactor Keyboard and Mouse types to support multiple device configs
- Add Keyboards and Mice collection types with device name lookup
- Update documentation with per-device configuration examples
- Save numlock state per keyboard (this may look weird as the LED follow
  the global state but as soon as you type on a keyboard with numlock
  disabled the LED shuts off)

Device names are matched case-insensitively from libinput
(use `sudo libinput list-devices` to find device names).

This addresses issue YaLTeR#371

Signed-off-by: Arthur Heymans <[email protected]>
@YaLTeR
Copy link
Owner

YaLTeR commented Dec 18, 2025

For non-keyboard there's already #1856 which has already been reviewed by myself and several others

@ArthurHeymans
Copy link
Author

For non-keyboard there's already #1856 which has already been reviewed by myself and several others

I had this on top of that change but I saw there were not too many conflicts so I had a go at rebasing it against the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants