Added setup script

This commit is contained in:
2025-12-31 02:12:30 +01:00
parent a60d41229c
commit 04f1a29009
2 changed files with 53 additions and 0 deletions

22
packages.txt Normal file
View File

@@ -0,0 +1,22 @@
arrpc
btop
eza
fastfetch
fuzzel
fzf
ghostty
git
hyfetch
ncdu
neovim
oh-my-posh
otf-linja-pona
power-profiles-daemon
reflector
tealdeer
reflector
ttf-sourcecodepro-nerd
vim
wl-clipboard
zoxide
zsh

31
setup.sh Executable file
View File

@@ -0,0 +1,31 @@
#!/usr/bin/env bash
if ! command -v paru &>/dev/null; then
echo "Installing paru"
sudo pacman -S base-devel git --needed --noconfirm
TEMP_DIR=$(mktemp -d)
git clone https://aur.archlinux.org/paru-bin.git $TEMP_DIR/paru-bin
cd $TEMP_DIR/paru-bin
makepkg -si --noconfirm
fi
echo "Installing packages"
sudo -v
paru -S --noconfirm --needed - <$HOME/.dotfiles/packages.txt
echo "Changing default shell"
sudo chsh -s /bin/zsh $USER
echo "Setting default git branch to \"main\""
git config --global init.defaultBranch main
echo "Applying arrpc fix"
sudo cp /usr/lib/systemd/user/arrpc.service /etc/systemd/system/arrpc.service
sudo systemctl enable arrpc --now
echo "Applying stow"
cd $HOME/.dotfiles
stow fastfetch fuzzel ghostty godot hyfetch mangohud niri nvim oh-my-posh waybar wofi zsh