allow borders to be configured using lua

This commit is contained in:
Squibid 2026-03-01 21:28:53 -05:00
parent b24c16b34e
commit e6a45f91b6
Signed by: squibid
GPG key ID: BECE5684D3C4005D
3 changed files with 68 additions and 3 deletions

View file

@ -96,6 +96,15 @@ local master = function()
end
})
mez.hook.add("ViewMapPre", {
callback = function(v)
mez.view.set_border(v, {
color = "#ff0000",
width = 4,
})
end
})
mez.hook.add("ViewUnmapPost", {
callback = function(v)
if v == ctx.tags[ctx.tag_id].master then