System Grab Bag

View all TLDR pages from Linux (or from all pages)

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:

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.