From 4c15eeea45a720eeb1c6c9a17d2bf3743d15a6c5 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 11 May 2026 10:01:13 +0100 Subject: [PATCH] hyprland: defer overview:toggle through hyprctl dispatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Home-manager loads plugins via exec-once, so dispatchers registered by Hyprspace don't exist when the config is first parsed — the bindr was silently dropped with "invalid dispatcher". Route it through `exec, hyprctl dispatch` instead so the lookup happens at keypress, after the plugin is up. Co-Authored-By: Claude Opus 4.7 --- settings/hyprland.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 2de1829..aa7537e 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -221,8 +221,12 @@ # 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, overview:toggle" + "SUPER, SUPER_L, exec, hyprctl dispatch overview:toggle" ]; bindel = [