H3rmt / hyprswitch

A CLI/GUI that allows switching between windows in Hyprland
https://crates.io/crates/hyprswitch
MIT License
220 stars 7 forks source link

Live thumbnails #26

Open Kommynct opened 7 months ago

Kommynct commented 7 months ago

Since hyprland has single-window capture support, there should be a way to get live thumbnails, which would be quite nice

H3rmt commented 7 months ago

I don't know any way to obtain the currently rendered output of a window under Hyprland/Wayland

Kommynct commented 7 months ago

I was under the impression that single window capture with a restore token would be enough to enable this, sorry if that was incorrect

H3rmt commented 7 months ago

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.

SergioRibera commented 7 months ago

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

H3rmt commented 6 months ago

I will leave this issue open, in case anyone has any ideas on how to approach/implement this

littleblack111 commented 2 weeks ago

i think a hyprland plugin will do the trick. Add a hook on render?

H3rmt commented 1 week ago

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)

littleblack111 commented 1 week ago

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