Creating alternate shortcut keys for up/down/home/end
I like using emacs-style navigation in the terminal (e.g. Ctrl + N for down, Ctrl +P for up, Ctrl + A for home, Ctrl + E for end), and I want to do something similar for navigation elsewhere. I would like to use CapsLock + N/P/A/E/etc for down/up/home/end in all apps (I previously used the AutoHotkey script at github.com/…/emacs-like-key-bindings-windows to accomplish this in Windows).
I’m currently using KDE Plasma on Wayland, and I haven’t seen anything obvious to do this while poking around settings. Any suggestions? Thank you in advance!
EDIT: I was able to do what I want with evremap. The crux of the config is:
<span style="color:#323232;">[[dual_role]]
</span><span style="color:#323232;">input = "KEY_CAPSLOCK"
</span><span style="color:#323232;">hold = ["KEY_F19"]
</span><span style="color:#323232;">tap = ["KEY_ESC"]
</span><span style="color:#323232;">
</span><span style="color:#323232;">[[remap]]
</span><span style="color:#323232;">input = ["KEY_F19", "KEY_N"]
</span><span style="color:#323232;">output = ["KEY_DOWN"]
</span><span style="color:#323232;">
</span><span style="color:#323232;">[[remap]]
</span><span style="color:#323232;">input = ["KEY_F19", "KEY_P"]
</span><span style="color:#323232;">output = ["KEY_UP"]
</span>
See my reply below for more info.
Add comment