update conf

This commit is contained in:
Johannes Knopp
2026-07-09 03:36:38 +02:00
parent 1b86de1ab1
commit aae0275e60
10 changed files with 483 additions and 14 deletions

View File

@ -0,0 +1,17 @@
-- Persistent workspaces + switching binds (single monitor).
-- See https://wiki.hypr.land/Configuring/Basics/Workspace-Rules/
local mainMod = "SUPER"
for i = 1, 10 do
hl.workspace_rule({
workspace = tostring(i),
persistent = true,
default = (i == 1) or nil,
})
local key = i % 10 -- 10 maps to key 0
hl.bind(mainMod .. " + " .. key, hl.dsp.focus({ workspace = i }))
hl.bind(mainMod .. " + SHIFT + " .. key, hl.dsp.window.move({ workspace = i, follow = false }))
end