setxkbmap
Set the keyboard using the X Keyboard Extension. More information: <https://manned.org/setxkbmap>.
Install
- All systems
-
curl cmd.cat/setxkbmap.sh
- Debian
-
apt-get install x11-xkb-utils - Ubuntu
-
apt-get install x11-xkb-utils - Arch Linux
-
pacman -S xorg-setxkbmap - Kali Linux
-
apt-get install x11-xkb-utils - CentOS
-
yum install xorg-x11-xkb-utils - Fedora
-
dnf install xorg-x11-xkb-utils - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install x11-xkb-utils - Raspbian
-
apt-get install x11-xkb-utils
Set the keyboard using the X Keyboard Extension. More information: <https://manned.org/setxkbmap>.
-
Set the keyboard in French AZERTY:
setxkbmap fr -
Set multiple keyboard layouts, their variants and switching option:
setxkbmap -layout us,de -variant ,qwerty -option 'grp:alt_caps_toggle' -
Get help:
setxkbmap -help -
List all layouts:
localectl list-x11-keymap-layouts -
List variants for the layout:
localectl list-x11-keymap-variants de -
List available switching options:
localectl list-x11-keymap-options | grep grp:
© tl;dr; authors and contributors