update conf
This commit is contained in:
17
roles/hyprland/files/hypr/workspaces/jk-nb.lua
Normal file
17
roles/hyprland/files/hypr/workspaces/jk-nb.lua
Normal 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
|
||||
Reference in New Issue
Block a user