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.
Answer
- Run
setxkbmap -print | xkbcomp -xkb -o original.xkb -. - Then copy
original.xkbtoswitch-LALT-LCTL.xkb. Keep the fileoriginal.xkbas a backup, better remove write permission. - Edit
switch-LALT-LCTL.xkbin the blockxkb_keycodesand exchange the keycodes forLALTandLCTL. - Run
xkbcomp switch-LALT-LCTL.xkb $DISPLAYto active your new layout. Runxkbcomp original.xkb $DISPLAYto restore the old one.
These instructions suffice for modification on any level of sophistication. The keyboard description file is just structured text, after all.
No comments:
Post a Comment