aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-07-12 19:04:29 -0700
committerFurkan Sahin <furkan-dev@proton.me>2019-07-12 19:04:29 -0700
commitbf110a50ff5a02c8d23530106d83350edbb21932 (patch)
treeb4f04a7316b1c25286daabee57025fb1e7307919 /include
parent49c58c224948ac5eb6cc7dacf5bf0d3d139e7c4a (diff)
Implement input_cmd_xkb_file (#3999)
Adds a new commend "xkb_file", which constructs the internal xkb_keymap from a xkb file rather than an RMLVO configuration. This allows greater flexibility when specifying xkb configurations. An xkb file can be dumped with the xkbcomp program.
Diffstat (limited to 'include')
-rw-r--r--include/sway/commands.h1
-rw-r--r--include/sway/config.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/sway/commands.h b/include/sway/commands.h
index ddee2994..7ff3b651 100644
--- a/include/sway/commands.h
+++ b/include/sway/commands.h
@@ -257,6 +257,7 @@ sway_cmd input_cmd_scroll_method;
sway_cmd input_cmd_tap;
sway_cmd input_cmd_tap_button_map;
sway_cmd input_cmd_xkb_capslock;
+sway_cmd input_cmd_xkb_file;
sway_cmd input_cmd_xkb_layout;
sway_cmd input_cmd_xkb_model;
sway_cmd input_cmd_xkb_numlock;
diff --git a/include/sway/config.h b/include/sway/config.h
index c5558c0d..f1426453 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -138,6 +138,9 @@ struct input_config {
char *xkb_options;
char *xkb_rules;
char *xkb_variant;
+ char *xkb_file;
+
+ bool xkb_file_is_set;
int xkb_numlock;
int xkb_capslock;