I tried various versions yet none did work.
My keycodes were taken from xev
, a tool to see which keycode is each and displays information about a key.
I studied arch’ wiki about this X_keyboard_extension (can’t include link)
So, I created this file
/etc/X11/xorg.init.d/90-custom-kbd.conf
Section "InputClass"
Identifier "keyboard defaults"
MatchIsKeyboard "on"
Option "XkbOptions" "apostrophe:grave"
EndSection
Didn’t work.
I edited ~/.Xmodmap and basically switched keys 94 and 48.
keycode 49 = less greater guillemotleft guillemotright bar brokenbar
keycode 94 = grave asciitilde grave asciitilde grave asciitilde
Didn’t work.
Tried running xmodmap -e "keycode 94 = grave"
also didnt work.
I’m on Wayland, so I expected Xorg utilities to not work on wayland but a good search told me otherwise and that it still depends on Xmodmap and its yet to develop its own tools for this.
So, how would I remap “less than” symbol (keycode 94) to my grave symbol (keycode 49)?