aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-07-22 21:16:19 +0200
committerFurkan Sahin <furkan-dev@proton.me>2018-07-22 21:16:19 +0200
commit75c401209af2294ff762de1d1d244ca1b4ea2ed6 (patch)
treefcb9cd6632e0e6b907ae046f94288617230a3688 /include
parentf2c78dee5fdc63724a33a94fccd486ce9d76cdd0 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/sway/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 4a6bb780..0f74b439 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -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;