Force Decorations for GTK+ 3

Kwin Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

3
Score 67.1%
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.
MOD

ngraham

10 months ago

9 +

Report

leggettc18

1 year ago

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.

Report

darkomarko42

1 year ago

9 +

Report

a7med7amdy

1 year ago

9 +

Report

a7med7amdy

1 year ago

great work but not support all gtk3 apps!
I think the script only supports gnome apps, doesn't it?

Report

C

oldschoolthemer

1 year ago

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.

Report

avlas

10 months ago

Cozy is not working in my system. Could you please add it to the list?

Report

avlas

10 months ago

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"

Report

a7med7amdy

1 year ago

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.

Report

dummy

1 year ago

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"?

Report

C

oldschoolthemer

1 year ago

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.

Report

C

oldschoolthemer

1 year ago

You can go to ~/.config/gtk-3.0/settings.ini and add the following line:

gtk-decoration-layout:menu

Report

joaogma

1 year ago

how do I disable the csd buttons? I have the server-side decorations and the same csd buttons

Report

C

oldschoolthemer

1 year ago

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.

Report

joergister

1 year ago

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.

Report

joaopauloalbu

5 months ago

gtk-decoration-layout=:menu

Report

joergister

5 months ago

thx that helped.
I now use
gtk-decoration-layout=close,minimize,minimize:menu
Thats great

Report

dummy

1 year ago

How to install? This seems absolutely awesome.

Report

alex-l

1 year ago

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"

Report

12345678910
3
product-maker ngraham Oct 22 2018 9 excellent
+
product-maker darkomarko42 Jul 31 2018 9 excellent
+
product-maker a7med7amdy Jul 02 2018 9 excellent
+
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
version
0.2
updated May 15 2018
added May 15 2018
downloads 24h
12
page views 24h 13
System Tags linux unix