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

5
6 .7
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.
9
MOD

ngraham

2 years ago

9 +

Report

leggettc18

2 years 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

9

darkomarko42

2 years ago

9 +

Report

9

a7med7amdy

2 years ago

9 +

Report

9

a7med7amdy

2 years ago

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

Report

C

oldschoolthemer

2 years 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

2 years ago

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

Report

avlas

2 years 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

9

a7med7amdy

2 years 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

2 years 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

2 years 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

2 years ago

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

gtk-decoration-layout:menu

Report

joaogma

2 years ago

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

Report

C

oldschoolthemer

2 years 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

2 years 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

1 year ago

gtk-decoration-layout=:menu

Report

joergister

1 year ago

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

Report

dummy

2 years ago

How to install? This seems absolutely awesome.

Report

alex-l

2 years 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
+
Be the first to comment
bialyikar
Oct 24 2020
ricosun
Jul 24 2020
ngraham
Oct 22 2018
darkomarko42
Aug 23 2018
a7med7amdy
Jun 26 2018
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2
updated May 15 2018
added May 15 2018
downloads 24h
12
mediaviews 24h 0
pageviews 24h 15
System Tags linux unix