Ferdi265 / wl-mirror

a simple Wayland output mirror client
GNU General Public License v3.0
304 stars 14 forks source link

mirror window watermark #49

Open jkbr-19 opened 3 weeks ago

jkbr-19 commented 3 weeks ago

I often find myself confused when messing with wl-mirror. I sometimes can't tell when where the wl-mirror is and where the real windows are. So I would find the following related features useful.

while typing this i realize reverse features might be useful as well

Ferdi265 commented 3 weeks ago

I often find myself confused when messing with wl-mirror. I sometimes can't tell when where the wl-mirror is and where the real windows are. So I would find the following related features useful.

* a permanent watermark, available as an option, with a set spot to mark the wl-mirror window

* a temporary visual signal, to mark the wl-mirror window. Could be triggered by a keyboard shortcut or anytime mirroring begins

This is currently quite a lot to implement, since wl-mirror at the moment has no UI toolkit and no input handling, which would add quite a lot of boilerplate. Simple keyboard shortcuts on the window or mouse-based region selection are what I want to add to wl-mirror in the long run though, so at some point the infrastructure needed for this will be there, likely not in the near future though.

while typing this i realize reverse features might be useful as well

* a visual signal, briefly flashing on the borders of the window/region/monitor being mirrored

The reverse is harder to implement, since wl-mirror doesn't have any special privileges and can only do what a normal Wayland client can do. On wlroots compositors, a recording symbol could be created on the captured output with something like wlr-layer-shell, but this would only work on the whole monitor and not on a window / region.

Good suggestions overall though, but both not easy to simply implement.