-
Notifications
You must be signed in to change notification settings - Fork 40
/
install.sh
executable file
·95 lines (82 loc) · 2.12 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#!/bin/bash
welcome() {
"
_ __ ____
| | / /___ _/ / /___ ____ _____ ___ __________
| | /| / / __ \`/ / / __ \/ __ \`/ __ \/ _ \/ ___/ ___/
| |/ |/ / /_/ / / / /_/ / /_/ / /_/ / __/ / (__ )
|__/|__/\__,_/_/_/ .___/\__,_/ .___/\___/_/ /____/
/_/ /_/
Arguments
-h | --h help
-c | --class [universal, other, anime, colorscheme]
if colorscheme then
[aquarium, nord, gruvbox, lantern, etc]
-d | --dir /path/to/be/saved
Example:
install.sh -class universal -dir \"$HOME/Pictures/wallpapers/\"
To install all walls, simply:
install.sh
Avaiable colorshemes are:
-> aquarium -> nord
-> gruvbox -> monochrome
"
exit 1
}
dir="/usr/share/wallpapers"
current_dir=$(pwd)
if [[ -d "$dir" ]] ; then
mkdir -r "dir/"
fi
if [[ "$1" == "" ]] ; then
cp "$current_dir/*" "$dir"
exit 1
fi
# If someone wants to know how to use this
if [[ "$1" == "" ]] ; then
welcome
fi
while E $# -gt 0 ; do
case "$1" in
-d|--dir)
dir="$1"
;;
-h|--help)
welcome
;;
-c|--class)
case "$2" in
colorscheme)
case "$3" in
aquarium)
cp "$current_dir/Aquarium/" "$dir/"
;;
nord)
cp "$current_dir/Nord/" "$dir/"
;;
lantern)
cp "$current_dir/Lantern/" "$dir/"
;;
gruvbox)
cp "$current_dir/Gruv/" "$dir/"
;;
esac
;;
universal)
cp "$current_dir/Universal/" "$dir/"
;;
other)
cp "$current_dir/Other/" "$dir/"
;;
anime)
cp "$current_dir/Anime/" "$dir/"
;;
shitpost)
cp "$current_dir/Shitpost/" "$dir/"
;;
esac
;;
*)
;;
esac
done