hyprland-wiki/pages/Configuring/Uncommon-tips-&-tricks.md

30 lines
707 B
Markdown
Raw Normal View History

2022-08-12 20:46:36 +02:00
## Switchable keyboard layouts
2022-10-17 14:52:17 +02:00
The easiest way to accomplish this is to set this using XKB settings, for example:
```
input {
kb_layout = us,pl
kb_options = grp:alt_shift_toggle
}
2022-08-12 20:46:36 +02:00
```
2022-08-20 19:09:47 +02:00
2022-08-20 19:03:43 +02:00
{{< hint type=important >}}
2022-10-17 14:52:17 +02:00
The first layout defined in the input section will be the one used for binds.
2022-08-20 19:03:43 +02:00
2022-10-17 14:53:41 +02:00
For example: `us,ua` -> config binds would be e.g. `SUPER, A`, while on `ua,us` -> `SUPER, Cyrillic_ef`
2022-08-20 19:03:43 +02:00
{{< /hint >}}
2022-08-12 20:46:36 +02:00
## Disabling keybinds with one master keybind
2022-08-13 01:47:48 +02:00
If you want to disable all keybinds with another keybind (make a kaybind toggle
of sorts) you can just use a submap with only a keybind to exit it.
2022-08-12 20:46:36 +02:00
2022-09-24 16:03:37 +02:00
```ini
2022-08-12 20:46:36 +02:00
bind=MOD,KEY,submap,clean
submap=clean
bind=MOD,KEY,submap,reset
submap=reset
2022-08-13 01:47:48 +02:00
```