Files
hyprland-dotfiles/workspaces.lua
T
2026-08-12 22:58:34 -07:00

68 lines
1.3 KiB
Lua

local hyper = "MOD3"
local bili_space = "name:bilibili"
local im_space = "name:im"
-- Master layout configuration
hl.config({
master = {
mfact = 0.80,
orientation = "left",
-- New windows go into the background/slave column,
-- rather than replacing your master.
new_status = "slave",
},
})
-- Dedicated workspace
hl.workspace_rule({
workspace = bili_space,
layout = "master",
layout_opts = {
orientation = "left",
},
persistent = true,
monitor = "DP-3"
})
hl.workspace_rule({
workspace = im_space,
layout = "master",
layout_opts = {
orientation = "left",
},
persistent = true,
monitor = "DP-3"
})
hl.bind(
hyper .. " + F1",
hl.dsp.focus({ workspace = bili_space }),
{ description = "Switch to bilibili workspace" }
)
hl.bind(
hyper .. " + CTRL + F1",
hl.dsp.window.move({ workspace = bili_space }),
{ description = "Send focused window to bilibili workspace" }
)
hl.bind(
hyper .. " + F2",
hl.dsp.focus({ workspace = im_space }),
{ description = "Switch to im workspace" }
)
hl.bind(
hyper .. " + CTRL + F2",
hl.dsp.window.move({ workspace = im_space }),
{ description = "Send focused window to im workspace" }
)
hl.bind(
hyper .. " + M",
hl.dsp.layout("swapwithmaster master ignoremaster"),
{ description = "Promote to master" }
)