forked from Botspot/Windows-10
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall
More file actions
executable file
·46 lines (42 loc) · 1.14 KB
/
uninstall
File metadata and controls
executable file
·46 lines (42 loc) · 1.14 KB
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
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR
echo "Uninstalling from $DIR"
echo ""
killall xcompmgr tint2
echo "Removing themes and window border"
sudo rm -rf /usr/share/themes/Windows-10
sudo rm -rf /usr/share/themes/Windows-10-2
echo "Removing icons and mouse pointer"
sudo rm -rf /usr/share/icons/Windows-10
echo "Removing fonts"
sudo rm -rf "/usr/share/fonts/Google Sans"
echo "Removing config files"
cd $DIR/root
rm $(find home/pi/.config -type f | sed -e 's#^#/#' | tr '\n' ' ' ) $DIR/backup &>/dev/null
cd
echo "Restoring original config files"
sudo cp -a $DIR/backup/. /
echo "Removing composite manager and GTK engine"
#echo ""
#echo ""
#sudo apt purge xcompmgr gtk2-engines-murrine tint2 -y
#echo ""
#echo ""
echo "Uninstallation complete. Refreshing desktop."
killall pcmanfm lxpanel &>/dev/null
sleep 5
lxpanel --profile LXDE-pi &>/dev/null &
sleep 3
openbox --restart &>/dev/null
pcmanfm --desktop --profile LXDE-pi &>/dev/null &
openbox --restart &>/dev/null
if [ -f /usr/bin/conky ];then
killall conky
sleep 1
conky &>/dev/null &
sleep 1
fi
echo "removing backup"
gio trash $DIR/backup
exit 0