Hi guys I have a question: How can I enable the panels shadow with the compositor on?
I see is missing in the GTK3 version but in Ubuntu MATE 16.04 the shadows appear.
Hi guys I have a question: How can I enable the panels shadow with the compositor on?
I see is missing in the GTK3 version but in Ubuntu MATE 16.04 the shadows appear.
Are you using Compton or Compiz?
I have tried both and no panel shadow showing
Okay, here is what I do to get both shadows and a bit of transparencies in the menus.
Go to Mate Tweak and set the window manager to Marco with no compositing of any kind.
Paste the following into a blank Pluma file
sleep 10
compton
Save it as âstart-compton.shâ in your home folder
Open Caja and right click the file you just made and choose âpropertiesâ then the âpermissionsâ tab.
Check the âallow executing file as programâ checkbox
Then close the properties dialog box
Now open System/Preferences/Personal/Startup Applications and add the bash script you just saved in your home folder.
Now copy and paste the following into a new blank Pluma file
#################################
#################################
backend = âglxâ;
#################################
#################################
glx-no-stencil = true;
glx-copy-from-front = false;
glx-swap-method = âundefinedâ;
#################################
#################################
shadow = true;
no-dnd-shadow = true;
#no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 5;
shadow-offset-x = -5;
shadow-offset-y = -5;
shadow-opacity = 0.5;
shadow-exclude = [
â! name~=âââ,
âname = âNotificationââ,
âname = âPlankââ,
âname = âDockyââ,
âname = âKupferââ,
âname = âxfce4-notifydââ,
âname *= âVLCââ,
âname *= âcomptonââ,
âname *= âChromiumââ,
âname *= âChromeââ,
âname *= âFirefoxââ,
âclass_g = âConkyââ,
âclass_g = âKupferââ,
âclass_g = âSynapseââ,
âclass_g ?= âNotify-osdââ,
âclass_g ?= âCairo-dockââ,
âclass_g ?= âXfce4-notifydââ,
âclass_g ?= âXfce4-power-managerââ
];
shadow-ignore-shaped = false;
#################################
#################################
menu-opacity = .9;
inactive-opacity = .9;
active-opacity = 1;
frame-opacity = .9;
inactive-opacity-override = false;
alpha-step = 0.06;
blur-background-fixed = false;
blur-background-exclude = [
âwindow_type = âdockââ,
âwindow_type = âdesktopââ
];
#################################
#################################
#fading = true;
fade-delta = 4;
fade-in-step = 0.03;
fade-out-step = 0.03;
fade-exclude = [ ];
#################################
#################################
mark-wmwin-focused = true;
mark-ovredir-focused = true;
use-ewmh-active-win = true;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = âopengl-swcâ;
dbe = false;
paint-on-overlay = true;
sw-opti = false;
unredir-if-possible = true;
focus-exclude = [ ];
detect-transient = true;
detect-client-leader = true;
#################################
#################################
wintypes:
{
tooltip =
{
# fade: Fade the particular type of windows.
fade = true;
# shadow: Give those windows shadow
shadow = false;
# opacity: Default opacity for the type of windows.
opacity = 0.85;
# focus: Whether to always consider windows of this type focused.
focus = true;
};
};
Save the file as âcompton.confâ in â/home/username/.configâ (you will need to show hidden files and folders in order to see the â.configâ folder)
Where âusernameâ is your actual username.
Thatâs it, if you now log out and back in, you should find you have panel and menu shadows plus some transparencies on your menus. Though, it will only come on after a few seconds delay. That was what the âsleepâ command was for in the bash script. This is to minimize the risk of the system not picking the script up at login due to doing many other jobs at the same time.
If you donât want as much transparency or none at all, edit the âcompton.confâ file you just made. You should be able to see where the values are for transparencies. But, let me know if you canât find them.
If you need more help or that I explain anything I have mentioned in more detail I will be happy to. So, please do let me know.
Also, just let me know if you tried it and it worked out well for you
AhâŚjust one caveat
I have implemented this on 16.04. Thus, though I cannot confirm for a fact this will work on 16.10, I see no reason why it wouldnât. But, I thought I should mention it.
In Ubuntu-MATE 16.04 mate-panel had shadow, but it was sometimes tricky to make it appear. In 16.10 it appears that there is no panel shadow at all, as if mate-panel was excluded from casting shadow. There is no shadow under panel using marco, compiz, mutter. There is option to have shadow using compton, but itâs not a perfect solution (shadow is on top of every window under panel).
So I have question - will panel shadow be back in 17.04?
If you use the comton.conf file I mentioned up-thread, it should work
I ran across this:
https://wiki.gentoo.org/wiki/MATE#How_do_I_enable_the_panel_shadow.3F
Havenât tried it. Looks to be a bit different from our .desktop file:
Icon=mate-panel
Exec=mate-panel
StartupNotify=true
Terminal=false
X-MATE-Bugzilla-Bugzilla=MATE
X-MATE-Bugzilla-Product=mate-panel
X-MATE-Bugzilla-Component=general
X-MATE-Bugzilla-Version=1.12.2
Categories=GTK;System;Core;
OnlyShowIn=MATE;
NoDisplay=true
X-MATE-AutoRestart=true
X-MATE-Autostart-Phase=Panel
X-MATE-Provides=panel
X-MATE-Autostart-Notify=true
Steve - you're right, we can make compton to draw shadow under panel, but when we maximize any window this panel shadow is also cast on window border (like in this screenshot below)
so compton would be a good solution for this problem, but this little problem with shadow cast on maximized window is annoying.
And in 16.04 problem was different, and it could be solved, like V3xx mentioned, by delaying panel to appear after other parts of desktop - because that problem was race condition (i think between panel and caja/nautilus - this bug was first introduced in Ubuntu 10.04).
Problem in 16.10 is not about race condition, because that old solution no longer works. I suspect that something was changed when MATE was ported to GTK3, something in panel or Marco.
AhâŚI hadnât noticed that because I am using a dark theme
Does anyone knows if panel shadow bug is fixed in MATE 1.18? I know 1.18 was just released, but maybe someone tried it already?
@Dolsilwa; No, is not âfixedâ I donât think is a bug maybe doesenât work with GTK3 or might work but is not implemented, normaly should show atleast with compiz⌠look at unity uses compiz also is gtk3 and has the shadow in the top bar
Iâve been searching and searching without luck⌠I hate that flat look, maybe some of the Devâs has an idea how can we enable it.
Starting to wonder if Iâm gonna change Mate Dekstop to other Desktop