mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
allow borders to be configured using lua
This commit is contained in:
parent
b24c16b34e
commit
e6a45f91b6
3 changed files with 68 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue