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>
This commit is contained in:
ProfiDev
2026-07-21 23:57:54 -04:00
committed by GitHub
co-authored by Lemmy
parent 58b6c81f09
commit 8a3bb49fdb
7 changed files with 398 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
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