Better window management
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user