Force Decorations for GTK+ 3

Kwin Scripts

Source (required if based on other people's work): Add the source-code for this project on git.opendesktop.org

3
Score 60%
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

28 days ago

+

Report

leggettc18

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

3 months ago

+

Report

a7med7amdy

4 months ago

+

Report

a7med7amdy

4 months ago

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

Report

C

oldschoolthemer

4 months 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

a7med7amdy

4 months 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

avlas

28 days ago

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

Report

avlas

28 days 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

dummy

6 months 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

6 months ago

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

gtk-decoration-layout:menu

Report

C

oldschoolthemer

6 months 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

joaogma

6 months ago

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

Report

C

oldschoolthemer

6 months 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 months 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

dummy

6 months ago

How to install? This seems absolutely awesome.

Report

alex-l

6 months 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

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
0.2
updated May 15 2018
added May 15 2018
downloads today
0
page views today 2