30 lines
685 B
Bash
Executable file
30 lines
685 B
Bash
Executable file
#!/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
|