added hyprctl setxkblayout

This commit is contained in:
vaxerski 2022-12-03 15:59:13 +00:00
parent 7fc0044f64
commit e374688509
2 changed files with 22 additions and 0 deletions

View File

@ -17,6 +17,9 @@ For example: `us,ua` -> config binds would be e.g. `SUPER, A`, while on `ua,us`
{{< /hint >}}
You can also bind a key to execute `hyprctl setxkblayout` for more keybind freedom.
See [Using hyprctl](../Using-hyprctl).
# Disabling keybinds with one master keybind
If you want to disable all keybinds with another keybind (make a kaybind toggle

View File

@ -110,6 +110,25 @@ hyprctl output create headless
hyprctl output remove HEADLESS-1
```
### setxkblayout
Sets the xkb layout index for a keyboard.
For example, if you set:
```ini
device:my-epic-keyboard-v1 {
layout=us,pl,de
}
```
You can use this command to switch between them.
```
hyprctl setxkblayout [DEVICE] [CMD]
```
where `CMD` is either `next` for next, `prev` for previous, or `ID`
for a specific one (in the above case, `us`: 0, `pl`: 1, `de`: 2)
## Info
```plain