You are not logged in.

#1 2024-05-18 23:13:59

dxtxz
Member
Registered: 2024-05-18
Posts: 1

[SOLVED] Problems With GTK and i3

So, I'm giving a shot to i3 (I was using Gnome before), so i3 is my first tiling window manager, everything is running smooth, excet for GTK, I installed lxappearance and it changes the

~/.gtkrc-2.0

and the

~/.config/gtk-3.0/settings.ini

But even with that, nothing happens, doesn't change theme anywhere, I tried the lxappearance-gtk3 too.

Here are my files:

## ~/.config/gtk-3.0/settings.ini

[Settings]
gtk-theme-name=Adwaita-dark
gtk-icon-theme-name=Adwaita
gtk-font-name=Cantarell 11
gtk-cursor-theme-name=Adwaita
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintslight
gtk-xft-rgba=none
gtk-modules=canberra-gtk-module
## ~/.gtkrc-2.0

# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.

include "/home/dxtxz/.gtkrc-2.0.mine"
gtk-theme-name="Adwaita-dark"
gtk-icon-theme-name="Adwaita"
gtk-font-name="Cantarell 11"
gtk-cursor-theme-name="Adwaita"
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=0
gtk-menu-images=0
gtk-enable-event-sounds=1
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight"
gtk-xft-rgba="none"
gtk-modules="canberra-gtk-module"

But everything works when I run in terminal, for example

GTK_THEME=Adwaita-dark gnome-calculator 

Even tried to disable gdm in systemctl and start system by startx putting "exec i3" inside of my .xinitrc, but nothing as well, there's no env variable anywhere. And here is the weird part, the workaround i found was putting the "GTK_THEME=Adwaita-dark" inside my .xinitrc (worked on .profile too), but that's too ugly, with that, everything worked, but when I remove it, the "pcmanfm" stays on Adwaita-dark forever, doesn't change even if I run "GTK_THEME=.... pcmanfm" from terminal (yes I already reboot the system).

So, can I fix this? Or I have to stay with that ugly thing inside my .xinitrc or .profile?

Last edited by dxtxz (2024-05-19 23:22:10)

Offline

#2 2024-05-19 07:03:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,333

Offline

Board footer

Powered by FluxBB