summaryrefslogtreecommitdiff
path: root/components/keymap.c
AgeCommit message (Collapse)Author
2018-05-23Refactor keymap.cLaslo Hunhold
- Get rid of camel-casing - Don't use all-caps for variable names - use LEN()-macro - use strncmp() rather than strstr() for prefix-checking - clean up the tokenizer-loop and don't use copies - make the loop more readable by separating different breaking conditions - stricter error-checking and cleanup - store the layout directly with bprintf rather than having a separate buffer
2018-05-23keymap: Add braces for for loopAaron Marcher
2018-05-23Add keymap componentMichael Buch
Adding a new keymap component that will indicate the current keyboard layout (language) and variant if any was set. I use the standard X11 XKB APIs to retrieve and parse the xkb_symbols set with setxkbmap.