mirror of
https://github.com/swaywm/sway.git
synced 2026-04-22 06:46:27 -04:00
input/keyboard: enable user-specific keymaps
This adds the xdg dirs to the lookup path when compiling xkb keymaps. With these the user can put custom symbol/rules files in $XDG_CONFIG_HOME/xkb to define user specific xkb options and layouts without modifying /usr/share/X11/xkb.
This commit is contained in:
parent
81518e299c
commit
427340a272
1 changed files with 3 additions and 0 deletions
|
|
@ -755,6 +755,9 @@ struct xkb_keymap *sway_keyboard_compile_keymap(struct input_config *ic,
|
||||||
xkb_context_set_user_data(context, error);
|
xkb_context_set_user_data(context, error);
|
||||||
xkb_context_set_log_fn(context, handle_xkb_context_log);
|
xkb_context_set_log_fn(context, handle_xkb_context_log);
|
||||||
|
|
||||||
|
// This includes the $XDG_CONFIG_HOME/xkb in the lookup
|
||||||
|
xkb_context_include_path_append_default(context);
|
||||||
|
|
||||||
struct xkb_keymap *keymap = NULL;
|
struct xkb_keymap *keymap = NULL;
|
||||||
|
|
||||||
if (ic && ic->xkb_file) {
|
if (ic && ic->xkb_file) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue