-
Notifications
You must be signed in to change notification settings - Fork 0
/
mm-setup.sh
55 lines (43 loc) · 1.78 KB
/
mm-setup.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
#!/bin/bash
my_user=$user #Get the current user
echo "Disabling Screensaver"
#Prevent screen from turning off
export DISPLAY=:0
xset -dpms #disable Display Power Mgmnt Signaling
xset s off #Disable screensaver from starting
#xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/dpms-enabled -s false #Disable power management settings for XFCE
echo "Installing MM"
cd /home/$my_user
git clone https://github.com/MichMich/MagicMirror && cd "$(basename "$_" .git)"
npm run install-mm
##Install MM Modules
echo "Installing Custom MM Modules"
##MonthlyCalendar
cd /home/$my_user/MagicMirror/modules
git clone https://github.com/kolbyjack/MMM-MonthlyCalendar.git && cd "$(basename "$_" .git)"
npm install
##Wallpaper
cd /home/$my_user/MagicMirror/modules
git clone https://github.com/kolbyjack/MMM-Wallpaper.git && cd "$(basename "$_" .git)"
npm install
##StockTicker
cd /home/$my_user/MagicMirror/modules
git clone https://github.com/jalibu/MMM-Jast.git && cd "$(basename "$_" .git)"
npm install --only=production
##Dark Sky Forecast
cd /home/$my_user/MagicMirror/modules
git clone https://github.com/jclarke0000/MMM-DarkSkyForecast.git && cd "$(basename "$_" .git)"
git fetch origin pull/38/head:pirate
git checkout pirate
npm install
cd /home/$my_user/MagicMirror/modules
git clone https://github.com/Jopyth/MMM-Remote-Control.git && cd "$(basename "$_" .git)"
npm install
echo "Updating MM Config"
cd /home/$my_user/MagicMirror/config
curl -s https://raw.githubusercontent.com/Robert-litts/home-dashboard/main/config.js -o config.js
#cd /home/$user/MagicMirror/css
#curl -s https://raw.githubusercontent.com/Robert-litts/home-dashboard/main/home_dash_custom.css -o custom.css
echo "Enabling MM Autostart"
cd/home/$my_user
curl https://raw.githubusercontent.com/Robert-litts/home-dashboard/main/pm2.sh | bash