forked from adi1090x/battery-wallpaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.sh
executable file
·33 lines (27 loc) · 1.05 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
#!/usr/bin/env bash
## Battery Wallpaper : Set desktop background according to battery percentage, with charging animation.
## 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 Battery Wallpaper..."${WHITE}
if [[ -d "$DES"/battery-wallpaper ]]; then
# delete dwall directory
sudo rm -rf "$DES"/battery-wallpaper
fi
}
del_files() {
# remove link in bin directory
if [[ -L /usr/bin/bwall ]]; then
sudo rm /usr/bin/bwall
fi
echo -e ${GREEN}"[*] Uninstalled Successfully."${WHITE}
}
## Uninstall
rmdir_dw
del_files