Skip to content

Commit

Permalink
Merge pull request #168 from fredcw/xfmetabug
Browse files Browse the repository at this point in the history
fix missing folders in compact version
  • Loading branch information
vinceliuice authored Apr 28, 2024
2 parents 04c7b1a + 6a07238 commit d850f05
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -230,33 +230,31 @@ install() {
fi

cp -r "$SRC_DIR/cinnamon/thumbnail$theme$color.png" "$THEME_DIR/cinnamon/thumbnail.png"

mkdir -p "$THEME_DIR/xfwm4"

if [[ "$size" == '' ]]; then
mkdir -p "$THEME_DIR/xfwm4"

if [[ "$titlebutton" = "square" ]] ; then
cp -r "$SRC_DIR/xfwm4/assets-square$color/"*.png "$THEME_DIR/xfwm4"
cp -r "$SRC_DIR/xfwm4/themerc-square${ELSE_LIGHT:-}" "$THEME_DIR/xfwm4/themerc"
else
cp -r "$SRC_DIR/xfwm4/assets$color/"*.png "$THEME_DIR/xfwm4"
cp -r "$SRC_DIR/xfwm4/themerc${ELSE_LIGHT:-}" "$THEME_DIR/xfwm4/themerc"
fi
if [[ "$titlebutton" = "square" ]] ; then
cp -r "$SRC_DIR/xfwm4/assets-square$color/"*.png "$THEME_DIR/xfwm4"
cp -r "$SRC_DIR/xfwm4/themerc-square${ELSE_LIGHT:-}" "$THEME_DIR/xfwm4/themerc"
else
cp -r "$SRC_DIR/xfwm4/assets$color/"*.png "$THEME_DIR/xfwm4"
cp -r "$SRC_DIR/xfwm4/themerc${ELSE_LIGHT:-}" "$THEME_DIR/xfwm4/themerc"
fi

mkdir -p "$THEME_DIR/metacity-1"
cp -r "$SRC_DIR/metacity-1/metacity-theme-2$color.xml" "$THEME_DIR/metacity-1/metacity-theme-2.xml"
mkdir -p "$THEME_DIR/metacity-1"
cp -r "$SRC_DIR/metacity-1/metacity-theme-2$color.xml" "$THEME_DIR/metacity-1/metacity-theme-2.xml"

if [[ "$window" = "round" ]] ; then
cp -r "$SRC_DIR/metacity-1/metacity-theme-3-round.xml" "$THEME_DIR/metacity-1/metacity-theme-3.xml"
cp -r "$SRC_DIR/metacity-1/assets-round" "$THEME_DIR/metacity-1/assets"
else
cp -r "$SRC_DIR/metacity-1/metacity-theme-3.xml" "$THEME_DIR/metacity-1"
cp -r "$SRC_DIR/metacity-1/assets" "$THEME_DIR/metacity-1"
fi

cp -r "$SRC_DIR/metacity-1/thumbnail${ELSE_DARK:-}.png" "$THEME_DIR/metacity-1/thumbnail.png"
cd "$THEME_DIR/metacity-1" && ln -s metacity-theme-2.xml metacity-theme-1.xml
if [[ "$window" = "round" ]] ; then
cp -r "$SRC_DIR/metacity-1/metacity-theme-3-round.xml" "$THEME_DIR/metacity-1/metacity-theme-3.xml"
cp -r "$SRC_DIR/metacity-1/assets-round" "$THEME_DIR/metacity-1/assets"
else
cp -r "$SRC_DIR/metacity-1/metacity-theme-3.xml" "$THEME_DIR/metacity-1"
cp -r "$SRC_DIR/metacity-1/assets" "$THEME_DIR/metacity-1"
fi

cp -r "$SRC_DIR/metacity-1/thumbnail${ELSE_DARK:-}.png" "$THEME_DIR/metacity-1/thumbnail.png"
cd "$THEME_DIR/metacity-1" && ln -s metacity-theme-2.xml metacity-theme-1.xml

mkdir -p "$THEME_DIR/plank"
cp -r "$SRC_DIR/plank/theme${ELSE_LIGHT:-}/dock.theme" "$THEME_DIR/plank"
}
Expand Down

0 comments on commit d850f05

Please sign in to comment.