#!/bin/sh # Full (probably) setup for arch set -e # Install yay cd if ! type "yay" &> /dev/null; then echo "Yay not found, installing..." if test -d yay; then rm -rf yay fi git clone https://aur.archlinux.org/yay.git cd yay makepkg -si --noconfirm cd rm -rf yay else echo -e "\nYay is already installed, skipping..." fi # Install base shell if [ $1 -ge 1 ]; then echo -e "\nInstalling base shell..." yay -S --needed --noconfirm \ bat \ btop \ byobu \ fd \ fzf \ man-db \ man-pages \ mosh \ neovim \ nnn \ oh-my-zsh-git \ ripgrep \ rsync \ rubygems \ rustup \ sl \ unrar \ unzip \ wget \ zsh \ fi # Install basic GUI if [ $1 -ge 2 ]; then echo -e "\nInstalling basic GUI..." yay -S --needed --noconfirm \ acpi \ alacritty \ arandr \ awesome \ bluez \ chromium \ firefox-developer-edition \ maim \ nsxiv \ otf-font-awesome \ picom \ playerctl \ polkit-gnome \ python-pywal \ redshift \ ttf-font-awesome \ unclutter \ xclip \ xorg-server \ xorg-xinit \ xorg-xrandr \ fi # Install extras if [ $1 -ge 3 ]; then echo -e "\nInstalling extras..." yay -S --needed --noconfirm \ beautiful-discord-git \ caprine \ discord \ gimp \ python-pywalfox \ pywal-discord-git \ spotify-launcher \ steam \ telegram-desktop \ thunderbird \ wal-telegram-git \ fi # Set shell echo "" if [ $SHELL == "/bin/zsh" ]; then echo "Shell already set to zsh" else sudo chsh -s /bin/zsh $USER echo -e "\nLog out and back in for changes to take effect." fi