feat(input): Add per-device keyboard and mouse configuration#1
Open
ArthurHeymans wants to merge 9 commits intostefanboca:sb/push-nrusnuxtqozkfrom
Open
feat(input): Add per-device keyboard and mouse configuration#1ArthurHeymans wants to merge 9 commits intostefanboca:sb/push-nrusnuxtqozkfrom
ArthurHeymans wants to merge 9 commits intostefanboca:sb/push-nrusnuxtqozkfrom
Conversation
- change Default impl on Touch to use DEFAULT_TOUCH for consistency
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 - Preserve numlock state across keyboard switches Device names are matched case-insensitively from libinput (use `sudo libinput list-devices` to find device names). Signed-off-by: Arthur Heymans <[email protected]>
f11c254 to
dcef70c
Compare
dcef70c to
aff76fc
Compare
|
Just a note: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Device names are matched case-insensitively from libinput (use
sudo libinput list-devicesto find device names).This builds on top of your changes. I suppose I'll rebase against upstream once they are in.