forked from ChrisTitusTech/dwm-titus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
43 lines (33 loc) · 822 Bytes
/
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
#!/usr/bin/env bash
RUNDIR=$PWD
echo "Installing dependencies..."
./setup_depends.sh
echo "Installing dwmblocks..."
if [ -d "$RUNDIR/dwmblocks/config.h" ]; then
echo "dwmblocks is installed"
else
echo "dwmblocks is not installed"
echo "Installing dwmblocks..."
cd "$RUNDIR" || exit
sudo cp cpuu /bin/
sudo chmod +x /bin/cpuu
git submodule init dwmblocks
git submodule update dwmblocks
cd dwmblocks || exit
make
sudo make install
fi
cd "$RUNDIR" || exit
read -p "Do you want copy the config files (y/n): " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
echo "Copying config files..."
cp -r dotconfig/* ~/.config
fi
echo "Copying wallpaper"
cp chicken.jpg ~
echo "Installing sddm"
sudo systemctl enable sddm
make
sudo make install