-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·57 lines (42 loc) · 1.22 KB
/
install.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
53
54
55
56
57
#!/usr/bin/env bash
echo "[!] dive widget installer"
echo "[*] setting up osx-cpu-temp"
git clone https://github.com/lavoiesl/osx-cpu-temp
cd osx-cpu-temp
make
mv osx-cpu-temp ../scripts
cd ..
chmod -R 755 scripts
echo "[*] installing ifstat"
brew install ifstat
echo "[*] installing python3"
brew install python
echo "[!] please enter widget details"
printf "[>] airpod alias: "
read headset
printf "[>] network adapter name: "
read nwadap
printf "[>] music platform (spotify/itunes/both): "
read platform
printf "[>] VPN name: "
read vpn
echo "[*] writing data.json"
echo "{ \"bt_headset\":\""$headset"\"," > data.json
echo " \"nw_adapter\":\""$nwadap"\"," >> data.json
echo " \"vpn_name\":\""$vpn"\"," >> data.json
echo " \"platform\":\""$platform"\"}" >> data.json
echo "[!] you can change these values later in data.json"
#printf "[>] set up widget order? (y/n): "
#read order
#if [ $order == "y" ]
# then
# utils/./widget-arranger
# else
# echo "[!] you can set this up later by running utils/./widget-arranger"
#fi
echo "[*] moving files"
mkdir -p $HOME/Library/Application\ Support/Übersicht/widgets/dive
mv * $HOME/Library/Application\ Support/Übersicht/widgets/dive/
cd ..
sudo rm -r dive
echo "[!] done!"