TILING WINDOW MANAGER THEMING
Although not difficult, the methods to set the theme for QT/GTK manually are not very obvious nor intuitive. Below are how to manually set the themes without much external tools.
GTK
Note: I will be using the example of Dark-Mode + Adwaita-dark for my configs
You can either manually set it via "~/.config/gtk-3.0/settings.ini":
[Settings]
gtk-application-prefer-dark-theme=1
gtk-theme-name=Adwaita-dark
Or you can use gsettings (personal preference):
- Get current theme :
gsettings get org.gnome.desktop.interface gtk-theme
- Set new theme :
gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark
- Get dark/light mode setting :
gsettings get org.gnome.desktop.interface color-scheme
- Set dark mode :
gsettings set org.gnome.desktop.interface color-scheme prefer-dark
- Set light mode :
gsettings set org.gnome.desktop.interface color-scheme default
QT
Note: I will be using the example of Breeze Dark + Dark Mode for my configs
-
This will require the program
lookandfeeltool
- on Fedora it is in the repos in the package "plasma-workspace" :lookandfeeltool -platform offscreen --apply "org.kde.breezedark.desktop"
-
This part will require qt6ct. On Fedora it is in the repos in the package
qt6ct
-
Run qt6ct and set things there.
-
Export the global variable
QT_QPA_PLATFORMTHEME=qt6ct
-
Optionally you can start qt6 applications as follows to set the theme :
QT_QPA_PLATFORMTHEME=qt6ct /path/to/application