Description: Forces server-side decorations for a list of common GTK+ 3 applications which use client-side decorations (also known as CSDs and headerbars). For the best look, use Breeze GTK.
Hi, great work on this, where it works it works great! Do you think you could get it to work with a podcast app named Vocal and the Solus Software Center? It works great with everything else I use atm.
No, it supports every application I can get my hands on. Unfortunately, there's no approachable way to do this generally for any GTK CSD application, so they must all be added manually. In fact, several GNOME applications are not yet supported since they're more difficult to program rules for.
If you could tell me which applications aren't working for you, I'll gladly add them to the list ASAP. I'm also hard at work on Breeze GTK itself, so while it may take some time, I'll be sure to give every application I can find a serious look.
You can add pulsseefects to the list, I hope I could help more but I don't use many GTK applications.
I can notice another problem, when I maximize and then re-minimize the title bar is lost.
I realized it's quite easy to do it by editing $HOME/.local/share/kwin/scripts/force-decorations-gtk3/contents/code/main.js
I added Cozy to the list myself: || client.resourceClass == "com.github.geigi.cozy"
If used, the GTK buttons are still shown... how to make it look like in your screenshot?
Also what is the difference from the functionality that is shipped with KDE called "Forces Window Decorations on GTK+ window"?
The 'Forces Window Decorations on GTK+ window' script hasn't worked for some time because of changes in GTK 3. This script is more or less meant to replace it, although it does function rather differently since there is no auto-detection.
You can go to ~/.config/gtk-3.0/settings.ini and add the following line:
gtk-decoration-layout:menu
This could be set by default on distros that use Plasma by default once this script is determined to be up to snuff.
this doesn't work for me under kubuntu 18.04. My gnome-disk-utility still has the gtk decoration and on top of that the plasma window decoration. I don't know how to remove the gtk decoration since this "go to ~/.config/gtk-3.0/settings.ini and add the following line:
gtk-decoration-layout:menu"
did't work for me.
Hi, you can:
* Install ocs-url that would let you install moslty everything from this site with just a click https://github.com/opendesktop/ocs-url/wiki/How-to-install
or
* you can go to System Settings > Kwin Scripts > Get New... and search for this one typing "Force Decorations for GTK+ 3"
Ratings & Comments
19 Comments
9 +
Hi, great work on this, where it works it works great! Do you think you could get it to work with a podcast app named Vocal and the Solus Software Center? It works great with everything else I use atm.
9 +
9 +
great work but not support all gtk3 apps! I think the script only supports gnome apps, doesn't it?
No, it supports every application I can get my hands on. Unfortunately, there's no approachable way to do this generally for any GTK CSD application, so they must all be added manually. In fact, several GNOME applications are not yet supported since they're more difficult to program rules for. If you could tell me which applications aren't working for you, I'll gladly add them to the list ASAP. I'm also hard at work on Breeze GTK itself, so while it may take some time, I'll be sure to give every application I can find a serious look.
You can add pulsseefects to the list, I hope I could help more but I don't use many GTK applications. I can notice another problem, when I maximize and then re-minimize the title bar is lost.
Cozy is not working in my system. Could you please add it to the list?
I realized it's quite easy to do it by editing $HOME/.local/share/kwin/scripts/force-decorations-gtk3/contents/code/main.js I added Cozy to the list myself: || client.resourceClass == "com.github.geigi.cozy"
If used, the GTK buttons are still shown... how to make it look like in your screenshot? Also what is the difference from the functionality that is shipped with KDE called "Forces Window Decorations on GTK+ window"?
You can go to ~/.config/gtk-3.0/settings.ini and add the following line: gtk-decoration-layout:menu
The 'Forces Window Decorations on GTK+ window' script hasn't worked for some time because of changes in GTK 3. This script is more or less meant to replace it, although it does function rather differently since there is no auto-detection.
how do I disable the csd buttons? I have the server-side decorations and the same csd buttons
You can go to ~/.config/gtk-3.0/settings.ini and add the following line: gtk-decoration-layout:menu This could be set by default on distros that use Plasma by default once this script is determined to be up to snuff.
this doesn't work for me under kubuntu 18.04. My gnome-disk-utility still has the gtk decoration and on top of that the plasma window decoration. I don't know how to remove the gtk decoration since this "go to ~/.config/gtk-3.0/settings.ini and add the following line: gtk-decoration-layout:menu" did't work for me.
gtk-decoration-layout=:menu
thx that helped. I now use gtk-decoration-layout=close,minimize,minimize:menu Thats great
How to install? This seems absolutely awesome.
Hi, you can: * Install ocs-url that would let you install moslty everything from this site with just a click https://github.com/opendesktop/ocs-url/wiki/How-to-install or * you can go to System Settings > Kwin Scripts > Get New... and search for this one typing "Force Decorations for GTK+ 3"