5 ms·
Very OT, but I don't know where else to turn to because the Reddit community has been of no help. I used i3 and I absolutely love the way it feels. However I w
by bdjsiqoocwk 2y ago
Very OT, but I don't know where else to turn to because the Reddit community has been of no help.
I used i3 and I absolutely love the way it feels. However I would like to configure it in a way that I can press a button and every app turns into dark mode. My main apps (Firefox, vscode) have an option to say "use system theme" i.e. if the os is dark, theme this app dark. Great! The problem is I don't know how to set the system theme. And every time I've asked around, I see people respond with GTK, QT and what not. I don't have those, I have i3.
Help?
- Arnavion 2y agoWhat those people told you is correct, and "I don't have those, I have i3" is incorrect. Stop ignoring them.
- bdjsiqoocwk 2y agoI'm not ignoring. I still don't know how do I enable dark mode. If you have the answer, would you kindly help?
- singron 2y agoi3 is just a window manager. It's not a UI toolkit. It doesn't control how apps render UI. GTK and QT are UI toolkits and do control how apps render UI. Your apps will use GTK and QT even if you use i3 to manage the windows. You might be confusing GTK with Gnome and QT with KDE, each of which has its own window manager.
- smegsicle 2y agoso you're saying to get gtk apps to switch to dark mode, you'd find the gtk setting for dark mode? and the same for qt?
- viraptor 2y agoYes, for example check "gsettings set org.gnome.desktop.interface gtk-theme" for the gtk apps.
- lkdfjlkdfjlg 2y agoSee but this is the kind of responses that confuse me. What does that mean "gtk apps"? Is firefox a "gtk app"? Is vscode a "gtk app"? etc.
- viraptor 2y agoCheck the dependencies. If it depends on libgtk, it's a gtk app. libQt, is a qt app. There maybe rare other situations (Tk, plain xlib, fltk, etc.)
- vetinari 2y agoThis will get you 99%, but there are exceptions. I.e. Firefox is linked against GTK, but paints its own widgets with custom theming anyways. Telegram is linked against Qt, but has it's own theming/dark mode too.
- lkdfjlkdfjlg 2y agoYou seem like you know what you're talking about, help please? https://news.ycombinator.com/item?id=40583867 https://news.ycombinator.com/item?id=40583867
- lkdfjlkdfjlg 2y agoAs in this post https://askubuntu.com/questions/769417/how-to-change-global-dark-theme-on-and-off-through-terminal https://askubuntu.com/questions/769417/how-to-change-global-... I ran gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark' and firefox isn't in dark mode, despite the fact that i have firefox configured to use the system theme and firefox is on GTK according to google. Help again?
- lkdfjlkdfjlg 2y agoAnd you know, this > You might be confusing GTK with Gnome and QT with KDE, each of which has its own window manager. Just cleared up a lot of confusing in my mind. Thank you.
- somat 2y agoIf it is a gtk app it will use the gtk mechanism, if it is a qt app it will use the qt mechanism, otherwise your in luck, you get to use the native X11 mechanism. gtk: hell if I know, the web sez there are css files, and there are probably some gnome tools to set the theme. qt: no clue. and the web was unhelpful native X11: now we are talking I know this one, X11 provides a database that applications can use for configuration and design. The main interface is the xrdb command. and all good application should include the pertinent points of their call tree to get you started in theming them. http://man.openbsd.org/xrdb http://man.openbsd.org/xrdb