Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

33
linux/setxkbmap Normal file
View File

@@ -0,0 +1,33 @@
---
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'}}`
- 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:`