aboutsummaryrefslogtreecommitdiff
path: root/install.sh
blob: a59d05a560273a68aa81d45ddc8e3f44a9d3b00e (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
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash

function command_exists {
	command -v $1 &> /dev/null
}

set -x

if [ $UID -ne 0 ]; then
	if command_exists sudo; then
		SUDO="sudo"
	elif command_exists doas; then
		SUDO="doas"
	fi
fi

if command_exists apt; then
	wget -O- https://updates.signal.org/desktop/apt/keys.asc | $SUDO apt-key add -
	echo "deb [arch=$(dpkg --print-architecture)] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list

	$SUDO apt update
	$SUDO apt install -y \
		bspwm \
		xorg \
		rofi \
		polybar \
		scrot \
		i3lock-fancy \
		feh \
		picom \
		dunst \
		lua5.3 \
		vlc \
		firefox-esr \
		thunderbird \
		signal-desktop
	$SUDO apt purge -y \
		lemonbar # automatically installed but unwanted
else
	echo "Your distro is not supported."
	exit 1
fi

mkdir -p ~/.config/bspwm
ln -s ${PWD}/bspwmrc ~/.config/bspwm/bspwmrc

mkdir -p ~/.config/sxhkd
ln -s ${PWD}/sxhkdrc ~/.config/sxhkd/sxhkdrc

mkdir -p ~/.config/rofi
ln -s ${PWD}/rofi_config ~/.config/rofi/config

mkdir -p ~/.config/polybar
ln -s ${PWD}/polybar ~/.config/polybar

curl -L https://sw.kovidgoyal.net/kitty/installer.sh | bash

mkdir -p ~/.config/kitty
ln -s ${PWD}/kitty.conf ~/.config/kitty/kitty.conf

mkdir -p ~/.config
ln -s ${PWD}/picom.conf ~/.config/picom.conf

./shell_only.sh