summaryrefslogtreecommitdiff
path: root/install.sh
blob: 7065395a44c43f2a9fb809a47b664195ee52c757 (plain)
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
#!/bin/bash 

# Programs:
# compton: Compositor
# xterm fo default terminal
# transset-df for xterm transparency

#Configs for home dir
MODULES=(.i3 .vim .xinitrc .compton.conf .bashrc .Xdefaults)

#Configs for .config
CFGFOLDER=(polybar)

echo Configs to install: ${MODULES[@]} ${CFGFOLDER[@]}

git submodule init
git submodule update

for mod in ${MODULES[@]}; do
	echo Linking $mod
	mv ~/$mod ~/$mod.old
	ln -s $(pwd)/$mod ~/$mod
done

for mod in ${CFGFOLDER[@]}; do
	mv ~/.config/$mod ~/.config/$mod.old
	ln -s $(pwd)/$mod ~/.config/$mod
done