You are not logged in.

#1 2019-10-19 08:47:04

ohnonot
...again
Registered: 2015-09-29
Posts: 4,129
Website

Some tweaks to make GTK3 run a little lighter. Also scrollbar fix.

This is just a collection of tweaks found elsewhere.

Here are those that go into ~/.config/gtk-3.0/settings.ini

# various tweaks: https://wiki.archlinux.org/index.php/GTK+

# CSD: no buttons at all, only a menu hamburger:
gtk-decoration-layout=menu:

gtk-menu-popup-delay=0

# only icons on toolbars, no text
gtk-toolbar-style = GTK_TOOLBAR_ICONS
# just smaller icons
gtk-icon-sizes="panel-menu=16,16:panel=16,16:gtk-menu=16,16:gtk-large-toolbar=16,16:gtk-small-toolbar=16,16:gtk-button=16,16"

# make scrollbar buttons behave like they used to
gtk-primary-button-warps-slider=false

# https://wiki.archlinux.org/index.php/GNOME/Tips_and_tricks#Disable_animations
# gsettings set org.gnome.desktop.interface enable-animations false
gtk-enable-animations=0

It's a little unclear if the above setting disables all animations: might be ebtter to enter this command, also:

gsettings set org.gnome.desktop.interface enable-animations false

Then there's a few tweaks for ~/.config/gtk-3.0/gtk.css, mostly to disable GTK3's own shadows, and client side decorations:

/*
https://wiki.archlinux.org/index.php/GTK%2B#Client-side_decorations
*/
.window-frame, .window-frame:backdrop {
 box-shadow: 0 0 0 black;
 border-style: none;
 margin: 0;
 border-radius: 0;
}

.titlebar {
 border-radius: 0;
}

.window-frame.csd.popup {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13);
}

.header-bar {
  background-image: none;
  background-color: #ededed;
  box-shadow: none;
}
/* You may want to use this if you don't like the double title.
GtkLabel.title {
    opacity: 0;
}*/


/* from oomox documentation (using with tiling wms) */
window decoration {
    margin: 0;
    border: 0;
}

/*
various tweaks: https://wiki.archlinux.org/index.php/GTK+
*/
/* Remove dotted lines from GTK+ 3 applications */
undershoot.top, undershoot.right, undershoot.bottom, undershoot.left { background-image: none; }

/*
testing linuxquestions.org/questions/linux-newbie-8/missing-scroll-bars-4175642135
*/
/*
scrollbar {
   -GtkScrollbar-has-backward-stepper: 1 !important;
   -GtkScrollbar-has-forward-stepper: 1 !important;
}
*/
/*
different version: https://www.linuxquestions.org/questions/linux-mint-84/v18-1-to-v19-1-differences-4175653745/#post5994161
*/
/*
scrollbar {
    -GtkScrollbar-has-backward-stepper: true;
    -GtkScrollbar-has-forward-stepper: true;
}

scrollbar slider {
    min-width: 14px;
    min-height: 14px;
}

scrollbar button {
    min-width: 20px;
    min-height: 20px;
}
*/

some are commented out. Experiment.

All in all, it really pays to have a good read of these two pages:
https://wiki.archlinux.org/index.php/GTK+
https://wiki.archlinux.org/index.php/GN … and_tricks

Offline

#2 2019-10-19 09:39:43

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 6,019
Website

Re: Some tweaks to make GTK3 run a little lighter. Also scrollbar fix.

Thanks! Maybe some candidates for setting as BL defaults?


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Online

#3 2019-10-25 23:16:44

obscurant
Member
Registered: 2017-08-06
Posts: 142

Re: Some tweaks to make GTK3 run a little lighter. Also scrollbar fix.

Thanks for this. Here's a couple of GTK3 tweaks I found recently, for some things that drive. me. batty.

In ~/.profile

Disable overlay scrollbars

export GTK_OVERLAY_SCROLLING=0

Fix mouse scrolling in some apps

export GDK_CORE_DEVICE_EVENTS=1

Offline

Board footer

Powered by FluxBB