mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-12-26 11:29:49 +01:00
added hyprctl setxkblayout
This commit is contained in:
parent
7fc0044f64
commit
e374688509
2 changed files with 22 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue