Krolyxon
Commit cafda3f

Branches

Refs →

auroracafda3f

hypr: scratchpad terminal via workspace.created instead of on_created_empty

Author
krolyxon
Date
2026-11-08 19:10 +0530
Parent
d3696e6
Commit
cafda3fd85db978fa24050298181737555953027

+3 −1

1 file changed

  1. M .config/hypr/source/keybinds.lua +3 −1
M .config/hypr/source/keybinds.lua View
@@ -111,7 +111,9 @@ hl.bind(mainMod .. " + S", hl.dsp.workspace.toggle_special("magic"))
111111 hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:magic" }))
112112
113113 -- Scratchpad like DWM
114−hl.workspace_rule({ workspace = "special:h", on_created_empty = terminal })
114+hl.on("workspace.created", function(ws)
115+ if ws.name == "special:h" and ws.is_empty then hl.exec_cmd(terminal) end
116+end)
115117 hl.bind(mainMod .. " + SHIFT + Return", hl.dsp.workspace.toggle_special("h"))
116118
117119 -- --- Accessibility: Zoom ---