up vote 1 down vote favorite
1
share [g+] share [fb]

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 close or the CTRL-S save.

and there is no way to press CTRL without taking my fingers off of the home row.

thanks!

link|improve this question
I'd switch CAPS LOCK with ctrl. – artifex Mar 5 '10 at 8:53
feedback

1 Answer

up vote 2 down vote accepted
  • Run setxkbmap -print | xkbcomp -xkb -o original.xkb -.
  • Then copy original.xkb to switch-LALT-LCTL.xkb. Keep the file original.xkb as a backup, better remove write permission.
  • Edit switch-LALT-LCTL.xkb in the block xkb_keycodes and exchange the keycodes for LALT and LCTL.
  • Run xkbcomp switch-LALT-LCTL.xkb $DISPLAY to active your new layout. Run xkbcomp 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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.