@@ -206,31 +206,32 @@ Here you can find scripts for volume, brightness and battery:
By default script is set to use ALSA but if you want to use PulseAudio, comment ALSA scripts and uncomment Pulse audio.
## rb-dark-mode.sh
A simple scrip using xfconf-query, cp commands and grep. In Daily and Alternative mode theme shift is permanent (xfsettings is always enabled) which means that changes will stay after logout or shutdown. For Studio there is workaround, xfsettingsd is enabled for changing themes and it's disabled after theme changed. For jgmenu and rofi changes are executed via cp command. If you want to permanently change GTK+ themes for Studio mode, which is using openbox settings you need to edit:
* settings.ini (home/USER/.config/gtk-3.0/)
```
[Settings]
gtk-theme-name=Matcha-sea
gtk-icon-theme-name=Flat-Remix-Light
...
```
* .gtkrc-2.0 (home/USER/)
```
...
gtk-theme-name="Matcha-sea"
gtk-icon-theme-name="Flat-Remix-Light"
...
```
If you want to use other GTK themes than Matcha for Dark Mode you need to make changes in rb-dark-mode.sh script.
a simple scrip using xfconf-query, cp , sed and grep to switch theme from light variant to dark. Theme shift is permanent, which means that changes will stay after logout or shutdown. Read more in [changing themes]()
sed -i 's/RecBox-Light.rasi/RecBox-Dark.rasi/' ~/.config/rofi/config
# OpenBox theme configuration
sed -i 's/light-recbox/dark-recbox/' ~/.config/openbox/rc.xml
# GTK2 theme configuration
sed -i 's/Matcha-light-sea/Matcha-dark-sea/' ~/.gtkrc-2.0
sed -i 's/Flat-Remix-Green-Light/Flat-Remix-Green-Dark/' ~/.gtkrc-2.0
# GTK3 thme configuration
sed -i 's/Matcha-light-sea/Matcha-dark-sea/' ~/.config/gtk-3.0/settings.ini
sed -i 's/Flat-Remix-Green-Light/Flat-Remix-Green-Dark/' ~/.config/gtk-3.0/settings.ini
# Side Menu theme configuration
sed -i 's/sidemenu-light-rc/sidemenu-dark-rc/' bin/tint2-buttons.sh
sed -i 's/sidemenu-light-rc/sidemenu-dark-rc/' bin/polybar-buttons.sh
# OpenBox Reconfiguration
openbox --reconfigure
...
```
Also, you need to remember to change string in **THEME=**. grep is looking for words contained here to compare it with output. When output is same as "test sample", script change theme to dark variant. If is different, light theme will be set up.