Fix paths

This commit is contained in:
exu 2023-12-08 20:05:01 +01:00
parent c084949ab3
commit cf669bf340

View File

@ -74,7 +74,7 @@ git clone -b temporary-dir https://gitea.exu.li/realstickman/configs.git "$tempd
# NOTE Arguments get passed automatically now # NOTE Arguments get passed automatically now
if ! cmp --silent "$scriptloc" "$HOME/scripts/arch-config.sh"; then if ! cmp --silent "$scriptloc" "$HOME/scripts/arch-config.sh"; then
echo Removed old config file and launched new one. echo Removed old config file and launched new one.
cp "$tempdir/configs/arch-config/scripts/arch-config.sh" "$HOME/scripts/" && bash ~/scripts/arch-config.sh "$@" cp "$tempdir/arch-config/scripts/arch-config.sh" "$HOME/scripts/" && bash ~/scripts/arch-config.sh "$@"
fi fi
# if no seltheme file exists, ask to select a theme # if no seltheme file exists, ask to select a theme
@ -243,21 +243,21 @@ if [[ copy_firefox -eq 1 ]]; then
fi fi
#copy single files #copy single files
cp -r "$tempdir/configs/arch-config/.face" ~/ cp -r "$tempdir/arch-config/.face" ~/
cp -r "$tempdir/configs/arch-config/.gtkrc-2.0" ~/ cp -r "$tempdir/arch-config/.gtkrc-2.0" ~/
cp -r "$tempdir/configs/arch-config/.gitconfig" ~/ cp -r "$tempdir/arch-config/.gitconfig" ~/
cp -r "$tempdir/configs/arch-config/.xinitrc" ~/ cp -r "$tempdir/arch-config/.xinitrc" ~/
cp -r "$tempdir/configs/arch-config/.kopiaignore" ~/ cp -r "$tempdir/arch-config/.kopiaignore" ~/
echo Copied files echo Copied files
# make .xinitrc executable # make .xinitrc executable
chmod +x ~/.xinitrc chmod +x ~/.xinitrc
#copy scripts #copy scripts
cp -r "$tempdir/configs/arch-config/scripts/" ~/ cp -r "$tempdir/arch-config/scripts/" ~/
#copy stuff to /etc #copy stuff to /etc
sudo cp -r "$tempdir/configs/arch-config/etc" / sudo cp -r "$tempdir/arch-config/etc" /
echo Copied folders echo Copied folders
@ -269,10 +269,10 @@ if [ "$distro" == "ID=arch" ]; then
fi fi
#copy usr stuff #copy usr stuff
sudo cp -r "$tempdir/configs/arch-config/usr" / sudo cp -r "$tempdir/arch-config/usr" /
# copy xresources for sway # copy xresources for sway
cp "$tempdir/configs/arch-config/.Xdefaults" ~/ cp "$tempdir/arch-config/.Xdefaults" ~/
echo echo
cat <<EOF cat <<EOF
@ -308,14 +308,14 @@ EOF
seltheme="$(cat "$HOME/.seltheme")" seltheme="$(cat "$HOME/.seltheme")"
if [[ "$seltheme" == "nyarch" ]]; then if [[ "$seltheme" == "nyarch" ]]; then
#cp -r "./themes/nyarch/i3" "$HOME/.config/" #cp -r "./themes/nyarch/i3" "$HOME/.config/"
cp "$tempdir/configs/arch-themes/nyarch/sway/color" "$HOME/.config/sway/config.d/" cp "$tempdir/arch-themes/nyarch/sway/color" "$HOME/.config/sway/config.d/"
#cp -r "$HOME/configs/arch-themes/nyarch/polybar" "$HOME/.config/" #cp -r "$HOME/configs/arch-themes/nyarch/polybar" "$HOME/.config/"
#cp -r "./themes/nyarch/neofetch/lowpoly_flamegirl_blue.txt" "$HOME/.config/neofetch/lowpoly_flamegirl.txt" #cp -r "./themes/nyarch/neofetch/lowpoly_flamegirl_blue.txt" "$HOME/.config/neofetch/lowpoly_flamegirl.txt"
#cp "./themes/.fehbg-nyarch" "$HOME/.fehbg" #cp "./themes/.fehbg-nyarch" "$HOME/.fehbg"
#sed -i 's/^NAME=".*"/NAME="Rawrch Linyux"/' /etc/os-release #sed -i 's/^NAME=".*"/NAME="Rawrch Linyux"/' /etc/os-release
elif [[ "$seltheme" == "space-pink" ]]; then elif [[ "$seltheme" == "space-pink" ]]; then
#cp -r "./themes/space-pink/i3" "$HOME/.config/" #cp -r "./themes/space-pink/i3" "$HOME/.config/"
cp "$tempdir/configs/arch-themes/space-pink/sway/color" "$HOME/.config/sway/config.d/" cp "$tempdir/arch-themes/space-pink/sway/color" "$HOME/.config/sway/config.d/"
#cp -r "$HOME/configs/arch-themes/space-pink/polybar" "$HOME/.config/" #cp -r "$HOME/configs/arch-themes/space-pink/polybar" "$HOME/.config/"
#cp -r "./themes/space-pink/neofetch/lowpoly_flamegirl_orange.txt" "$HOME/.config/neofetch/lowpoly_flamegirl.txt" #cp -r "./themes/space-pink/neofetch/lowpoly_flamegirl_orange.txt" "$HOME/.config/neofetch/lowpoly_flamegirl.txt"
#cp "./themes/.fehbg-space-pink" "$HOME/.fehbg" #cp "./themes/.fehbg-space-pink" "$HOME/.fehbg"
@ -345,24 +345,10 @@ EOF
# download cat as cat # download cat as cat
echo "Installing bash cat" echo "Installing bash cat"
git clone https://github.com/RealStickman/bash-cat-with-cat.git &>/dev/null git clone https://github.com/RealStickman/bash-cat-with-cat.git "$tempdir" &>/dev/null
cp ./bash-cat-with-cat/cat.sh "$HOME/scripts/pieces/cat.sh" cp ./bash-cat-with-cat/cat.sh "$HOME/scripts/pieces/cat.sh"
#rm -rf ./bash-cat-with-cat #rm -rf ./bash-cat-with-cat
: '
echo
cat <<EOF
####################
##### PSIPCalc #####
####################
EOF
# download ip-calculator with powershell
echo "Installing powershell ip calculator"
git clone https://github.com/RealStickman/PSipcalc &>/dev/null
cp ./PSipcalc/PSipcalc.ps1 "$HOME/scripts/in_path/sc-psipcalc"
rm -rf ./PSipcalc
'
echo echo
cat <<EOF cat <<EOF
######################################## ########################################