hyprland: defer overview:toggle through hyprctl dispatch

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 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-05-11 10:01:13 +01:00
parent 0c49b5547d
commit 4c15eeea45

View file

@ -221,8 +221,12 @@
# Super after any combo (e.g. Super+T) — the overview will flash # Super after any combo (e.g. Super+T) — the overview will flash
# briefly. If that's annoying, switch to a regular combo bind, or # briefly. If that's annoying, switch to a regular combo bind, or
# use keyd to remap Super-tap to a dedicated keycode. # 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 = [ bindr = [
"SUPER, SUPER_L, overview:toggle" "SUPER, SUPER_L, exec, hyprctl dispatch overview:toggle"
]; ];
bindel = [ bindel = [