Tabkey to the
qkey for some reason
xevand assign with
$ uname -srvmpio Linux 4.18.0-25-generic #26~18.04.1-Ubuntu SMP Thu Jun 27 07:28:31 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.4 LTS Release: 18.04 Codename: bionic
You can change the key assignments with the command
$ xmodmap -e "keycode [keycode] = [keysym]"
You can assign the physical key pointed to by
[keycode] to the content pointed to by
To find out these, use the
You can check the key code and keysym by pressing the key after starting the command.
If you press "q", the keycode is 24 and the keysym is q.
KeyPress event, serial 37, synthetic NO, window 0x5e00001, root 0x17e, subw 0x0, time 5825075, (42,674), root:(197,823), state 0x0, keycode 24 (keysym 0x71, q), same_screen YES, XLookupString gives 1 bytes: (71) "q" XmbLookupString gives 1 bytes: (71) "q" XFilterEvent returns: False
If you press "Tab", the keycode is 23 and the keysym is Tab.
KeyPress event, serial 37, synthetic NO, window 0x5e00001, root 0x17e, subw 0x0, time 5804891, (141,203), root:(296,352), state 0x0, keycode 23 (keysym 0xff09, Tab), same_screen YES, XLookupString gives 1 bytes: (09) " " XmbLookupString gives 1 bytes: (09) " " XFilterEvent returns: False
Now that we have the information so far, to set Tab to q, do the following:
$ xmodmap -e "keycode 23 = q"
To undo it, do the following:
$ xmodmap -e "keycode 23 = Tab"
Please note that this change is for the current X Window session only and has no permanent application.
Personally, that's fine ...