Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
This project is archived. Its data is
read-only
.
Changes
Page history
Update how recbox work
authored
Aug 21, 2019
by
Projekt:Root
Show whitespace changes
Inline
Side-by-side
how-recbox-work.md
View page @
1a988adf
...
@@ -235,7 +235,40 @@ a simple scrip using xfconf-query, cp , sed and grep to switch theme from light
...
@@ -235,7 +235,40 @@ a simple scrip using xfconf-query, cp , sed and grep to switch theme from light
## rb-workflow.sh
## rb-workflow.sh
Modes changing and Bare Metal option in obmenu.
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 .
This part is same as in dark-mode.sh script and it takes care of displaying panel with proper theme.
```
THEME='Flat-Remix-Green-Light'
if ! echo "$THEME" | grep -q 'Flat-Remix-Green-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
```
**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 &"
```
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"
```
## scripts-box.sh
## scripts-box.sh
...
...
...
...