Force Decorations for GTK+ 3

Kwin Scripts

Source i (link to git-repo or to original if based on someone elses unmodified work):

Add the source-code for this project on opencode.net

6
Become a Fan
6.5

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.

Ratings & Comments

19 Comments

ngraham

9 +

leggettc18

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.

darkomarko42

9 +

a7med7amdy

9 +

a7med7amdy

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

oldschoolthemer

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.

a7med7amdy

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.

avlas

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

avlas

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"

dummy

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

oldschoolthemer

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

oldschoolthemer

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.

joaogma

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

oldschoolthemer

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.

joergister

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.

joaopauloalbu

gtk-decoration-layout=:menu

joergister

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

dummy

How to install? This seems absolutely awesome.

alex-l

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"

Pling
0 Affiliates
Details
license
version 0.2
updated
added
downloads 24h 2
mediaviews 24h 0
pageviews 24h 4

Other Kwin Scripts:

Snap To Deco
thomas12777
last update date: 11 years ago

Score 5.0

Unminimize windows w/o taskbar entry
thomas12777
last update date: 11 years ago

Score 5.0

MiniStack
faho
last update date: 11 years ago

Score 5.0

Debug Clients
thomas12777
last update date: 11 years ago

Score 5.0

TIL3R
causa-prima
last update date: 11 years ago

Score 5.7

Spam Transients
thomas12777
last update date: 10 years ago

Score 5.0



System Tags