Is it possible to disable shadows with Marco (Compton GPU compositor)?

Dear all,

Everything seems to be working fine with Marco and the Compton GPU compositor.

However, I am not a fan of shadows.

Can I disable them somehow?

Yours,

Robert

After using Marco and the Compton GPU compositor for a while, I noticed that most windows have properly subtle shadows which I can live with.

However, my concern is the shadow caused for the Albert quick launcher box.

Why does this window have such a much bigger shadow around it than all the other windows?

Indeed you can . IDK from mate tweak wath config does compton read but withough setting it mate-tweak it reads ~/.config/compton.conf . In the config you can specify witch windows you don’t wan’t to have a shadow on like this :

shadow-exclude = [
“name = ‘Notification’”,
“class_g = ‘Conky’”,
“class_g ?= ‘Notify-osd’”,
“class_g = ‘Cairo-clock’”,
“_GTK_FRAME_EXTENTS@:c”
];

or you can disable all shadows by chaning or adding :
shadow= false;

You can see default config for example in :
/etc/xdg/compton.conf

2 Likes

Dear @IvCHo,

Thank you very much!

I followed your advice and added shadow=false; to the config file in ~/.config/compton.conf and rebooted my system.

However, windows still show a shadow.

Why could that be?

Well I saw the content of the marco-compton script from mate-tweak .
It appears it is setting the default config as
marco-compton.conf in ~/.config/
So if you set Window manager in mate-tweak to
marco (compton gpu compositor) then you should rename
compton.conf to marco-compton.conf

Also you don’t have to restart the system for changes to take effect just
open mate-tweak and set the wm to marco (no composite) then back to marco (compton gpu composite)

2 Likes

@IvCHo, thank you so much!

I was finally able to disable all shadows with the following ~/.config/marco-compton.conf:

shadow = false;

Hello, can you help me?
Where do I add this? what line? shadow = false;

Well I use this config, hope it works out.

backend = “glx”;
vsync = “opengl-swc”;
detect-rounded-corners = true;
paint-on-overlay = true;
glx-no-stencil = true;
glx-swap-method = “undefined”;
unredir-if-possible = true;
inactive-opacity-override = true;
mark-wmwin-focused = true;
shadow = false;

I was looking for a way to disable the shadows too. It work nicely. Thank you.