Files
community-plugins/hypr-screen-mirror/widget.luau
T
8a3bb49fdb feat: add hypr-screen-mirror (#66)
* feat(hypr-screen-mirror): setup plugin

* feat(hypr-screen-mirror): added socat watch on hyprland socket for monitor change

* feat(hypr-screen-mirror): added hyprctl commands for starting and stopping mirroring

* fix(hypr-screen-mirror): check if a mirror is active from monitor output during monitor update

* doc(hypr-screen-mirror): plugin readme and image

* fix(hypr-screen-mirror): issues from review

* fix(hypr-screen-mirror): separate observed state from mirror actions

---------

Co-authored-by: Lemmy <studio@quadbyte.net>
2026-07-21 23:57:54 -04:00

15 lines
252 B
Luau

local glyph = noctalia.getConfig("glyph")
local function render()
barWidget.setGlyph(glyph)
end
function update()
noctalia.setUpdateInterval(1000)
render()
end
function onClick()
noctalia.togglePanel("profidev/hypr-screen-mirror:panel")
end