aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorLibravatar ProgAndy <code@progandy.de>2018-07-22 21:16:19 +0200
committerLibravatar ProgAndy <code@progandy.de>2018-07-25 17:24:45 +0200
commit2166dbe2e49fc5eeb345d744424db360ee63f508 (patch)
treefcb9cd6632e0e6b907ae046f94288617230a3688 /include/sway/config.h
parentMerge pull request #2358 from CedricCabessa/fix-2355-move-workspace-crashes (diff)
downloadsway-2166dbe2e49fc5eeb345d744424db360ee63f508.tar.gz
sway-2166dbe2e49fc5eeb345d744424db360ee63f508.tar.zst
sway-2166dbe2e49fc5eeb345d744424db360ee63f508.zip
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/sway/config.h')
-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 {
101 char *xkb_rules; 101 char *xkb_rules;
102 char *xkb_variant; 102 char *xkb_variant;
103 103
104 int xkb_numlock;
105 int xkb_capslock;
106
104 struct input_config_mapped_from_region *mapped_from_region; 107 struct input_config_mapped_from_region *mapped_from_region;
105 char *mapped_to_output; 108 char *mapped_to_output;
106 109