Hello everyone, I am currently trying to set up a kmonad config file to replace the autohotkey script I used on windows. My goal is simply to use the right alt key in combination with a,o,u and so on to type german umlaut characters like ä,ö,ü, etc.
So far I am having trouble even getting kmonad to run the config. I guess I probably misunderstand how this is supposed to work significantly. My initial config file was generated by ChatGPT since I had no idea where to even start.
This is my current config file
(defcfg
input (device-file "/dev/input/by-path/platform-i8042-serio-0-event-kbd")
output (uinput-sink "kmonad_keyboard")
fallthrough true
allow-cmd true
)
(defsrc
ralt a o u s lsft
)
(deflayer german
ralt-a "ä"
ralt-o "ö"
ralt-u "ü"
ralt-s "ß"
ralt-shift-a "Ä"
ralt-shift-o "Ö"
ralt-shift-u "Ü"
)
Any help would be appreciated.
What do you mean you don’t know where to start? How about starting by going to their website (github repo). If you did that you would find out about the tutorial. The thing takes like 30 minutes to read. Link: https://github.com/kmonad/kmonad?tab=readme-ov-file#configuration
KMonad does support compose keys but I don’t know how to use it. It’s described in the tutorial though. You can also just rebind a key or key combination to the keys that would write “ü” on your keyboard. KMonad really just changes what keys are pressed, so if you use a German layout, you will get German characters.