mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-26 06:25:59 +01:00
1.2 KiB
1.2 KiB
Switchable keyboard layouts
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
}
{{< hint type=important >}}
The first layout defined in the input section will be the one used for binds.
For example: us,ua
-> config binds would be e.g. SUPER, A
, while on ua,us
-> SUPER, Cyrillic_ef
{{< /hint >}}
Disabling keybinds with one master keybind
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.
bind=MOD,KEY,submap,clean
submap=clean
bind=MOD,KEY,submap,reset
submap=reset
Window Dancing
Some XWayland games like Rhythm Doctor and Friday Night Funkin' mods like to move the windows by themselves, but that often doesn't work by default.
To configure this, I'll be using Rhythm Doctor as an example.
- Set input rules
input {
# ...
follow_mouse=0
float_switch_override_focus=0
}
- Set the windowrule
windowrule=windowdance, rhythm doctor.exe
- Have fun!
Demo video: https://pool.jortage.com/voringme/misskey/565b9dfb-125f-4ea0-9257-b371cb4c7195.mp4