From ad6ccacbb87f404c9c018ad251468ffdbb45a03a Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sat, 4 Jun 2022 23:27:15 +0200 Subject: [PATCH] save whole mbcolors obtheme --- bin/mb-obthemes | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bin/mb-obthemes b/bin/mb-obthemes index 1d68fad..abd6965 100755 --- a/bin/mb-obthemes +++ b/bin/mb-obthemes @@ -598,9 +598,10 @@ function getOBname(){ # get OB theme name echo -e "\n Zapisano $TXT" echo "$TXT" >> "$LISTMSG" if [[ "$OBTHEME" == "MBcolors" ]];then - cp ~/.themes/MBcolors/openbox-3/themerc "$CONFIGDIR" - theme.sh -l|tail -n1 > "$CONFIGDIR/terminal_theme" + mkdir -p $CONFIGDIR/MBcolors + cp -a ~/.themes/MBcolors/openbox-3/* $CONFIGDIR/MBcolors/ fi + theme.sh -l|tail -n1 > "$CONFIGDIR/terminal_theme" } function getGTKtheme(){ @@ -806,11 +807,11 @@ function restoreOBrc(){ RCFILE="$OBPATH/rc.xml" THEMEFILE="$1/obtheme.txt" FTEMP=$(mktemp --tmpdir blob.XXXX) - MENUFILE="$1/menu.xml" - cp "$MENUFILE" "$OBPATH" - THEMERC="$1/themerc" - if [[ -f "$THEMERC" ]];then - cp "$THEMERC" ~/.themes/MBcolors/openbox-3/ + #MENUFILE="$1/menu.xml" + #cp "$MENUFILE" "$OBPATH" + MBCOLORS="$1/MBcolors" + if [[ -d "$MBCOLORS" ]];then + cp -a $MBCOLORS/* ~/.themes/MBcolors/openbox-3/ fi TERMINAL_THEME="$1/terminal_theme" if [[ -f "$TERMINAL_THEME" ]];then