hyprwm / hyprland-plugins

Official plugins for Hyprland
BSD 3-Clause "New" or "Revised" License
573 stars 60 forks source link

[Plugin Request] Colour key opacity #208

Open Jademalo opened 3 months ago

Jademalo commented 3 months ago

I'm not exactly sure how feasible this is, but I would really like to see the ability to set a colour/colours for the opacity in a given window.

As it is now, adjusting opacity also makes every other element such as text or graphics translucent. This means that for nice glass effects you need to be able to set them within a given window's own config, and there are a few things such as Discord or Spotify where this isn't possible without modifications that technically break the terms of service.

I would like for there to be a plugin where you can set a window rule to only apply the opacity/blur effects to a specific colour or colours. In the examples of Spotify and Discord, the main core of the UI is only made up of ~3 distinct shades of grey, and as such if those three specific colours were the only ones affected by the per window opacity multiplier it would be trivial to create glass effects for unthemeable applications.

Thanks!