save whole mbcolors obtheme

master
Daniel Napora 2022-06-04 23:27:15 +02:00
parent 60196e3430
commit ad6ccacbb8
1 changed files with 8 additions and 7 deletions

View File

@ -598,9 +598,10 @@ function getOBname(){ # get OB theme name
echo -e "\n Zapisano $TXT" echo -e "\n Zapisano $TXT"
echo "$TXT" >> "$LISTMSG" echo "$TXT" >> "$LISTMSG"
if [[ "$OBTHEME" == "MBcolors" ]];then if [[ "$OBTHEME" == "MBcolors" ]];then
cp ~/.themes/MBcolors/openbox-3/themerc "$CONFIGDIR" mkdir -p $CONFIGDIR/MBcolors
theme.sh -l|tail -n1 > "$CONFIGDIR/terminal_theme" cp -a ~/.themes/MBcolors/openbox-3/* $CONFIGDIR/MBcolors/
fi fi
theme.sh -l|tail -n1 > "$CONFIGDIR/terminal_theme"
} }
function getGTKtheme(){ function getGTKtheme(){
@ -806,11 +807,11 @@ function restoreOBrc(){
RCFILE="$OBPATH/rc.xml" RCFILE="$OBPATH/rc.xml"
THEMEFILE="$1/obtheme.txt" THEMEFILE="$1/obtheme.txt"
FTEMP=$(mktemp --tmpdir blob.XXXX) FTEMP=$(mktemp --tmpdir blob.XXXX)
MENUFILE="$1/menu.xml" #MENUFILE="$1/menu.xml"
cp "$MENUFILE" "$OBPATH" #cp "$MENUFILE" "$OBPATH"
THEMERC="$1/themerc" MBCOLORS="$1/MBcolors"
if [[ -f "$THEMERC" ]];then if [[ -d "$MBCOLORS" ]];then
cp "$THEMERC" ~/.themes/MBcolors/openbox-3/ cp -a $MBCOLORS/* ~/.themes/MBcolors/openbox-3/
fi fi
TERMINAL_THEME="$1/terminal_theme" TERMINAL_THEME="$1/terminal_theme"
if [[ -f "$TERMINAL_THEME" ]];then if [[ -f "$TERMINAL_THEME" ]];then