Updating The Keyboard Layout of a TTY screen
Jan 13, 2022 12:58 · 111 words · 1 minute read
I normally use the dvorak programmer keyboard layout; but that is only
configured for my xorg sessions. In my .xinitrc
file, I have the following snip:
setxkbmap -layout us -variant dvp -option ctrl:nocaps
Outside Xorg sessions, the layout is the normal QWERTY set-up which I don’t use. Today, I got around to setting up dvorak-programmer
as my layout of choice for my tty screens. To do that in a persistent way[0], run the following command with admin privileges:
# localectl set-keymap --no-convert dvorak-programmer
Now when you cat /etc/vconsole.conf
, you can see:
KEYMAP=dvorak-programmer
And voila! There you have it: a tty with dvorak-programmer
.
[0] Linux console/Keyboard configuration. Jan 13, 2021. URL: https://wiki.archlinux.org/title/Linux%5Fconsole/Keyboard%5Fconfiguration