1
0
mirror of https://github.com/tiyn/wiki.git synced 2025-04-19 22:17:45 +02:00

Compare commits

...

2 Commits

Author SHA1 Message Date
80f8bf5ad3 x window system: improved keymap swapping command 2023-09-07 23:50:30 +02:00
f726ba0b1a x window system: switching between keymaps 2023-09-07 23:48:08 +02:00

View File

@ -30,6 +30,15 @@ To temporarily change the layout of the keyboard just run
`setxkbmap <your preferred layout>`. `setxkbmap <your preferred layout>`.
For a permanent change run `localectl set-x11-keymap <your preferred layout>`. For a permanent change run `localectl set-x11-keymap <your preferred layout>`.
If there are two main layouts are used then the following command can be used to switch between
them.
Change `<layout 1>` and `<layout 2>` according to preferences.
`setxkbmap -query | grep -q '<layout 1>' && setxkbmap <layout 2> || setxkbmap <layout 1>
Using [SXHKD](/wiki/linux/sxhkd.md) a hotkey can be setup to seamlessly transition between the two
layouts.
### Display ### Display
This section describes the handling of displays by X. This section describes the handling of displays by X.