HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

setxkbmap — Set the keyboard using the X Keyboard Extension. More information: <https://manned.org/setxkbmap>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandsetxkbmapkeyboardcliusingset
linux

Problem

How to use the setxkbmap command: Set the keyboard using the X Keyboard Extension. More information: <https://manned.org/setxkbmap>.

Solution

setxkbmap — 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}}'


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:


Display help:
setxkbmap -help

Code Snippets

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}}'

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:

Context

tldr-pages: linux/setxkbmap

Revisions (0)

No revisions yet.