sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit c41801b75e612b8bfb0e9e386a190b59141f7857
parent 0256cd1473a574c2eb087f420f8356fee9e08aa7
Author: Tony Crisci <tony@dubstepdish.com>
Date:   Sat, 16 Dec 2017 20:06:58 -0500

set keyboard config at runtime

Diffstat:
Msway/commands/input.c | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git 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]); }