hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
21.8k stars 905 forks source link

Feature Request: Allow setting custom blur amount (size/passes) in 'blur' layer/window rule. #6775

Open TheFrankyDoll opened 4 months ago

TheFrankyDoll commented 4 months ago

Description

Currently, all blur settings are configured in decoration:blur, where blur size and passes are set globally. Hyprland is cool, so it allows us to add blur to windows and layers even if they don't support it natively - using a blur layerrule/windowrule, like so:

layerrule = blur, waybar # Add blur to waybar
layerrule = blurpopups, waybar # Blur waybar popups too!
layerrule = ignorealpha 0.2, waybar # Make it so transparent parts are ignored

Let's say I want my terminal to be almost fully transparent with very little blur, but would prefer my waybar and wofi to have a 'frosted glass' texture, something similar to how win11 does its taskbar. Unfortunately, it seems like I cannot have both in a current hyprland version since blur amount is set only globally without a way to overwrite it per window/layer.

I'd like to be able to (optionally) set blur size/passes in my rules like so:

layerrule = blur [s] [p], LAYER - Add blur with size s and p number of passes to LAYER layerrule = blur, LAYER - Add blur to LAYER, with size and number of passes controlled by values in decoration:blur, i.e default.

I think this addition will improve customization and overall could be a neat quality of life improvement.

vaxerski commented 4 months ago

not a great idea for performance