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:
ProgAndy 2018-07-22 21:16:19 +02:00
parent 6a8d1e5044
commit 2166dbe2e4
3 changed files with 29 additions and 0 deletions

View file

@ -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;