auroracafda3f
hypr: scratchpad terminal via workspace.created instead of on_created_empty
+3 −1
1 file changed
- M .config/hypr/source/keybinds.lua +3 −1
| @@ -111,7 +111,9 @@ hl.bind(mainMod .. " + S", hl.dsp.workspace.toggle_special("magic")) | |||
| 111 | 111 | hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:magic" })) | |
| 112 | 112 | ||
| 113 | 113 | -- 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) | |
| 115 | 117 | hl.bind(mainMod .. " + SHIFT + Return", hl.dsp.workspace.toggle_special("h")) | |
| 116 | 118 | ||
| 117 | 119 | -- --- Accessibility: Zoom --- | |