mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
681 B
Plaintext
34 lines
681 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|