-
-
Notifications
You must be signed in to change notification settings - Fork 116
/
uninstall.sh
executable file
·38 lines (32 loc) · 1.09 KB
/
uninstall.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
#!/usr/bin/env bash
## Dynamic Wallpaper : Set wallpapers according to current time.
## Created to work better with job schedulers (cron)
## ANSI Colors (FG & BG)
RED="$(printf '\033[31m')" GREEN="$(printf '\033[32m')"
ORANGE="$(printf '\033[33m')" BLUE="$(printf '\033[34m')"
MAGENTA="$(printf '\033[35m')" CYAN="$(printf '\033[36m')"
WHITE="$(printf '\033[37m')" BLACK="$(printf '\033[30m')"
REDBG="$(printf '\033[41m')" GREENBG="$(printf '\033[42m')"
ORANGEBG="$(printf '\033[43m')" BLUEBG="$(printf '\033[44m')"
MAGENTABG="$(printf '\033[45m')" CYANBG="$(printf '\033[46m')"
WHITEBG="$(printf '\033[47m')" BLACKBG="$(printf '\033[40m')"
# Path
DES="/usr/share"
## Delete files
rmdir_dw() {
echo -e ${ORANGE}"[*] Uninstalling Dynamic Wallpaper..."${WHITE}
if [[ -d "$DES"/dynamic-wallpaper ]]; then
# delete dwall directory
sudo rm -rf "$DES"/dynamic-wallpaper
fi
}
del_files() {
# remove link in bin directory
if [[ -L /usr/bin/dwall ]]; then
sudo rm /usr/bin/dwall
fi
echo -e ${GREEN}"[*] Uninstalled Successfully."${WHITE}
}
## Uninstall
rmdir_dw
del_files