diff --git a/settings/hyprland.nix b/settings/hyprland.nix index aa7537e..476d9bb 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -164,6 +164,10 @@ "$mod, P, pseudo" "$mod, S, togglesplit" + # Hyprspace overview — routed via hyprctl because home-manager + # loads the plugin in exec-once, after config parse. + "$mod, SPACE, exec, hyprctl dispatch overview:toggle" + # Focus "$mod, left, movefocus, l" "$mod, right, movefocus, r" @@ -216,19 +220,6 @@ "$mod, mouse:273, resizewindow" ]; - # Tap Super → Hyprspace overview. Hyprland can't truly distinguish - # tap vs. hold on a modifier, so this also fires when releasing - # Super after any combo (e.g. Super+T) — the overview will flash - # briefly. If that's annoying, switch to a regular combo bind, or - # use keyd to remap Super-tap to a dedicated keycode. - # - # Routed through `exec, hyprctl dispatch` because home-manager loads - # plugins via exec-once, after the config is parsed — referring to - # overview:toggle directly here would fail with "invalid dispatcher". - bindr = [ - "SUPER, SUPER_L, exec, hyprctl dispatch overview:toggle" - ]; - bindel = [ ", XF86AudioRaiseVolume, exec, pamixer -i 5" ", XF86AudioLowerVolume, exec, pamixer -d 5"