steppenwolf-dark/install.sh

42 lines
805 B
Bash
Executable file

#!/bin/sh
case $(whoami) in
root)
gtkDir=/usr/share/themes/steppenwolf-dark
qtDir=/usr/share/color-schemes
plankDir=/usr/share/plank/themes
audaciousDir=/usr/share/audacious/Skins
;;
*)
gtkDir=${HOME}/.themes/steppenwolf-dark
qtDir=${HOME}/.local/share/color-schemes
plankDir=${HOME}/.local/share/plank/themes
audaciousDir=${HOME}/.local/share/audacious/Skins
;;
esac
if [ ! -d ${gtkDir} ]; then
mkdir -p ${gtkDir}
fi
if [ ! -d ${qtDir} ]; then
mkdir -p ${qtDir}
fi
if [ ! -d ${plankDir} ]; then
mkdir -p ${plankDir}
fi
if [ ! -d ${audaciousDir} ]; then
mkdir -p ${audaciousDir}
fi
cp -r gtk-* ${gtkDir}
cp -r img ${gtkDir}
cp index.theme ${gtkDir}
cp qt5/*.colors ${qtDir}
cp -r plank/* ${plankDir}
cp -r audacious/steppenwolf ${audaciousDir}