Better window management

This commit is contained in:
2026-08-16 16:42:16 +01:00
parent f4f40442a8
commit aaf8ae59df
3 changed files with 104 additions and 53 deletions
+18
View File
@@ -77,3 +77,21 @@ hl.bind('switch:on:Lid Switch', function()
setup_monitors()
end)
hl.on('monitor.focused', function()
local workspace = hl.get_active_workspace()
if hl.get_active_special_workspace() then
workspace = hl.get_active_special_workspace()
end
if not workspace then
return
end
local layout = workspace.tiled_layout
local monitor = hl.get_active_monitor()
if monitor.description == 'BOE NE160QDM-NZ6' then
hl.workspace_rule { workspace = 'name:' .. tostring(workspace.name), layout = 'monocle' }
end
end)