Skip to content

Instantly share code, notes, and snippets.

@lithuak
Created June 16, 2014 16:13
Show Gist options
  • Select an option

  • Save lithuak/0a24e43a9f576f7c66fc to your computer and use it in GitHub Desktop.

Select an option

Save lithuak/0a24e43a9f576f7c66fc to your computer and use it in GitHub Desktop.
XKB dirty way
To see current keyboard mapping: setxkbmap -print
To understand what it means: see Ivan Pascal's documentation on right way to do it.
cd /usr/share/X11/xkb
In file keycodes/evdev swap:
<CAPS> = 66;
<ESC> = 9;
and
<LALT> = 64;
<LCTL> = 37;
In file symbols/ru:
numerosign to numbersign :)
Layout switch I'm still doing in Gnome widget, though all this including it must be done in one clean manner, may be some day... ;)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment