Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-11-08 16:07:16

h-panel-04
Member
Registered: 2021-11-08
Posts: 3

[SOLVED] Where is ~/.config/gtk-3.0/gtk.css?

Hello! I’m new to Linux and I’m configuring the look of xfce panel icons.

I’ve searched the forum and found the solution of my problem (how to resize the pulseaudio button icon: https://forum.xfce.org/viewtopic.php?id=11896)

As I understand, I should edit ~/.config/gtk-3.0/gtk.css

My question is – where can I find this file?

I’ve searched the disk and could find many gtk.css files, but none has this path to it. Am I supposed to open and edit gtk.css of the current theme that I’m using? (In my example:
/snap/gtk-common-themes/1519/share/themes/Greybird-dark/gtk-3.0/gtk.css) I’m using Xubuntu 21.10 with XFCE 4.16


I am sorry for a very newbie question, I am aware... Any thanks would be appreciated!

Last edited by h-panel-04 (2021-11-09 17:47:41)

Offline

#2 2021-11-08 16:51:45

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: [SOLVED] Where is ~/.config/gtk-3.0/gtk.css?

Hi! Welcome to the forum and the Linux world!

The tilde (~) character stands for your home directory, which is located at /home/your_username_here. The .config directory is said to be "hidden" because of the leading period. To access it, you can click on the address bar and type its name with a leading period. Most file managers will let you manually type in the address bar. It is certainly the case with Thunar–Xfce's file manager. If you are already in your home directory, just append /.config to the path. If you're not, then: a) select your home directory from the side pane and append /.config/gtk-3.0; b) type in the full path to your home directory, i.e. /home/your_username_here, and append /.config/gtk-3.0 to it.

On fresh systems, the gtk.css file may not be present. You can just create an empty file, paste whatever you intend to and save it (under the same directory path).



  • bash(1) on the tilde character: "Tildes are expanded in filenames as described below under Tilde Expansion in the EXPANSION section."

  • You can find out more about files with names beginning with ‘.’ by referring to the ‘ls’ Info file, i.e. executing the following

    info ls
  • To understand more about the concept of user home directories and their contents, you may wish to read the Filesystem Hierarchy Standard Version 3.0 and the XDG Base Directory Specification, respectively.

Last edited by KBar (2021-11-08 17:34:48)


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

#3 2021-11-09 17:01:52

h-panel-04
Member
Registered: 2021-11-08
Posts: 3

Re: [SOLVED] Where is ~/.config/gtk-3.0/gtk.css?

Thank you so much for such a helpful and welcoming response. It worked!! big_smile

I kinda can't see why more people don't switch to Linux. With the community like this I for myself am happy I made a switch. Thanks again

Last edited by h-panel-04 (2021-11-09 17:02:14)

Offline

#4 2021-11-09 17:09:13

KBar
Member
Registered: 2021-11-05
Posts: 689

Re: [SOLVED] Where is ~/.config/gtk-3.0/gtk.css?

Great! I'm glad that it worked.

Welcome again and happy adventures!

Don't forget to mark your thread as [SOLVED], according to the rules listed in this post.

Last edited by KBar (2021-11-09 17:11:07)


Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please! tongue

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 7 queries executed - Memory usage: 533.45 KiB (Peak: 534.29 KiB) ]