First commit

This commit is contained in:
Yorick Barbanneau 2019-09-03 11:52:04 +02:00
commit 8f9e6bf1c7
13 changed files with 521 additions and 0 deletions

30
install.sh Executable file
View file

@ -0,0 +1,30 @@
#!/bin/bash
required="sway swayidle swaylock waybar"
printf "Checking required programs :\n"
for p in $required
do
command -v $p >/dev/null 2>&1 || { printf "\t%s is not installed, bye\n" $p; exit 10; }
printf "\t%s found\n" $p
done
printf "Create symblinks for configurations :\n"
cd conf
while read d
do
printf "\t%s conf folder found\n" $d
rm -rf $HOME/.config/${d%/}
ln -s "$(pwd)/${d%/}" "$HOME/.config/${d%/}"
done < <(ls -d -1 */)
cd ..
printf "Create symblink for executables\n"
cd bin
while read d
do
printf "\t%s script found\n" "$d"
#rm -rf $HOME/.local/bin/${d}
#ln -s "$(pwd)/${d}" "$HOME/.local/bin/${d}"
done < <(ls -1 *)
exit 0