jonaburg / picom

A lightweight compositor for X11 (previously a compton fork)
Other
956 stars 99 forks source link

Can we have rounded shadows? #38

Open lillemets opened 3 years ago

lillemets commented 3 years ago

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; }
}
Axarva commented 3 years ago

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

thorlucas commented 3 years ago

I would also like to see this.

hrqmonteiro commented 3 years ago

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

lillemets commented 3 years ago

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

hrqmonteiro commented 3 years ago

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.

paulhersch commented 3 years ago

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?

lillemets commented 3 years ago

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.

paulhersch commented 3 years ago

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)

hrqmonteiro commented 3 years ago

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?

alba4k commented 1 year ago

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