-
Notifications
You must be signed in to change notification settings - Fork 9
/
install.sh
43 lines (38 loc) · 1.31 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
read -p "Do you want to install Teleporty Theme [Y/n]?" answer
echo "Answer: $answer"
case "$answer" in
[yY][eE][sS]|[yY]|"")
echo "Copying themes..."
PLANKDIR="$HOME/.local/share/plank/themes"
echo "Plank Directory: $PLANKDIR"
if [ -d "$PLANKDIR" ]; then
echo "Plank directory found"
cp -Ri ./theme-dark-red "$PLANKDIR" &&
echo "Dark-red theme copied"
cp -Ri ./theme-light-blue "$PLANKDIR" &&
echo "Light-Blue theme copied"
cp -Ri ./theme-Pink "$PLANKDIR"
echo "Pink theme copied"
cp -Ri ./theme-mint "$PLANKDIR"
echo "Mint theme copied"
echo "Done"
else
echo "Could not find $PLANKDIR"
echo "Please ensure Plank Dock is installed. see: https://github.com/ricotz/plank"
echo "For debian-based systems, install with 'sudo apt install plank'"
exit 1
fi
;;
*)
;;
esac
if command -v plank >/dev/null 2>&1; then
echo "Plank Dock is installed, select teleporty theme in plank preferences"
plank --preferences
else
echo "Plank Dock is not installed"
echo "Please install Plank Dock and try again"
echo "For debian-based systems, install with 'sudo apt install plank'"
exit 1
fi