Update setup script to use currect home path

god I am DUUUUMB
This commit is contained in:
2025-09-03 15:21:40 +00:00
committed by GitHub
parent 60610dc81d
commit 3e33770ab0
+9 -9
View File
@@ -53,8 +53,8 @@ if [ "$answer" != "y" ]; then
fi
# Make temporary directory
mkdir $USERTEMP/Downloads/tempinstall || ""
cd $USERTEMP/Downloads/tempinstall
mkdir /home/$USERTEMP/Downloads/tempinstall || ""
cd /home/$USERTEMP/Downloads/tempinstall
# Configuration Files
git clone https://github.com/ION606/config-backup.git
@@ -63,7 +63,7 @@ cd config-backup
# sway
mv -f waybar/config /etc/xdg/waybar/
mv -f waybar/style.css /etc/xdg/waybar/
mv -f config $USERTEMP/.config/sway/config
mv -f config /home/$USERTEMP/.config/sway/config
# replace "ion606" with the selected user
sed -i "s/ion606/$USERTEMP/g" config
@@ -83,11 +83,11 @@ mv -f terminal/alacritty.toml /home/$USERTEMP/.config/alacritty/
mv -f terminal/starship.toml /home/$USERTEMP/.config/
# battery
mkdir -p $USERTEMP/auto-cpufreq/auto-cpufreq.conf
mv auto-cpufreq.conf $USERTEMP/auto-cpufreq/auto-cpufreq.conf
mkdir -p /home/$USERTEMP/auto-cpufreq/auto-cpufreq.conf
mv auto-cpufreq.conf /home/$USERTEMP/auto-cpufreq/auto-cpufreq.conf
# set up automations in child process
mkdir -p $USERTEMP/.automations && cp -r -f auto/* $USERTEMP/.automations/ && $(sudo pacman -Sy --needed --noconfirm dunst && sudo bash $USERTEMP/.automations/setupauto.sh $USERTEMP &>$USERTEMP/setuplogs.log) &
mkdir -p /home/$USERTEMP/.automations && cp -r -f auto/* /home/$USERTEMP/.automations/ && $(sudo pacman -Sy --needed --noconfirm dunst && sudo bash /home/$USERTEMP/.automations/setupauto.sh /home/$USERTEMP &> /home/$USERTEMP/setuplogs.log) &
# Installs
# Librewolf
@@ -111,11 +111,11 @@ mv -f Librewolf/chrome /home/$USERTEMP/.librewolf/
npm install -g @bitwarden/cli alacritty-themes typescript || echo "failed to install Typescript!"
mkdir -p $USERTEMP/.icons
echo -e "https://www.gnome-look.org/p/1305251\nhttps://www.gnome-look.org/p/2091068" >$USERTEMP/.icons/links.txt
mkdir -p /home/$USERTEMP/.icons
echo -e "https://www.gnome-look.org/p/1305251\nhttps://www.gnome-look.org/p/2091068" > /home/$USERTEMP/.icons/links.txt
alacritty-themes --create && alacritty-themes Hyper || echo "alacritty theme install failed!"
cp -r $USERTEMP/.config/wofi/ wofi >/dev/null 2>&1 &
cp -r /home/$USERTEMP/.config/wofi/ wofi >/dev/null 2>&1 &
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
# Remove old programs