Linux: xkb Tutorial
2015-07-15 this page is work in progress. Ignore it.
xkbbell
xkbcomp
xkbevd
xkbprint
xkbvleds
xkbwatch
xkb X Keyboard Extension
xkb (X Keyboard Extension) is a more capable system to set keys in X11, than
xmodmap
.
[see Linux: xmodmap Tutorial]
setxkbmap
→ set the keyboard using the X Keyboard Extension.
# set layout to us setxkbmap -layout us
# set layout to US dvorak setxkbmap -layout us -variant dvorak
# setxkbmap example, set to US, Dvorak, and swap Ctrl Caps setxkbmap -layout us -variant dvorak -option ctrl:swapcaps
# reset all custom keymap to default setxkbmap -option
How to find xkb key notation?
look at:
- xkb key symbols is at this file, at
/usr/share/X11/xkb/symbols/am
- modifiers and special keys, at
/usr/share/X11/xkb/symbols/pc
setxkbmap
ctrl:nocaps
man setxkbmap
man xkeyboard-config
#clear xkb cache sudo rm -rf /var/lib/xkb/
xkb resource
[comprehensive guide to XKB for linux By Damiano Venturin. At https://medium.com/@damko/a-simple-humble-but-comprehensive-guide-to-xkb-for-linux-6f1ad5e13450 ]
2024-03-16 https://codeberg.org/ieure/xkbsucks
[XKB tutorial By Doug Palmer. At http://www.charvolant.org/~doug/xkb/html/node5.html , accessed on 2017-01-09 ]
[A simple, humble but comprehensive guide to XKB for linux By Damiano Venturin. At https://medium.com/@damko/a-simple-humble-but-comprehensive-guide-to-xkb-for-linux-6f1ad5e13450 , accessed on 2016-06-17 ]
https://wiki.archlinux.org/index.php/X_KeyBoard_extension
- http://earthwithsun.com/questions/194202/remapping-keys-system-wide-in-linux-not-just-in-x
- http://madduck.net/docs/extending-xkb/
- http://michal.kosmulski.org/computing/articles/custom-keyboard-layouts-xkb.html
- http://www.butlerpc.net/blog/2011/01/using-xbindkeys-on-ubuntu-linux-to-remap-key-commands/
- http://www.charvolant.org/~doug/xkb/html/index.html
- http://www.x.org/archive/X11R7.5/doc/input/XKB-Config.html
- https://radu.cotescu.com/remapping-keys-in-ubuntu-14.04/
- https://www.linux.com/learn/tutorials/769644-hacking-your-linux-keyboard-with-xkb