From 47a7f68cd03948035617b83b31349330ae8e55dc Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Sun, 16 Jul 2023 15:18:46 +0100 Subject: Add --physical-keybindings option. --- src/config.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index c0ede7a..52e14d8 100644 --- a/src/config.c +++ b/src/config.c @@ -724,6 +724,11 @@ bool parse_option(struct tofi *tofi, const char *filename, size_t lineno, const tofi->window.entry.hidden_character_utf8_length = utf32_to_utf8(ch, tofi->window.entry.hidden_character_utf8); } + } else if (strcasecmp(option, "physical-keybindings") == 0) { + bool val = parse_bool(filename, lineno, value, &err); + if (!err) { + tofi->physical_keybindings = val; + } } else if (strcasecmp(option, "drun-launch") == 0) { bool val = parse_bool(filename, lineno, value, &err); if (!err) { -- cgit v1.2.3