blob: c6fb0310b656f98ad9b968ed7bb92fe47d918273 (
plain) (
blame)
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
|
#!/usr/bin/env bash
SYMLINKDIR=$(readlink -f "$0")
BASEDIR=$(dirname "$SYMLINKDIR")
cd $BASEDIR
if [ -f /etc/os-release ]; then
. /etc/os-release
OS=$NAME
fi
read -p "Install dependencies? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
case $OS in
arch)
sudo pacman -S picom xorg-setxkbmap feh xorg-xinput dash imlib2 xorg-xsetroot alacritty flameshot rofi xorg-xbacklight pamixer playerctl xsecurelock git base rsync sway waybar
;;
void)
sudo xbps-install -S picom setxkbmap feh xinput dash imlib2 xsetroot alacritty flameshot rofi xbacklight pamixer playerctl git rsync
;;
*)
echo "You'll have to install the dependencies yourself"
;;
esac
fi;
git pull;
function doIt() {
git submodule update --init --recursive
rsync --exclude ".git/" \
--exclude ".DS_Store" \
--exclude ".osx" \
--exclude "bootstrap.sh" \
--exclude "README.md" \
--exclude "LICENSE.md" \
--exclude "dwm" \
-avh --no-perms ./ ~/
}
if [ "$1" == "--force" -o "$1" == "-f" ]; then
doIt;
else
read -p "This may overwrite existing files in your home directory. Are you sure? (y/n) " -n 1;
echo "";
if [[ $REPLY =~ ^[Yy]$ ]]; then
doIt;
fi;
fi;
unset doIt;
|