Files
felis b9c7680124
Jobs to run on push to main / update-catalog (push) Canceled after 0s
Jobs to run on push to main / update-issue-templates (push) Canceled after 0s
Validate Plugin Manifests / validate (push) Canceled after 0s
add stage layout type
2026-08-13 20:36:44 -07:00

29 lines
527 B
Luau

--!nonstrict
local glyphs = {
dwindle = "layout-grid",
master = "layout-sidebar",
stage = "square",
}
local current = "dwindle"
local function render()
barWidget.setGlyph(glyphs[current] or "layout-grid")
barWidget.setText(current:sub(1, 1):upper() .. current:sub(2))
end
noctalia.state.watch("layout", function(value)
if value then
current = value
render()
end
end)
function onClick()
noctalia.runAsync("noctalia msg plugin maddingo/hypr-layout-switcher:poller all cycle")
end
render()