by rthkljlkrj · 2y ago · 0 comments
How does "dark mode" work in desktop linux?
I'm using i3wm and I haven't been able to find a way to "press a button and every app turns into dark mode". To be clear, all my apps are already configured to take the theme from "system theme", I just haven't been able to find how to change this system theme.
On android this is pretty well integrated, what's the deal with desktop?
If you're using a Window Manager (like i3) they are unlikely to come with utilities like this. You need to download another app (lxapperance for Xorg) or write a script to flip the appropriate settings.
Is this something I can use if I'm using i3wm?
I have a button in gnome that toggles dark mode on/off that switches the desktop over that works for just about everything (not discord though).
#!/bin/bash
color_scheme=$(gsettings get org.gnome.desktop.interface color-scheme)
case $color_scheme in
*default* ) new_color_scheme="'prefer-dark'";;
* ) new_color_scheme="'default'";;
esac
gsettings set org.gnome.desktop.interface color-scheme "$new_color_scheme"But no matter what theme I choose, there will always SOMETHING be broken. In one theme some part of an application will have black text on a black background. Another theme fixes that, but them makes in the alt+tab application switcher the part that highlights which application you're selecting invisible. Other themes have almost invisible scrollbars. Various applications have missing icons because they no longer have their own built-in ones.
I wish every application just had its own actually working built-in theme, rather than trying to shoehorn a global desktop theme inside of everything. It used to be like that in the past and it looked perfect compared to the mess now. Desktop theme settings should just be about the outer window borders and stuff.
Also, does there even exist ONE theme still today that actually visually distinguishes the selected and non-selected windows well? They're all super subtle about this now. Give me a bright blue selected window, gray non-selected window titlebar please so I can tell at a side-eye glance what's focused.
I loved KDE 3.5, but ever since KDE 4 and plasma, I've tried multiple times and never liked it.
I also don't like Gnome, doesn't fit my workflows well, it doesn't support moving windows between multiple desktops well, no window list enabled by default, ...
https://medium.com/@fulalas/gnome-42-the-nonsense-continues-...
Use of CSS in GTK for theming (maybe Qt too, not sure?) doesn’t help matters since both user applied-themes and developer-applied CSS can screw things up by overriding things in a half-baked way.