KZDKM / Hyprspace

Workspace overview plugin for Hyprland
GNU General Public License v2.0
285 stars 9 forks source link

Feature request: add icons in overlay #33

Open kooskaspers opened 3 weeks ago

kooskaspers commented 3 weeks ago

It would be nice to see the app's icon in the overlay. It makes it a bit more easier to recognize which app is where. Imagine red boxes are the app's icon:

image

KZDKM commented 3 weeks ago

Thank you, interesting suggestion, I suppose this is doable... The challenge is implementing an icon finder based on the icon theme. I would have to look into the code of ags and waybar.

kiecla commented 1 day ago

I think waybar just gets the icon from the windows class, and maps that to a string the user provides (which can be an icon for the program if using an icon font) I think hyprswitch has something closer to what this feature request is about https://github.com/H3rmt/hyprswitch https://github.com/H3rmt/hyprswitch/blob/main/imgs/image_2.png I can't read Rust very well, but I think this is the relevant code for retrieving the icons https://github.com/H3rmt/hyprswitch/blob/main/src/icons.rs