-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall
executable file
·72 lines (59 loc) · 1.71 KB
/
install
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
#!/bin/bash
echo "Windows 10 transformation script
Designed by Botspot
"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR
echo "Installing $DIR/root"
sleep 1
if [ -d $DIR/backup/home ];then
echo "WARNING! It appears there"\'"s already a backup at $DIR/backup. If you continue, it will be overwritten. Continue? [Y/n]"
read answer
if [ $answer == 'n' ];then
echo "OK, exiting now."
exit 0
fi
fi
echo "Backing up config files"
mkdir -p $DIR/backup
cd $DIR/root
cp --parents -a $(find $HOME/.config -type f | sed -e 's#^#/#' | tr '\n' ' ' ) $DIR/backup &>/dev/null
cd
echo "Copying the new files in"
sudo cp -a ${DIR}/root/. /
if ! dpkg -l pi-apps-82e26f4f &>/dev/null ;then
echo "Installing composite manager, GTK engine, and tint2"
echo ""
echo ""
sudo apt update
sudo apt install xcompmgr tint2 gtk2-engines-murrine -y --no-install-recommends
echo ""
echo ""
fi
echo "Installation complete. Refreshing desktop session now, but rebooting is recommended."
sudo update-icon-caches /usr/share/icons/*
sleep 1
openbox --restart &>/dev/null
killall tint2 pcmanfm lxpanel &>/dev/null
rm -r ~/.cache/tint2 &>/dev/null
sleep 5
tint2 &>/dev/null &
sleep 1
lxpanel --profile LXDE-pi &>/dev/null &
sleep 2
openbox --restart &>/dev/null
sleep 1
pcmanfm --desktop --profile LXDE-pi &>/dev/null &
sleep 2
xcompmgr -C -c -o 0.5 -l -19 -t -10 -r 14 -f -O 0.05 -I 0.05 &>/dev/null &
sleep 1
if [ -f /usr/bin/conky ];then
echo 'restarting conky'
killall conky
sleep 1
conky &>/dev/null &
sleep 1
fi
zenity --info --text="Have a look around.\nPlease let me know if there is anything I can improve. \n\n -Botspot" --icon-name=emblem-default --ellipsize &>/dev/null &
sleep 5
exit 0