Skip to content
Update how recbox work authored by Projekt:Root's avatar Projekt:Root
......@@ -15,7 +15,7 @@
* [Multiple Monitors](https://gitlab.com/ProjektRoot/recbox-dev/wikis/how-recbox-work#multiple-monitors)
**Scripts used by RecBox:**
* [rb-center.sh](url)
* [rb-center.sh](https://gitlab.com/ProjektRoot/recbox-dev/wikis/how-recbox-work#rb-centersh)
* [rb-control.sh](url)
* [rb-darkmode.sh](url)
* [rb-workflow.sh](url)
......@@ -172,57 +172,46 @@ Side menu > Display > XFCE
* Kernel Tools
* Edit Audio Software
rb-control.sh - here you can find scripts for volume, brightness and battery:
• volume Zenity box
• volume up/down/mute
• brightness Zenity box
• brightness up/down/toggle
• battery level duns notification
• some info about battery
• battery measure script - shows battery level through dunst notification constantly and suspend system when battery is lower than 7%
• dunst date notification
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"
...
## rb-control.sh
Here you can find scripts for volume, brightness and battery:
* volume Zenity box
* volume up/down/mute
* brightness Zenity box
* brightness up/down/toggle
* battery level duns notification
* some info about battery
* battery measure script - shows battery level through dunst notification constantly and suspend system when battery is lower than 7%
* dunst date notification
## 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.
...
xfconf-query -c xsettings -p /Net/ThemeName -s Matcha-dark-sea
xfconf-query -c xsettings -p /Net/IconThemeName -s Flat-Remix-Dark
...
```
...
xfconf-query -c xsettings -p /Net/ThemeName -s Matcha-dark-sea
xfconf-query -c xsettings -p /Net/IconThemeName -s Flat-Remix-Dark
...
```
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.
rb-workflow.sh - modes changing and Bare Metal option in obmenu.
# rb-workflow.sh
Modes changing and Bare Metal option in obmenu.
scripts-box.sh - here you can find all scripts working with Zenity, Rofi and Update options.
rtc.sh - here you can change how much you want increase/decrease RTC (Real-time clock) value. This script is executed on start by rtc.service (etc/systemd/system).
......
......