Made setup script machine agnostic

This commit is contained in:
2025-12-31 02:39:17 +01:00
parent 04f1a29009
commit 7b6e693735

View File

@@ -1,5 +1,9 @@
#!/usr/bin/env bash
set -e
DOTFILES_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
if ! command -v paru &>/dev/null; then
echo "Installing paru"
sudo pacman -S base-devel git --needed --noconfirm
@@ -14,7 +18,7 @@ fi
echo "Installing packages"
sudo -v
paru -S --noconfirm --needed - <$HOME/.dotfiles/packages.txt
paru -S --noconfirm --needed - <$DOTFILES_DIR/packages.txt
echo "Changing default shell"
sudo chsh -s /bin/zsh $USER
@@ -27,5 +31,5 @@ sudo cp /usr/lib/systemd/user/arrpc.service /etc/systemd/system/arrpc.service
sudo systemctl enable arrpc --now
echo "Applying stow"
cd $HOME/.dotfiles
cd $DOTFILES_DIR
stow fastfetch fuzzel ghostty godot hyfetch mangohud niri nvim oh-my-posh waybar wofi zsh