mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
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.
This commit is contained in:
parent
3716c53d35
commit
eb770e88b7
8 changed files with 90 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue