How to change dark/light nature of libadwaita in non-gnome systems?

How to change dark/light nature of libadwaita in non-gnome systems?

@linux@lemmy.ml @linux@a.gup.pe
I use a window manager on Wayland. I know customising gtk4 apps is hard for some reasons. Neither I want some great level of customisation for it. I do not need uniform theming etc.
JUST
A simple way to change dark light theme from terminal. I use darkman to switch between dark and light theme. I just need a way to switch between dark and light with libadwaita
Please help.

22 points · 3 comments · view on lemmy.world

3 Comments

winety@lemmy.zip · 14 pts · 1y

Use gsettings:

gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark' 

gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
ElectronBadger@lemmy.ml · 7 pts · 1y

Adding

[Settings]                                                                                                                                                                
gtk-theme-name=Adwaita-dark                                                                                                                                               

to $USER/.config/gtk-4.0 and $USER/.config/gtk-3.0 should do the trick.

nfsm@discuss.tchncs.de · 3 pts · 1y

https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications
Have a look here, it might help. I can't help much, I have KDE and Hyprland but I setup theming in KDE and it also sets in Hyprland.

lurch@sh.itjust.works · 0 pts · 1y
[ removed ]