Open Kommynct opened 7 months ago
I don't know any way to obtain the currently rendered output of a window under Hyprland/Wayland
I was under the impression that single window capture with a restore token would be enough to enable this, sorry if that was incorrect
I don't know anything about capturing windows under Wayland. I always thought that you need explicit confirmation by the user for each window to capture it. Of course, it would be cool to display a live preview, but this should happen without the need for any user confirmation. @Kommynct if you have any ideas on how to achieve this, I would greatly appreciate your help.
Taking screenshots would be very complicated due to the issue of the HyprSwitch application overlaying, and in the screenshot, it would align with the overlaid app, for taking screenshots in Wayland, I use this libwayshot
I will leave this issue open, in case anyone has any ideas on how to approach/implement this
i think a hyprland plugin will do the trick. Add a hook on render?
This project can't be used as a Hyprland plugin, as they need to be written in C++ (as far as I know).
If writing plugins in rust will be possible I would happily transform this into a plugin. (this would also remove some problems with the current way of configuring keybinds)
no, i meant like as a extention, no need to convert the whole project, just add a plugin for this function to work, if cant connect to that plugin then fallback to normal icon thumnail
Since hyprland has single-window capture support, there should be a way to get live thumbnails, which would be quite nice