From f9553329efdd4e8d4dc3133dc5ba14cad107595b Mon Sep 17 00:00:00 2001 From: Jeena Date: Thu, 27 Aug 2026 19:43:36 +0900 Subject: [PATCH] fix(hypr): unify special workspace, drop 'magic' name The Lua conversion had introduced a named 'magic' special workspace on the SUPER+S keybinding while KeePassXC and the terminal still targeted the default 'special' workspace, splitting them into two separate scratchpads and making KeePassXC unreachable. Route everything through the single default special workspace to match the original .conf behavior. --- hypr/autostart.lua | 2 +- hypr/hyprland.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hypr/autostart.lua b/hypr/autostart.lua index bf37e92..b68fd52 100644 --- a/hypr/autostart.lua +++ b/hypr/autostart.lua @@ -10,7 +10,7 @@ hl.on("hyprland.start", function() hl.exec_cmd("[workspace 1 silent] " .. P.browser) hl.exec_cmd("[workspace 2 silent] thunderbird") hl.exec_cmd("[workspace 2 silent] element-desktop") - hl.exec_cmd("[workspace special:magic silent] " .. P.terminal) + hl.exec_cmd("[workspace special silent] " .. P.terminal) hl.exec_cmd("keepassxc") hl.exec_cmd('chromium --profile-directory="Default"') end) diff --git a/hypr/hyprland.lua b/hypr/hyprland.lua index 2fd3761..7545e98 100644 --- a/hypr/hyprland.lua +++ b/hypr/hyprland.lua @@ -214,8 +214,8 @@ for i = 1, 10 do end -- Example special workspace (scratchpad) -hl.bind(mainMod .. " + S", hl.dsp.workspace.toggle_special("magic")) -hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special:magic" })) +hl.bind(mainMod .. " + S", hl.dsp.workspace.toggle_special()) +hl.bind(mainMod .. " + SHIFT + S", hl.dsp.window.move({ workspace = "special" })) -- Scroll through existing workspaces with mainMod + scroll hl.bind(mainMod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))