Forrest logo
tool overview
On this page you find all important commands for the CLI tool setxkbmap. If the command you are looking for is missing please ask our AI.

setxkbmap

setxkbmap is a command line tool in Linux and Unix-like operating systems. It is used to set the keyboard layout and modify the keyboard mapping. This tool allows users to change the keyboard layout to accommodate different language preferences or layouts.

The main function of setxkbmap is to modify the X keyboard extension (XKB) settings, which is responsible for handling keyboard mappings in X11 window system. With setxkbmap, users can easily switch between different keyboard layouts without the need for a graphical interface.

Using setxkbmap, you can specify the layout by either providing the layout code or the layout name. It supports various layouts such as US English, UK English, German, French, Spanish, and many others. Additionally, you can also set specific options like enable/disable Caps Lock, swap Control and Caps Lock, or define a custom keymap.

The changes made using setxkbmap are temporary and only apply for the current X session. To make them persistent across sessions, you can add the command to your startup script or system configuration.

Overall, setxkbmap is a versatile command line tool that provides users with the flexibility to modify and configure their keyboard layouts in Linux and Unix-like systems efficiently.

List of commands for setxkbmap:

  • setxkbmap:tldr:03d07 setxkbmap: Set multiple keyboard layouts, their variants and switching option.
    $ setxkbmap -layout ${us,de} -variant ${,qwerty} -option ${'grp:alt_caps_toggle'}
    try on your machine
    explain this command
  • setxkbmap:tldr:522bc setxkbmap: Get help.
    $ setxkbmap -help
    try on your machine
    explain this command
tool overview