parent
91fb852719
commit
7a636dcfc6
14
bin/obtctl
14
bin/obtctl
|
@ -3,8 +3,16 @@
|
||||||
OBTHEME=$(awk '/<theme>/ {while (getline n) {if (match(n, /<name>/))
|
OBTHEME=$(awk '/<theme>/ {while (getline n) {if (match(n, /<name>/))
|
||||||
{l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$HOME/.config/openbox/rc.xml")
|
{l=n; exit}}} END {split(l, a, "[<>]"); print a[3]}' "$HOME/.config/openbox/rc.xml")
|
||||||
#echo "$OBTHEME"
|
#echo "$OBTHEME"
|
||||||
THEMEDIR="$HOME/.themes/$OBTHEME/openbox-3"
|
if [[ $OBTHEME = MBcolor* ]];then
|
||||||
THEMERC="$HOME/.themes/$OBTHEME/openbox-3/themerc"
|
#switch to MBcolors theme
|
||||||
|
THEMEDIR="$HOME/.themes/$OBTHEME/openbox-3"
|
||||||
|
THEMERC="$HOME/.themes/$OBTHEME/openbox-3/themerc"
|
||||||
|
else
|
||||||
|
xmlstarlet ed -L -N o="http://openbox.org/3.4/rc" -u '/o:openbox_config/o:theme/o:name' -v "MBcolors" "$HOME/.config/openbox/rc.xml"
|
||||||
|
THEMEDIR="$HOME/.themes/MBcolors/openbox-3"
|
||||||
|
THEMERC="$HOME/.themes/MBcolors/openbox-3/themerc"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
MBCOLORSDIR="$HOME"/.themes/MBcolors/openbox-3/
|
MBCOLORSDIR="$HOME"/.themes/MBcolors/openbox-3/
|
||||||
if [ ! -d "$MBCOLORSDIR" ]; then
|
if [ ! -d "$MBCOLORSDIR" ]; then
|
||||||
|
@ -419,7 +427,7 @@ fontslanttoggle (){
|
||||||
}
|
}
|
||||||
randomizer () {
|
randomizer () {
|
||||||
|
|
||||||
# TODO: - maybe put all options to cnf file and let users cistomize options???
|
# TODO: - maybe put all options to cnf file and let users customize options???
|
||||||
|
|
||||||
### ensure we use MBColors at the moment
|
### ensure we use MBColors at the moment
|
||||||
theme MBcolors
|
theme MBcolors
|
||||||
|
|
Loading…
Reference in New Issue