Forrest logo
back to the localectl tool

setxkbmap:tldr:65237

setxkbmap: List available switching options.
$ localectl list-x11-keymap-options | grep grp:
try on your machine

This command is used to display the available X11 keymap options for system keyboard layouts and then filter the output to show only the options related to the "grp" (group) configuration.

Here's a breakdown of the components:

  • localectl: This is a command-line utility for querying and modifying system-wide and per-user keyboard layout settings in Linux distributions that use systemd.
  • list-x11-keymap-options: This is a specific command of localectl that lists the available X11 keymap options.
  • |: This is a pipe operator that redirects the output of the previous command as input to the next command.
  • grep: This command is used for searching for lines that match a specified pattern.
  • grp:: This is the pattern or string that grep will search for. It is specifically looking for lines that contain "grp:".

By combining these commands, the output of localectl list-x11-keymap-options is filtered to only display the keymap options that include "grp:".

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the localectl tool