mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Implement setting NumLock and CapsLock status
After setting the keymap, try to enable NumLock and disable CapsLock. This only works if sway has the xkb master state and controls the keyboard. Prepare configuration settings for later use as well.
This commit is contained in:
parent
6a8d1e5044
commit
2166dbe2e4
3 changed files with 29 additions and 0 deletions
|
|
@ -101,6 +101,9 @@ struct input_config {
|
|||
char *xkb_rules;
|
||||
char *xkb_variant;
|
||||
|
||||
int xkb_numlock;
|
||||
int xkb_capslock;
|
||||
|
||||
struct input_config_mapped_from_region *mapped_from_region;
|
||||
char *mapped_to_output;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue