You are not logged in.

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

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

A Collection of GTK Tweaks, Fixes & Settings

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

Last edited by ohnonot (Today 07:32:02)

Offline

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

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

Re: A Collection of GTK Tweaks, Fixes & Settings

Thanks! Maybe some candidates for setting as BL defaults?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

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

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

Re: A Collection of GTK Tweaks, Fixes & Settings

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

#4 Today 07:33:40

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

Re: A Collection of GTK Tweaks, Fixes & Settings

I changed the title of the thread to make it a catch-all for all sorts of GTK tweaks.
Here's another one:

Uniform look for user & root GTK windows (e.g. synapic):

$ sudo su -
# cd
# ln -s /home/<your_user_name>/.gtkrc-2.0
# mkdir -p .config/gtk-3.0
# cd .config/gtk-3.0
# ln -s /home/<your_user_name>/.config/gtkrc-3.0/settings.ini
# exit
$

Last edited by ohnonot (Today 07:34:41)

Offline

#5 Today 11:30:15

damo
....moderator....
Registered: 2015-08-20
Posts: 5,547

Re: A Collection of GTK Tweaks, Fixes & Settings

^ Just pointing out that root/user themes are different by design in BL, so you are supposed to know what you are doing!


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#6 Today 13:03:29

clusterF
Member
Registered: 2019-05-07
Posts: 502

Re: A Collection of GTK Tweaks, Fixes & Settings

^ by uniform look, does this mean root and user themes look identical? If so that is probably not a good idea. Id rather have all my root gui have the raleigh look and have bog stock icons like gnome or adwaita.


"Ad Astra Incrementis"

git: clusterF

Offline

Board footer

Powered by FluxBB