This commit is contained in:
2026-05-30 17:10:01 +02:00
parent 4eb2f3b968
commit 3908162636
9 changed files with 65 additions and 71 deletions
+12 -11
View File
@@ -7,13 +7,13 @@ git pull
echo "re-installing/updating pre-requisites"
sudo pacman -Syu ghostty firefox dms-shell yay git wl-clipboard nautilus zsh-history-substring-search zsh-syntax-highlighting zsh-autosuggestions zsh-doc stow brightnessctl pipewire-pulse pipewire matugen adw-gtk-theme wl-copy hyprshot grim satty code-oss zoxide zsh zsh-theme-powerlevel10k eza kanshi ttf-nerd-fonts-symbols-common ttf-nerd-fonts-symbols-mono ttf-nerd-fonts-symbols ttf-cascadia-code-nerd ttf-cascadia-mono-nerd ttf-terminus-nerd ttf-firacode-nerd ttf-ubuntu-nerd
sudo pacman -Syu ghostty shelly firefox dms-shell yay git wl-clipboard nautilus zsh-history-substring-search zsh-syntax-highlighting zsh-autosuggestions zsh-doc stow brightnessctl pipewire-pulse pipewire matugen adw-gtk-theme hyprshot grim satty code shelly zoxide zsh zsh-theme-powerlevel10k eza kanshi ttf-nerd-fonts-symbols-common ttf-nerd-fonts-symbols-mono ttf-nerd-fonts-symbols ttf-cascadia-code-nerd ttf-cascadia-mono-nerd ttf-terminus-nerd ttf-firacode-nerd ttf-ubuntu-nerd
yay -S mangowm-git dsearch-bin
WORKINGDIR=$(pwd)
if [ $WORKINGDIR != "/home/$(whoami)/SDG-OS"]; then
if [ $WORKINGDIR != "/home/$(whoami)/SDG-OS" ]; then
ln -sf $WORKINGDIR /home/$(whoami)
fi
@@ -26,8 +26,15 @@ if [[ $REPLY =~ ^[Yy]$ ]]; then
cp -r /home/$(whoami)/SDG-OS/mango /home/$(whoami)/.config
sleep 5
echo "old version of the config moved to mango-old-$RAND and new version copied in."
else
return 0
fi
read -p "do you want to update and refresh your DankMaterial Shell config? this will reset you back to SDG-OS defaults [y/N] " -n 1 -r REPLY
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
mv /home/$(whoami)/.config/DankMaterialShell /home/$(whoami)/.config/DankMaterialShell-old-$RAND
cp -r /home/$(whoami)/SDG-OS/DankMaterialShell /home/$(whoami)/.config
sleep 5
echo "old version of the config moved to DankMaterialShell-old-$RAND and new version copied in."
fi
echo "re-building SDGOS scripts dir"
@@ -43,8 +50,6 @@ if [[ $REPLY2 =~ ^[Yy]$ ]]; then
cp -r /home/$(whoami)/SDG-OS/ghostty /home/$(whoami)/.config
sleep 5
echo "old ghostty config moved to ghostty-old-$RAND and new config copied in"
else
return 0
fi
read -p "do you want to update and refresh your zshrc config? this will reset you back to SDG-OS defaults [y/N] " -n 1 -r REPLY3
@@ -54,8 +59,6 @@ if [[ $REPLY3 =~ ^[Yy]$ ]]; then
cp /home/$(Whoami)/.config/sdgos/zshrc /home/$(whoami)/.zshrc
sleep 5
echo "old zshrc moved to .zshrc-old-$RAND and new zshrc copied in."
else
return 0
fi
read -p "do you want to update and refresh your p10k config? this will reset you back to SDG-OS defaults [y/N] " -n 1 -r REPLY4
@@ -65,8 +68,6 @@ mv /home/$(whoami)/.p10k.zsh /home/$(whoami)/.p10k.zsh-old-$RAND
cp /home/$(Whoami)/.config/sdgos/p10k.zsh /home/$(whoami)/.p10k.zsh
sleep 5
echo "old p10k moved to .p10k.zsh-old-$RAND and new p10k config copied in"
else
return 0
fi
echo "fixing perms on SDGOS folder"
@@ -74,4 +75,4 @@ chmod -R a+x ~/.config/sdgos
sleep 3
echo "perms fixed, update complete."
echo ""
echo "when you've confirmed functionality of the update, "
echo "please reboot."