Skip to content
Update how recbox work authored by Projekt:Root's avatar Projekt:Root
......@@ -18,7 +18,10 @@
* [rb-center.sh](https://gitlab.com/ProjektRoot/recbox-dev/wikis/how-recbox-work#rb-centersh)
* [rb-control.sh](https://gitlab.com/ProjektRoot/recbox-dev/wikis/how-recbox-work#rb-controlsh)
* [rb-darkmode.sh](https://gitlab.com/ProjektRoot/recbox-dev/wikis/how-recbox-work#rb-dark-modesh)
* [rb-darkmode-settings.sh]()
* [rb-darkmode-settings-test.sh]()
* [rb-workflow.sh](https://gitlab.com/ProjektRoot/recbox-dev/wikis/how-recbox-work#rb-workflowsh)
* [rb-workflow-settings.sh]()
* [scripts-box.sh](https://gitlab.com/ProjektRoot/recbox-dev/wikis/how-recbox-work#scripts-boxsh)
* [rtc.sh](https://gitlab.com/ProjektRoot/recbox-dev/wikis/how-recbox-work#rtcsh)
* [hpet.sh](https://gitlab.com/ProjektRoot/recbox-dev/wikis/how-recbox-work#hpetsh)
......@@ -72,9 +75,7 @@ Note that after installation you need to set up system for audio recording.
Learn System-Setup.pdf in Documentation.
* Alternative - This mode is playground for new ideas. If you want to change theme, icons etc start making changes here in case you stuck or break general workflow.
`rb-workflow.sh` - is a script controlling mode changing so if you want to add something to be used in Studio, Daily or Alternative mode you need to add it to the script /usr/bin/rb-workflow.sh
# Config Files
`rb-workflow.sh` - is a script controlling mode changing. If you want to change default settings, open Workflow Settings in Look and Feel / XFCE settings.
## OpenBox:
......@@ -99,9 +100,10 @@ So, if you want change something in panel theming, add or remove something from
0 directories, 8 files
```
`rc.xml` - this file store configuration for openbox wm. If you want add changes across the mods make it in rb-workwlow.sh and dark-mode scripts.
**autostart** and **ob-autostart** - method is the same as for rc.xml files.
`rc.xml` - this file store configuration for Openbox WM. Please be careful when changing default settings. Some scripts are using specific lines in this file to automate basic tasks so make sure there are in place.
- line 42 is used by dark-mode scripts (openbox theme)
- line 43 is used by workflow scripts (items in window bar title layout)
- line 120 is used by workflow scripts (number of workspaces you want to use)
## Jgmenu:
......@@ -141,7 +143,8 @@ For jgmenu there are two directories you need to learn:
...
```
**jgmenurc** - contains theme configuration
When changing color schemes or other configuration for jgmenu (main menu) be sure that **icon_theme =** is placed in line 48.
This line is used by dark-mode scripts (check Dark Mode Settings Manager).
**append.csv** - contains items for Audio Plugins, Audio Production, Audio Tools, Hardware Configuration.
......@@ -151,15 +154,8 @@ If you want to add or remove items for these categories make changes here. This
## Compositor – Compton:
To change configuration for different modes, make changes in rb-workflow.sh script.
If you want to use same compositor configuration in all modes just delete or comment this lines:
```
...
echo -e "${GREEN}=>${RESETCOLOR} Manjaro Compositor configuration..."
echo -e "${RED}>${RESETCOLOR} disabling shadows\n"
sed -i 's/shadow = true/shadow = false/g' ~/.config/compton.conf
...
```
To change configuration for different modes, make changes in Workflow Settings (Look and Feel / XFCE settings).
If you want to use your own compton configuration make sure that **shadow =** is placed in second line to avoid configuration file mess up. Workflow Settings is using this line for "*Desktop Shadows*" option.
## Redshift:
......@@ -206,82 +202,26 @@ 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 , 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](https://gitlab.com/ProjektRoot/recbox-dev/wikis/how-recbox-work#changing-themes)
```
...
xfconf-query -c xsettings -p /Net/ThemeName -s $GTK_DARK
xfconf-query -c xsettings -p /Net/IconThemeName -s $ICONS_DARK
cp ~/.config/openbox/jgmenu-theme-configs/dark-jgmenu ~/.config/jgmenu/jgmenurc
cp ~/.config/openbox/jgmenu-theme-configs/dark-prepend.csv ~/.config/jgmenu/prepend.csv
cp ~/.config/tint2/recbox-daily-dark.tint2rc ~/.config/tint2/tint2rc
xdotool key super+u
sleep 1
manjaro-tint2-session
# Rofi theme configuration
sed -i "s/$ROFI_LIGHT/$ROFI_DARK/" ~/.config/rofi/config
# OpenBox theme configuration
sed -i "s/$OBOX_LIGHT/$OBOX_DARK/" ~/.config/openbox/rc.xml
# GTK2 theme configuration
sed -i "s/$GTK_LIGHT/$GTK_DARK/" ~/.gtkrc-2.0
sed -i "s/$ICONS_LIGHT/$ICONS_DARK/" ~/.gtkrc-2.0
# GTK3 thme configuration
sed -i "s/$GTK_LIGHT/$GTK_DARK/" ~/.config/gtk-3.0/settings.ini
sed -i "s/$ICONS_LIGHT/$ICONS_DARK/" ~/.config/gtk-3.0/settings.ini
# QT5
sed -i "s/$ICONS_LIGHT/$ICONS_DARK/" ~/.config/qt5ct/qt5ct.conf
# Side Menu theme configuration
sed -i "s/$SMENU_LIGHT/$SMENU_DARK/" bin/tint2-buttons.sh
sed -i "s/$SMENU_LIGHT/$SMENU_DARK/" bin/polybar-buttons.sh
...
```
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]().
## rb-workflow.sh
##rb-dark-mode-settings.sh
a simple user interface created with Zenity. Here you can choose which themes you want to use. Your settings are saved in config file in **~/.config/darkmode-settings** directory.
modes changing and Bare Metal option in obmenu and side menu.
Script also take care of changing settings in rc.xml file and compton.conf .
## rb-dark-mode-settings-test.sh
this script is made to prevent config file mess up. When you open Dark Mode Settings Manager this script runs first and read and save themes which are in use.
This part is same as in dark-mode.sh script and it takes care of displaying panel with proper theme.
```
if ! echo "$ICONS_LIGHT" | grep -q "$ICONS_DARK" ~/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml ; then
cp ~/.config/tint2/recbox-daily-light.tint2rc ~/.config/tint2/tint2rc
manjaro-tint2-session
else
cp ~/.config/tint2/recbox-daily-dark.tint2rc ~/.config/tint2/tint2rc
manjaro-tint2-session
fi
echo -e "\n${YELLOW}Setting up ${WHITE}Daily${RESETCOLOR} Mode.\n${RESETCOLOR}"
echo -e "${GREEN}=>${RESETCOLOR} autostart file configuration..."
echo -e "${RED}-->${RESETCOLOR} disabling cadence-session-start"
sed -i '2d' ~/.config/openbox/autostart
sed -i '1a # cadence-session-start -s &' ~/.config/openbox/autostart
echo -e "${RED}>>>${RESETCOLOR} # cadence-session-start -s &"
...
```
**sed -i ‘2d’** is deleting second line in autostart file which is responsible of executing Cadence settings on user login.
**sed -i '1a ...'** adds line under first line with correct (for chosen mode) settings.
```
echo -e "${GREEN}=>${RESETCOLOR} autostart file configuration..."
echo -e "${RED}-->${RESETCOLOR} disabling cadence-session-start"
sed -i '2d' ~/.config/openbox/autostart
sed -i '1a # cadence-session-start -s &' ~/.config/openbox/autostart
echo -e "${RED}>>>${RESETCOLOR} # cadence-session-start -s &"
```
## rb-workflow.sh
this script taking care of mode switching. You don't need to change anything here.
- Daily
- Studio
- Alternative
Plus “**+**” sign is replacement for forward slash "**/**" because it's occur in line we want replace. Without this sed command will treat "**</animateIconify>**" as part of command and in result returns error.
```
echo -e "${GREEN}=>${RESETCOLOR} openbox configuration..."
echo -e "${RED}-->${RESETCOLOR} enabling animations"
sed -i '55s+<animateIconify>no</animateIconify>+<animateIconify>yes</animateIconify>+' ~/.config/openbox/rc.xml
echo -e "${RED}>>>${RESETCOLOR} <animateIconify>yes</animateIconify>\n"
```
## rb-workflow-settings
a simple user interface made in Zenity. Here you can set which options you want use in Daily, Studio and Alternative modes.
## scripts-box.sh
Here you can find all scripts working with Zenity, Rofi and Update options.
Here you can find all scripts working with Zenity, Rofi and Update options and more.
## rtc.sh
......@@ -303,31 +243,20 @@ this script is responsible for menu displayed when button in polybar panel is cl
Color scheme for side menu can be found in ~/.config/openbox/jgmenu-theme-configs/.
## player-cmus.sh
A script that displays information about the current track (artist, title, position, duration). Original script and Author [here](https://github.com/x70b1/polybar-scripts/tree/master/polybar-scripts/player-cmus).
# Other
## Changing themes:
If you want to change theme, please use Dark Mode Settings UI to avoid dark mode script breakage. Main menu > Settings > Dark Mode Settings Manager or via Look and Feel in obmenu (right click) > Personal > Dark Mode Settings Manager.
At that moment script don't read theme names from config files so after run manager you will see default RecBox theming (if you changed themes). Changes will be visible when you change theme via manager or replace default theme names in `~/.config/darkmode-settings/config`.
If you’re not happy with default theming you can change majority of them via Dark Mode Settings manager but part of them like tint2 panel you need to change manually.
**Jgmenu:**
To switch menu themes, rb-dark-mode.sh script use light-jgmenu, light-prepend.csv, dark-jgmenu and dark-prepend.csv. So you need make changes in this files as well.
Remember that jgmenurc file will be overwritten so if you want changes to stay you need to add them to:
* ~/.config/jgmenu/jgmenurc
* ~/.config/jgmenu/prepend.csv
* ~/.config/openbox/jgmenu-theme-configs/light-jgmenu
* .config/openbox/jgmenu-theme-configs/light-prepend.csv
* ~/.config/openbox/jgmenu-theme-configs/dark-jgmenu
* ~/.config/openbox/jgmenu-theme-configs/dark-prepend.csv
Instead of copy, paste new configs to jgmenu config files, please replace values. For example Dark Mode Settings script is set to read and replace line 48. If in this line will be other setting, dark mode will break config file by replacing this line when you change icons theme via Dark Mode Settings Manager.
**Side Menu:**
Side menu themes are stored in ~/.config/openbox/jgmenu-theme-configs/ like themes for main jgmenu.
......@@ -344,21 +273,15 @@ in sidemenu-light-rc and sidemenu-dark-rc
**Tint2 panel:**
If you like to change tint2 panel themes you can paste panel configuration to light and dark config files or replace panel names in rb-dark-mode.sh script.
If you like to change tint2 panel themes remember that you need to change settings in this files as well:
* recbox-alternarive-dark.tint2rc
* recbox-daily-dark.tint2rc
* recbox-daily-light.tint2rc
* recbox-studio-dark.tint2rc
* recbox-studio-light.tint2rc
* tint2rc
```
...
cp ~/.config/tint2/recbox-daily-dark.tint2rc ~/.config/tint2/tint2rc
...
```
Jgmenus (button menu) in tint2 panel:
## Jgmenus (button menu) in tint2 panel:
Each menu have separate color scheme because every menu need to have fix position on the screen.
```
......@@ -383,25 +306,6 @@ To change menu configuration, make changes in **bin/tint2-buttons.sh**
...
```
**QT5 themes**
Go to qt5ct.conf file `.config/qt5ct/qt5ct.conf` and change:
```
...
icon_theme=Flat-Remix-Green-Dark
...
```
then replace icons theme names in **rb-workflow.sh**:
```
QT_LIGHT="Matcha-light-sea"
QT_DARK="Matcha-dark-sea"
```
You can find this options on script beginning.
## Window tiling:
In RecBox, window tiling is made by three ways:
......@@ -422,7 +326,7 @@ Click Desktop in panel and in Network applet choose what you need.
## Enable/disable touchpad script configuration:
Touchpad script will not work if you don't have define touchpad model. Open scripts-box.sh (line 272) in /usr/bin/ folder and follow contained instructions.
By default, script is set to search for synaptic - xinput --list --name-only | grep Synaptics. If somehow this method don't work for you, add you touch pad manually.
```
nano /usr/bin/scripts-box.sh
......
......