Does anyone know how to swap the Ctrl and Alt keys in KDE?
To me it seem like the Alt key is better positioned to be used more often for stuff like the Ctrl–W or Ctrl–S.
There is no way to press the Ctrl key without taking my fingers off of the home row.
Best Answer
setxkbmap -print | xkbcomp -xkb -o original.xkb -
.original.xkb
toswitch-LALT-LCTL.xkb
. Keep the fileoriginal.xkb
as a backup, better remove write permission.switch-LALT-LCTL.xkb
in the blockxkb_keycodes
and exchange the keycodes forLALT
andLCTL
.xkbcomp switch-LALT-LCTL.xkb $DISPLAY
to active your new layout. Runxkbcomp original.xkb $DISPLAY
to restore the old one.These instructions suffice for modification on any level of sophistication. The keyboard description file is just structured text, after all.