Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Blur doesn't behave as expected

Open OBueckert opened this issue 2 years ago • 1 comments

This is not necessarily a bug. It is simply invalid behaviour. I am also using an NVidia GPU (GTX 1060 3GB), that you say is not officially supported by Hyprland, however, this issue might not caused by this.

Steps to reproduce: Enable blur with any blur_size or any amount of blur_passes.

Expected outcome: Blur effect to be applied to windows.

Noted outcome: Blur has little effect on the window. Does not appear as it should.

Examples: blur_size:2 blur_passes:2 image

blur_size:10 blur_passes:4 image

Could this be a shader issue? Some GL extension that is not supported? A configuration issue?

OBueckert avatar Sep 22 '22 02:09 OBueckert

It looks to me like you are applying your transparency via a windowrule in your hyprland.conf. Blur doesn't apply by default to windows using the opacity windowrule, and if you have transparency set in your terminal config as well you can wind up with the weird partial blur you are experiencing.

You will need to add decorations:blur_ignore_opacity=1 to your config to get proper blur with the windowrule. That said, I would highly recommend bypassing the opacity windowrule wherever possible and instead setting your opacity in the terminal's config.

For the record I use a 1660Ti, and I know we have a handful of 1060 users in the community, and I can confirm that the blur shader works fine with every nvidia card I've encountered.

taylor85345 avatar Sep 22 '22 03:09 taylor85345

Thanks, just setting decorations:blur_ignore_opacity=1 worked.

But then I followed your recommendation on setting the terminal's config rule (I set 'background_opacity 0.8' in my kitty config) instead of this and I found that it didn't actually make the window transparent (it just made it darker). If I force kitty to use XWayland, it works fine. I understand this is more of a kitty and wayland issue, but maybe you had an idea of why it doesn't work?

OBueckert avatar Sep 22 '22 19:09 OBueckert

probably an issue with your config, as kitty in wl works fine for me with opacity

vaxerski avatar Sep 22 '22 19:09 vaxerski

I don't know. I've dug through some other people's dotfiles, even copied them entirely and it doesn't make kitty transparent. image I tried enabling transparency with alacritty and there is no problem. I guess I'll have to ask the kitty community because this in no longer a Hyprland issue and the original issue is resolved. Can I close the issue?

OBueckert avatar Sep 23 '22 00:09 OBueckert

There is an issue with kitty transparency on Nvidia systems that cropped up in the last few weeks. I feel like it may be resolved already, so maybe test kitty-git and see if transparency works there.

taylor85345 avatar Sep 23 '22 01:09 taylor85345

Great! I switched to 'kitty-git' and transparency works as expected. Thanks for all the help!

OBueckert avatar Sep 23 '22 02:09 OBueckert

impressive stuff. would you mind sharing your dotfiles?

257 avatar Oct 08 '22 16:10 257