summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-08 13:27:01 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2019-05-08 13:27:01 +0200
commit43de39dfa61a3d93a2a3266c9df400a4aeedd307 (patch)
tree6e8d225877a86423ce3430d8257572bab17aaaac /install.sh
parent89d89e7dae95703af7d9a3188cb1e73aa99fd13b (diff)
downloaddotfiles-43de39dfa61a3d93a2a3266c9df400a4aeedd307.tar.gz
Added compton & friends
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh30
1 files changed, 22 insertions, 8 deletions
diff --git a/install.sh b/install.sh
index 812dc6b..14be458 100755
--- a/install.sh
+++ b/install.sh
@@ -1,15 +1,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)
+
+#Configs for .config
+CFGFOLDER=(polybar)
+
+echo Configs to install: ${MODULES[@]} ${CFGFOLDER[@]}
+
git submodule init
git submodule update
-mv ~/.config/i3/ ~/.config/i3.old
-mv ~/.vim ~/.vim.old
-mv ~/.xinitrc ~/.xinitrc.old
-mv ~/.config/polybar ~/.config/polybar.old
+for mod in ${MODULES[@]}; do
+ echo Linking $mod
+ mv ~/$mod ~/$mod.old
+ ln -s $(pwd)/$mod ~/$mod
+done
-ln -s $(pwd)/.vim ~/.vim
-ln -s $(pwd)/.i3 ~/.i3
-ln -s $(pwd)/.xinitrc ~/.xinitrc
-ln -s $(pwd)/polybar ~/.config/polybar
+for mod in ${CFGFOLDER[@]}; do
+ mv ~/.config/$mod ~/.config/$mod.old
+ ln -s $(pwd)/$mod ~/.config/$mod
+done