Skip to content
Update how recbox work authored by Projekt:Root's avatar Projekt:Root
......@@ -311,81 +311,9 @@ A script that displays information about the current track (artist, title, posit
## Changing themes:
This will require some typing but no worries, all files are listed below. It require that way because pretty much everything is hard coded to change between light and dark theme (I'll change it when I learn how, for now it is, what it is).
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.
**GTK2:**
* ~/.gtkrc-2.0
Here you need to replace Matcha-light-sea and Flat-Remix-Green-Light
```
...
gtk-theme-name="Matcha-light-sea"
gtk-icon-theme-name="Flat-Remix-Green-Light"
...
```
**GTK3:**
* ~/.config/gtk-3.0/settings.ini
Same as for GTK2: Matcha-light-sea and Flat-Remix-Green-Light (Using Appearance only change settings in .config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml)
```
[Settings]
gtk-theme-name=Matcha-dark-sea
gtk-icon-theme-name=Flat-Remix-Green-Dark
...
```
Next step is replacing RecBox themes with themes you prefer to use in rb-dark-mode.sh.
Remember to replace theme names in workflow script as well.
```
...
GTK_LIGHT="Matcha-light-sea"
GTK_DARK="Matcha-dark-sea"
...
```
You can find this options on script beginning.
**Icon themes:**
To change icon themes after using Appearance, replace Flat Remix icons in rc-dark-mode.sh script.
```
...
ICONS_LIGHT="Flat-Remix-Green-Light"
ICONS_DARK="Flat-Remix-Green-Dark"
...
```
You can find this options on script beginning.
**OpenBox themes:**
There are two ways to do this. First requires changing theme name in rc.xml file and second, replace all files from light-recbox and dark-recbox with files from themes you want to use.
* /usr/share/themes/light-recbox
* /usr/share/themes/dark-recbox
rc.xml file:
* ~/.config/openbox/rc.xml
Here you need to replace light-recbox (line 42) or choose theme in Openbox Configuration Manager(obconf).
```
...
<theme>
<name>light-recbox</name>
<titleLayout>CILM</titleLayout>
...
```
Next step is to replace RecBox themes in rb-dark-mode.sh:
```
...
OBOX_LIGHT="light-recbox"
OBOX_DARK="dark-recbox"
...
```
You can find this options on script beginning.
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`.
**Jgmenu:**
......@@ -398,6 +326,8 @@ To switch menu themes, rb-dark-mode.sh script use light-jgmenu, light-prepend.cs
* ~/.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.
......@@ -412,58 +342,6 @@ To make side menu fit your screen resolution change values in:
in sidemenu-light-rc and sidemenu-dark-rc
**Rofi:**
To switch rofi themes **rb-dark-mode.sh** use **~/.config/rofi/config** and **sed** command. You don't need to make changes in **RecBox-Light.rasi** and **RecBox-Dark.rasi** themes. Just replace theme names in rb-dark-mode.sh to theme names you like to use
```
...
ROFI_LIGHT="RecBox-Light.rasi"
ROFI_DARK="RecBox-Dark.rasi"
...
```
You can find this options on script beginning.
and RecBox-Light.rasi in ~/.config/rofi/config.
```
...
rofi.theme: /usr/share/rofi/themes/RecBox-Light.rasi
...
```
To make rofi menu fit your screen resolution change line number in rc.xml or with Openbox key bindings:
* rofi -show run -sidebar-mode -lines 30 -width -40 -location 3 -yoffset 22 -font &quot;Noto Sans Medium 9&quot;</command
If changing line number is not enough go to RecBox-Light.rasi and RecBox-Dark.rasi and change padding in inputbar:
```
#inputbar {
spacing: 0;
text-color: @foreground;
padding: 12px ;
}
```
Changing rofi side menu height:
Rofi menu can be set to fit panel but I found that can be problematic on setup with two displays with different resolutions, issue is one (or two) pixel gap between panel and menu. However, if you can stand it or you have single display or two screens with same resolution you can easily configure height value.
Go to /usr/share/rofi/themes/ and pick ReckBox-Dark.rasi and RecBox-Light.rasi files. Now you need to add y-offset and change height value. For my 14'' display laptop setting look like this:
```
window {
border: 1;
padding: 15;
location: east;
anchor: east;
orientation: horizontal;
y-offset: 11;
height: 97.2%;
width: 19.6%;
background-color: @background;
border-color: @border-color;
}
```
**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.
......
......