You are not logged in.
I have gtk theme set up in ~/.gtkrc-2.0 but gtk2 apps are not complying. Not many gtk2 apps but I have to use pinentry-gtk and artha but their theming is hideous because of this issue. It seems to be related to display manager because under greetd the themes work but not on sddm (greetd wasn't setting environment variables correctly and I couldn't figure out how to make it so I went back to sddm).
How can I make gtk2 apps to recognize theme settings in sway?
Last edited by sleengarden (2023-04-17 16:46:13)
Offline
Where / how are you setting the GTK2_RC_FILES variable?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Here let me paste ~/.gtkrc-2.0 for you.
# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/user/.gtkrc-2.0.mine"
gtk-theme-name="Arc-Dark"
gtk-icon-theme-name="Arc"
gtk-font-name="Droid Sans Mono, 10"
gtk-cursor-theme-name="breeze_cursors"
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=1
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintmedium"
gtk-modules="colorreload-gtk-module"As the comment says it was written by lxappearance I didn't edit it.
Last edited by sleengarden (2023-04-17 15:55:20)
Offline
Oh that was ~/.gtkrc-2.0 file. And I am not setting GTK2_RC_FILES variable anywhere. let me try ~/.bash_profile?
Offline
Crap. It turned out I had GTK2_RC_FILES set in my .bash_profile but the file has been removed since. So I just copied the ~/.gtkrc-2.0 to its place. And it worked. I forgot my own setting files and scratch my head. I feel so silly now. Anyway I added the file to the git config tracking so I shouldn't be losing hereafter. And I'm gonna mark this solved.
Offline