Files
home-manager/tests/modules/services/hyprland/submaps-config.conf
PerchunPak d4e4d5cfa3 lib: make toHyprconf support strings and attrs in sections
Adds support for

    section = [
      "abc"
      { a = 123; }
    ];

Which gets generated to

    section=abc

    section {
      a=123
    }

This is very useful with the new windowrule syntax, where you can
create anonymous window rules as strings and named rules as attribute
sets. See <https://wiki.hypr.land/Configuring/Window-Rules/>.
2026-01-02 15:56:43 +01:00

30 lines
917 B
Plaintext

exec-once = @dbus@/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target
$mod=SUPER
bind=$mod, S, submap, resize
bind=$mod, M, submap, move_focus
submap = move_focus
bind=, h, movefocus, l
bind=, j, movefocus, d
bind=, k, movefocus, u
bind=, l, movefocus, r
bind=, left, movefocus, l
bind=, down, movefocus, d
bind=, up, movefocus, u
bind=, right, movefocus, r
bind=, escape, submap, reset
submap = reset
submap = resize
bind=, escape, submap, reset
bind=, return, submap, reset
binde=, right, resizeactive, 10 0
binde=, left, resizeactive, -10 0
binde=, up, resizeactive, 0 -10
binde=, down, resizeactive, 0 10
binde=, l, resizeactive, 10 0
binde=, h, resizeactive, -10 0
binde=, k, resizeactive, 0 -10
binde=, j, resizeactive, 0 10
submap = reset