aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKylie McClain <somasissounds@gmail.com>2015-02-15 23:31:44 -0500
committerKylie McClain <somasissounds@gmail.com>2015-02-15 23:31:44 -0500
commit5a2c4e392ba6725cd1ca805119fba1b1f60f6b50 (patch)
treeb4cc450e8ffbceba4134ab1c71b250b4b9d0d6c2
parent918b33578c0ff212117271371a1aa0dd8c2657b9 (diff)
make-colors-themes: add plank theme installation
-rwxr-xr-xmake-colors-themes11
1 files changed, 11 insertions, 0 deletions
diff --git a/make-colors-themes b/make-colors-themes
index 935c1dd..86e5e9e 100755
--- a/make-colors-themes
+++ b/make-colors-themes
@@ -36,6 +36,13 @@ debug() {
[[ "$debug" ]] && echo "$@"
}
+install_plank_theme() {
+ [[ ! -d "$1" ]] && mkdir -p "$1"
+ plank_dir="$1"
+ shift
+ cp -vr "$plank_dir" "$@"
+}
+
install_theme() {
[[ ! -d "zuki-themes" ]] && update
for color in ${colors[@]};do
@@ -58,12 +65,16 @@ install_theme() {
cp -r Zukitwo-*-Xfwm/ "$HOME/.themes"
echo "Installing Openbox themes..."
cp -r Zukitwo-*-Openbox/ "$HOME/.themes"
+ echo "Installing Plank themes..."
+ install_plank_theme "$HOME/.local/share/plank/themes/" ./plank/*
else
echo "Installing Xfwm themes system-wide..."
mkdir -p "$DESTDIR/usr/share/themes/"
cp -r "$PWD"/Zukitwo-*-Xfwm/ "$DESTDIR/usr/share/themes/"
echo "Installing Openbox themes system-wide..."
cp -r "$PWD"/Zukitwo-*-Openbox/ "$DESTDIR/usr/share/themes/"
+ echo "Installing Plank themes system-wide..."
+ install_plank_theme "/usr/share/plank/themes/" ./plank/*
fi
printf '\n'
}