LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-23-2017, 10:24 PM   #1
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 3,350
Blog Entries: 1

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
Where does global GTK3 customization belong?


I've found several places that instruct how to personalize per user (in ~/.config) to get back functionality lost in GTK3 (e.g.), but nothing I can grok to explain how to do it systemwide. This produces the desired result on a per user basis via ~/.config/gtk-3.0/gtk.css:
Code:
*{
-GtkScrollbar-has-backward-stepper: 1;
-GtkScrollbar-has-forward-stepper: 1;
-GtkScrollbar-has-secondary-backward-stepper: 1;
}
Where can I put this (make it systemwide default) so that all KDE, KDE3 and TDE users who don't personalize automatically recover the scrollbar buttons that were normal in GTK2 and older themes but are missing from all GTK3 themes I've sampled (including the Adwaita default)?
 
Old 03-24-2017, 03:02 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 20 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918Reputation: 2918
I'm not sure about other distros/themes, but on Mint I edit the file /usr/share/themes/Mint-X/gtk-3.0/gtk-widgets.css.

Hopefully you can find something even more global than that though.
 
Old 03-24-2017, 04:47 AM   #3
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 3,350

Original Poster
Blog Entries: 1

Rep: Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126Reputation: 1126
My method restores the behavior for one user regardless of theme. Your method restores the behavior for for all users, but only for one theme. Neither are global. Global I would expect to fall somewhere in /etc/ (e.g. /etc/gtk-3.0/???), not in /usr/, unless in /usr/local/, so as not to be overwritten by the package manager during updates, and not to have updating processes interrupted by what to do about this questioning.
 
Old 03-24-2017, 12:55 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248
my system has an /etc/gtk-3.0 folder, but not the sort of config files one would expect.
but maybe you can create your own .css or .ini file there and it'll be picked up?

there's also /usr/share/gtk-3.0/settings.ini, but i don't think it's a good idea to edit files that came with the package.

there's also /usr/share/themes/Default/gtk-3.0
 
Old 03-24-2017, 01:18 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Docs exist?
Code:
/usr/share/doc/gtk*
Maybe they documented it there?

Just sayin'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgrading application in global and non global zones ohijames Solaris / OpenSolaris 5 01-30-2017 04:41 AM
Logging in as root to global and non global zone slufoot80 Solaris / OpenSolaris 1 04-04-2014 03:40 AM
LXer: OpenClinica Global Conference to Bring Together Global Community for Open Sourc LXer Syndicated Linux News 0 01-08-2010 10:50 AM
How to check the cpu utilization on all non global zones from Global Zone rajaniyer123 Solaris / OpenSolaris 3 10-09-2008 01:43 AM
How to share a ZFS file system between a global zone and a non global zone? crisostomo_enrico Solaris / OpenSolaris 7 11-28-2007 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration