Thanks ==> aloniv link to main source ==> https://forums.hyperbola.info/viewtopic.php?id=662
Topic: Hyperbola 0.4 setup -Openbox with a dark theme
I thought this guide would be useful for anyone who wants a basic desktop using a dark theme.
First install Openbox packages, a dark GTK theme and a theme switcher application:
# pacman -S openbox obconf e17-gtk-theme lxappearance
Then run lxappearance and set the dark theme. In order for the new theme to work properly you might need to log out and log back in.
Qt applications can also use the GTK theme. First install the following package.
You'll also need to install the package qt5-styleplugins (from AUR) so that Qt can use GTK themes.
Then add the following line to the file .bashrc
export QT_QPA_PLATFORMTHEME=qt5ct
After logging out and back in, Qt applications when run from the terminal should use the dark theme.
In order to edit the items in Openbox's menu, it's best to install a menu editor. I installed obmenu3 from AUR.
When a Qt application is run from Openbox's menu it will not use the dark theme unless the execute command is altered e.g. via obmenu3. A command such as this one for Avidemux works (just replace avidemux 3_qt5 with the command needed to run the Qt application).
sh -c 'export QT_QPA_PLATFORMTHEME=qt5ct && avidemux3_qt5'
If you want a task manager as well you can install tint2.
In order for it to run after login add the line
to .config/openbox/autostart
Qt applications when run from tint2 will not use the dark theme unless you edit the .desktop files.
Copy the relevant files to .local/share/applications (you might need to create the latter directory), e.g. for Avidemux.
cp /usr/share/applications/org.avidemux.Avidemux.desktop .local/share/applications/
Then edit the Exec line - I use this one.
Exec=sh -c 'export QT_QPA_PLATFORMTHEME=qt5ct && avidemux3_qt5' %f
What's still left to do: get PDF and EPUB files to use a dark theme (using mupdf and epdfview).
After editing the Openbox menu (using obmenu3) one can view the new menu without logging out and in by simply running the following command.