Keyboard setup for Raspbian

From blinkenwiki

Revision as of 01:35, 13 June 2021 by Blinkenjim (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In /etc/default/keyboard (seems to work for console only):

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT="dvorak"
XKBOPTIONS="terminate:ctrl_alt_bksp,ctrl:nocaps"

For X: Use UI to make Dvorak the keyboard then use Xmodmap to make Caps-lock a Control:

xmodmap -e 'remove Lock = Caps_Lock'
xmodmap -e 'keysym Caps_Lock = Control_L'
xmodmap -e 'add Control = Control_L'

(From Evernote)