I am using KDE Plasma, Currently the taskbar panel is looking like Windows. Can we make it transparent ? If Yes, How ?
Makes panels transparent without altering the theme.
Go to System Settings > Window Management | Window Rules. Press New... button. Give some description to the new rule,
Dock Transparency, for example. Then select only
Dock (panel) in "Window types:" field. Switch to the last tab and set these options:
Press OK then Apply new settings. Change 65% to whatever you see fit.
N.B. This method makes other objects on the panel (i.e buttons and text) more transparent, so don't use too low values in that case.
It will require altering the default theme. 2nd method makes panels semi-transparent and this will also affect all drop-down menus and tooltips related to the panel.
Make a backup of
/usr/share/plasma/desktoptheme/default/metadata.desktop first. Open this file with root rights. Find the
[ContrastEffect] section and change
enabled=true in it to
Kudos to reddit guys for the idea.
First of all check System Settings > Plasma Style. The default style for Kubuntu 20.04 is Kubuntu. So we should alter
/usr/share/plasma/desktoptheme/kubuntu/metadata.desktop. If you're using another style, alter
metadata.desktop from the appropriate folder in
/usr/share/plasma/desktoptheme/ instead. Back-up it first.
[ContrastEffect] section and increase
contrast parameter in it. I find
contrast=2.0 most appropriate (you can try another values if you like). Blur effect will be applied automatically. Re-login to make it work. You should see something like this:
And don't forget that "Blur" effect can be altered in System Settings > Workspace Behavior | Desktop Effects.
If you don't like blur effect and wish to obtain the real transparency effect then you should add several more lines into
metadata.desktop file related to your style:
Now it should look like this:
This parameter was added in Plasma 5.57 according to this and as long as it stays there, it should work without any additional widgets.
Edit: Please see whtyger's answer for changing panel transparency without the need to installing a new theme.
whtyger's answer provides the way to change panel transparency of your existing theme.
If you want to try other themes offering transparency, open System Settings > Appearance > Workspace Theme > Desktop Theme and click on Get New Themes. In the window that opens, enter something like panel transp in the search box and choose the sort order you want.
I came across one:
Of course, you'll need to find a theme that's developed for your version of KDE Plasma.
Note that the recent Plasma 5.22+ setting of adaptive and translucent panel doesn't provide full transparency, far from it.
But there is Panel Transparency Button, which provides exactly what is expected. (On KDE store the link seems to be dead at the time I am editing this answer, but the Github link is this. In case the widgets become unavailable write me a comment hereunder, I might post a link to the packages I have.) — See EDIT at the end.
The widget can be installed and added through the "add widgets" interface
After that, in 20.04 edit panel to make the button visible, but close the editing to use the button.
The button is hidden after "finishing customizing layout"
With a Breeze Dark style:
This is not maintained anymore by the author, so it may stop working with newer Plasma versions, although I have seen it work in Plasma 5.23 and even 5.24. I hope somebody forks this and keeps it updated.
It is sometimes affected by a bug where the button stays always visible. I have seen this in Kubuntu 20.04 with Plasma 5.18, but also in 22.04 with 5.24. In that case, the situation is that
it needs widgets to be locked in order for the button to be hidden, and
it might require installation of the <5.18 version of the widget, in case the other one doesn't work.
Plasma 5.18 (and above) has hidden the "lock widgets" toggle. To replace it, you may use this solution, namely the command
qdbus org.kde.plasmashell /PlasmaShell evaluateScript 'lockCorona(!locked)', which can be easily added to a launcher on the desktop (Create-New-Link to application - and then possibly add the launcher to
~.local/share/applications). It acts like a toggle. In 20.04 one can also use Win7ShowDesktop button widget, which has that "lock widgets" option integrated in its own options (beside providing what it says, a "Show desktop" panel button that is more discrete/slim than the default one). But that widget doesn't work in later versions, at least not in 22.04 with Plasma 5.24. (Updating to 22.04 that widget would not unlock the desktop, which was thus stuck to locked mode, and I had to use the above command.)