commit 576b0829341ca0171b4bd69787bfa6b85aae44a3
parent 57b8611e7b3b8078a29cc67760f046b1c185f0fa
Author: Drew DeVault <sir@cmpwn.com>
Date: Thu, 25 Apr 2019 14:48:19 -0400
Pull input device config from environment
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/input.c b/input.c
@@ -42,6 +42,11 @@ static void server_new_keyboard(
keyboard->device = device;
struct xkb_rule_names rules = { 0 };
+ rules.rules = getenv("XKB_DEFAULT_RULES");
+ rules.model = getenv("XKB_DEFAULT_MODEL");
+ rules.layout = getenv("XKB_DEFAULT_LAYOUT");
+ rules.variant = getenv("XKB_DEFAULT_VARIANT");
+ rules.options = getenv("XKB_DEFAULT_OPTIONS");
struct xkb_context *context = xkb_context_new(XKB_CONTEXT_NO_FLAGS);
struct xkb_keymap *keymap = xkb_map_new_from_names(context, &rules,
XKB_KEYMAP_COMPILE_NO_FLAGS);