Moved GTK settings to index.org

This commit is contained in:
Lucien Cartier-Tilet 2020-04-21 12:56:56 +02:00
parent 74afc5a50b
commit 6466ff537b
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA
2 changed files with 116 additions and 10 deletions

View File

@ -1,10 +0,0 @@
[Settings]
gtk-application-prefer-dark-theme = true
gtk-icon-theme-name = Flat-Remix-Dark
gtk-theme-name = Arc-Dark
gtk-can-change-accels = 1
# gtk-xft-antialias=1
# gtk-xft-hinting=1
# gtk-xft-hintstyle=hintslight
# gtk-xft-rgba=rgb
gtk-decoration-layout=menu:close

View File

@ -17,6 +17,9 @@
- [[#awesomewm][AwesomeWM]]
- [[#i3-configuration][i3 configuration]]
- [[#graphical-tweaks][Graphical tweaks]]
- [[#gtk-settings][GTK Settings]]
- [[#gtk2][GTK2]]
- [[#gtk3][GTK3]]
- [[#picom][Picom]]
- [[#xresources][Xresources]]
- [[#text-and-source-code-editing][Text and source code editing]]
@ -114,6 +117,119 @@
:PROPERTIES:
:CUSTOM_ID: h-08018a9b-f0c8-4bff-b18d-834ec0dc11a8
:END:
*** GTK Settings
:PROPERTIES:
:CUSTOM_ID: h-1e9b2c5f-9ce4-4706-af5b-fb3b423cdb82
:END:
**** GTK2
:PROPERTIES:
:CUSTOM_ID: h-6b46d7ef-3015-46e6-b9f4-58be449ff9b6
:HEADER-ARGS: :tangle ~/.config/gtk-2.0/gtkfilechooser.ini
:END:
Regarding GTK2, I have only one configuration file: the filechoosers
configuration file.
#+BEGIN_SRC conf-unix
[Filechooser Settings]
#+END_SRC
The first option alows me to open the file chooser in the current working
directory:
#+BEGIN_SRC conf-unix
StartupMode=cwd
#+END_SRC
Next, setting the location mode to ~path-bar~ will show the path as buttons
that can be clicked rather than the full path.
#+BEGIN_SRC conf-unix
LocationMode=path-bar
#+END_SRC
With this configuration, by default we wont see hidden files.
#+BEGIN_SRC conf-unix
ShowHidden=true
#+END_SRC
And we'll also see the size of the visible files.
#+BEGIN_SRC conf-unix
ShowSizeColumn=true
#+END_SRC
Now, lets choose the geometry of our file picker. These two first lines
set where the file picker appears:
#+BEGIN_SRC conf-unix
GeometryX=566
GeometryY=202
#+END_SRC
And these two describe the size of the window:
#+BEGIN_SRC conf-unix
GeometryWidth=800
GeometryHeight=400
#+END_SRC
With these two lines, we set how our files are sorted: by name, and in the
ascending order.
#+BEGIN_SRC conf-unix
SortColumn=name
SortOrder=ascending
#+END_SRC
Our default view mode is a list of files:
#+BEGIN_SRC conf-unix
ViewMode=list-view
#+END_SRC
And finally, setting our icon view scale to ~-1~ sets the icon view to the
max size.
#+BEGIN_SRC conf-unix
IconViewScale=-1
#+END_SRC
**** GTK3
:PROPERTIES:
:CUSTOM_ID: h-0de8173e-2c28-4ac2-811e-e6c1a437ef51
:HEADER-ARGS: :tangle ~/.config/gtk-3.0/settings.ini
:END:
The following file helps me choosing the aspect of various GTK+ 3 software,
including their theme and icons. First, lets declare the header:
#+BEGIN_SRC conf-unix
[Settings]
#+END_SRC
Now, lets hint to GTK that I prefer dark themes. This can have an
influence also on some websites that can detect this preference and
therefore set their own theme to dark by themselves.
#+BEGIN_SRC conf-unix
gtk-application-prefer-dark-theme = true
#+END_SRC
Next, the icon theme is the Flat Remix Dark icon theme:
#+BEGIN_SRC conf-unix
gtk-icon-theme-name = Flat-Remix-Dark
#+END_SRC
Now, the general theme for GTK3 is Arc Dark.
#+BEGIN_SRC conf-unix
gtk-theme-name = Arc-Dark
#+END_SRC
#+BEGIN_SRC conf-unix
gtk-can-change-accels = 1
#+END_SRC
#+BEGIN_SRC conf-unix
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintslight
# gtk-xft-rgba=rgb
#+END_SRC
Since window decorations are handled by my WMs, I will leave this variable
empty.
#+BEGIN_SRC conf-unix
gtk-decoration-layout=
#+END_SRC
*** Picom
:PROPERTIES:
:CUSTOM_ID: h-c539fde3-3f1a-4855-8d63-28729ed806a5