feat: auto convert keysym to keycode bind

This commit is contained in:
DreamMaoMao
2025-10-22 09:17:52 +08:00
parent 776738cc28
commit e9565f88f6
4 changed files with 232 additions and 41 deletions

View File

@@ -114,6 +114,15 @@ char xkb_rules_layout[256];
char xkb_rules_variant[256];
char xkb_rules_options[256];
/* keyboard */
static const struct xkb_rule_names xkb_fallback_rules = {
.layout = "us",
.variant = NULL,
.model = NULL,
.rules = NULL,
.options = NULL,
};
struct xkb_rule_names xkb_rules = {
/* can specify fields: rules, model, layout, variant, options */
/* example: