picom icon indicating copy to clipboard operation
picom copied to clipboard

Can we have rounded shadows?

Open lillemets opened this issue 4 years ago • 10 comments

Currently with rounded corners, shadows are sill square. So the visual effect looks broken. Is there any way to have rounded shadows as well?

210209_174607

Rounded shadows are already supported by sdhand's fork but that doesn't support kawase blur.

Configuration:

# Shadow
shadow = true;
shadow-radius = 20;
shadow-offset-x = -20;
shadow-offset-y = -20;
shadow-opacity = 0.5;
shadow-exclude = [
#	"window_type = 'dock'",
  "class_g = 'i3-frame'"
];

# Opacity
inactive-opacity = 1;
active-opacity = 1;
frame-opacity = 1;
inactive-opacity-override = false;
inactive-dim = 0;

# Blur
blur-method = "dual_kawase";
blur-size = 20;
blur-background-exclude = [
#	"window_type = 'dock'",
# "window_type = 'desktop'"
];

# Rounded
corner-radius = 12;
rounded-corners-exclude = [
	"window_type = 'dock'",
  "class_g = 'i3-frame'"
];

# Fading
fading = true;
fade-delta = 2; 
fade-in-step = 0.02;
fade-out-step = 0.02;
no-fading-openclose = false;
fade-exclude = [];

# Other
backend = "glx";
xinerama-shadow-crop = true;
wintypes: {
    dock = { full-shadow = true; }
}

lillemets avatar Feb 09 '21 15:02 lillemets

I faced this same issue in ibhagwan’s fork of picom as well... no clue yet on what’s going on

Axarva avatar Feb 20 '21 17:02 Axarva

I would also like to see this.

thorlucas avatar Mar 01 '21 20:03 thorlucas

Yes this is awful, i am not using this fork just because of this. Drives me crazy.

hrqmonteiro avatar Mar 16 '21 02:03 hrqmonteiro

After many months of struggle I finally discovered that this effect is caused by the --experimental-backends flag when running Picom.

lillemets avatar May 09 '21 12:05 lillemets

After many months of struggle I finally discovered that this effect is caused by the --experimental-backends flag when running Picom.

If i don't use it, it's the same thing for me. The shadows are still now rounded.

hrqmonteiro avatar May 09 '21 13:05 hrqmonteiro

After many months of struggle I finally discovered that this effect is caused by the --experimental-backends flag when running Picom.

have you been using the normal picom version?

paulhersch avatar May 26 '21 08:05 paulhersch

After many months of struggle I finally discovered that this effect is caused by the --experimental-backends flag when running Picom.

have you been using the normal picom version?

I tried the yshui/picom fork and several others with some different configurations. The only thing that fixed the problem was removing that flag. Unfortunately, without the flag this fork here will lose the transitions, which are kind of the entire point of it. I've now switched to another fork.

lillemets avatar May 27 '21 18:05 lillemets

I've now switched to another fork. understandable in your case. I dont use rounded corners and basically jumped from vanilla picom-git to this one for the transitions. I hope the transitions get merged some time tho (as well as Your rounded shadows)

paulhersch avatar May 27 '21 18:05 paulhersch

After many months of struggle I finally discovered that this effect is caused by the --experimental-backends flag when running Picom.

have you been using the normal picom version?

I tried the yshui/picom fork and several others with some different configurations. The only thing that fixed the problem was removing that flag. Unfortunately, without the flag this fork here will lose the transitions, which are kind of the entire point of it. I've now switched to another fork.

Which fork, may i ask?

hrqmonteiro avatar May 29 '21 11:05 hrqmonteiro

Theoretically, this fixes that issue, but it's now unmaintained and really, really old

alba4k avatar Jan 29 '23 10:01 alba4k