Load the whole config again under Hyprland 0.57

Hyprland 0.57 refuses a bind on a bare modifier and an empty input:scroll_method. The switcher's Super-release commit now binds Super_L and Super_R, which also brings back every bind below it in keybinds.lua. An empty scroll method is left unwritten, so libinput still picks per device.
This commit is contained in:
Gabriel Brown committed 2026-10-29 13:56:53 -04:00
1 parent 48e5ea9a39
commit 0add5af1b9
3 files changed
+26 -19

No files matched your search

+9 -6
View File
@@ -377,15 +377,18 @@ bind(mod .. " + SHIFT + N", hl.dsp.window.resize({ x = 0, y = step, relative = t
-- The gesture needs three binds, not two. Tab steps the selection, and the
-- switch is only COMMITTED when the modifier is released -- which is the sole
-- way the compositor can tell the gesture is finished. That release bind is on
-- the bare modifier, so it fires on EVERY Super release in the session; the
-- handler returns immediately when no switch is open, which is why this is
-- affordable.
-- the Super keys themselves, so it fires on EVERY Super release in the
-- session; the handler returns immediately when no switch is open, which is
-- why this is affordable.
--
-- The release bind carries no description on purpose: it is not a shortcut
-- anyone would look up or rebind, and the Shortcuts page lists what it finds.
-- A modifier-only bind has to name the keysym (Super_L / Super_R). Hyprland
-- 0.57 rejects a chord that is a bare modifier ("A bind requires a trigger"),
-- and the error stops this file, costing every bind below it.
bind(mod .. " + Tab", hl.dsp.exec_cmd(qs("switcher", "next")), { description = "Next window" })
bind(mod .. " + SHIFT + Tab", hl.dsp.exec_cmd(qs("switcher", "previous")), { description = "Previous window" })
bind(mod, hl.dsp.exec_cmd(qs("switcher", "commit")), { release = true, description = "Commit window switch" })
for _, key in ipairs({ "Super_L", "Super_R" }) do
bind(mod .. " + " .. key, hl.dsp.exec_cmd(qs("switcher", "commit")), { release = true, description = "Commit window switch" })
end
-- Jump back to the previously focused window.
bind(mod .. " + SHIFT + grave", hl.dsp.focus({ last = true }), { description = "Last window" })