diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-12-16 20:06:58 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-12-16 20:06:58 -0500 |
commit | c41801b75e612b8bfb0e9e386a190b59141f7857 (patch) | |
tree | 2a6a8e854e3ca662ef154ac1eeec075b27253869 /sway/commands | |
parent | 0256cd1473a574c2eb087f420f8356fee9e08aa7 (diff) | |
download | sway-c41801b75e612b8bfb0e9e386a190b59141f7857.tar.xz |
set keyboard config at runtime
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/input.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sway/commands/input.c b/sway/commands/input.c index 5ca9c2e6..dac028a7 100644 --- a/sway/commands/input.c +++ b/sway/commands/input.c @@ -44,6 +44,16 @@ struct cmd_results *cmd_input(int argc, char **argv) { res = input_cmd_scroll_method(argc_new, argv_new); } else if (strcasecmp("tap", argv[1]) == 0) { res = input_cmd_tap(argc_new, argv_new); + } else if (strcasecmp("xkb_layout", argv[1]) == 0) { + res = input_cmd_xkb_layout(argc_new, argv_new); + } else if (strcasecmp("xkb_model", argv[1]) == 0) { + res = input_cmd_xkb_model(argc_new, argv_new); + } else if (strcasecmp("xkb_options", argv[1]) == 0) { + res = input_cmd_xkb_options(argc_new, argv_new); + } else if (strcasecmp("xkb_rules", argv[1]) == 0) { + res = input_cmd_xkb_rules(argc_new, argv_new); + } else if (strcasecmp("xkb_variant", argv[1]) == 0) { + res = input_cmd_xkb_variant(argc_new, argv_new); } else { res = cmd_results_new(CMD_INVALID, "input <device>", "Unknown command %s", argv[1]); } |