From f726ba0b1a3458b262b0ed7dbe950543d10dc046 Mon Sep 17 00:00:00 2001 From: tiyn Date: Thu, 7 Sep 2023 23:48:08 +0200 Subject: [PATCH] x window system: switching between keymaps --- wiki/linux/x_window_system.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wiki/linux/x_window_system.md b/wiki/linux/x_window_system.md index fc6e903..c15e57c 100644 --- a/wiki/linux/x_window_system.md +++ b/wiki/linux/x_window_system.md @@ -30,6 +30,15 @@ To temporarily change the layout of the keyboard just run `setxkbmap `. For a permanent change run `localectl set-x11-keymap `. +If there are two main layouts are used then the following command can be used to switch between +them. +Change `` and `` according to preferences. + +`setxkbmap -query | grep -q '' && setxkbmap || setxkbmap ,` + +Using [SXHKD](/wiki/linux/sxhkd.md) a hotkey can be setup to seamlessly transition between the two +layouts. + ### Display This section describes the handling of displays by X.