forked from deviantfero/wpgtk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.sh
executable file
·52 lines (47 loc) · 1.29 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
function install_dependencies {
echo "UNINSTALLING DEPENDENCIES"
version="$( uname -r | grep ARCH )"
if [ -n "$version" ]; then
echo "ARCH LINUX DETECTED::"
sh -c "sudo pacman -S python2-pillow feh python-gobject gtk3 libxslt"
echo "DEPENDENCIES INSTALL COMPLETE"
else
version="$( uname -r | grep -Eo "(eneric|64)" )"
if [ -n "$version" ]; then
echo "DEBIAN OR *BUNTU DETECTED"
sh -c "sudo apt-get install feh python3-gi python-gobject python-pip python-imaging xsltproc && pip install Pillow"
else
echo "ANOTHER DISTRO DETECTED:: INSTALL DEPENDENCIES FOR YOUR DISTRO"
echo
fi
fi
}
function tint2support {
echo
echo
echo "UNINSTALLING::TINT2-THEME"
echo
echo "THIS WILL OVERRIDE YOUR TINT2 THEME"
echo
echo -n "do you want to continue[Y/n]: "
read election
if [[ "$election" == "y" || "$election" == "Y" ]]; then
echo -n "UNINSTALLING::TINT2-THEME"
cp ./themes/tint2rc ~/.config/tint2/
cp ./themes/tint2rc.base ~/.config/tint2/
else
echo "TINT2-THEME::NOT-INSTALLED"
return 1
fi
}
function uninstall_color {
echo "UNINSTALLING::WPG"
sudo rm -r /usr/local/bin/py/
sudo rm -r /usr/local/bin/src/
sudo rm /usr/local/bin/wpg
sudo rm /usr/local/bin/wpcscript
sudo rm /usr/local/bin/functions
echo "DONE - wpg HAS BEEN UNINSTALLED"
}
uninstall_color