#!/bin/bash

# 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 deps
echo -e "\nInstalling dependencies..."
yay -S --needed --noconfirm \
alacritty \
alsa-utils \
arandr \
awesome \
beautiful-discord-git \
bluez \
btop \
byobu \
caprine \
chromium \
discord \
firefox-developer-edition \
gimp \
lf \
light \
maim \
man-db \
man-pages \
mosh \
mpd \
neovim \
nitrogen \
nnn \
nvim-packer-git \
oh-my-zsh-git \
otf-font-awesome \
picom \
playerctl \
polkit-gnome \
powerline-fonts \
python-pywal \
python-pywalfox \
pywal-discord-git \
rar \
redshift \
rsync \
sl \
spotify-launcher \
steam \
sxiv \
telegram-desktop \
thunderbird \
ttf-font-awesome \
unclutter \
upower \
wal-telegram-git \
wget \
xclip \
xorg-server \
xorg-xinit \
xorg-xrandr \
zsh \

# Set shell
echo ""
sudo chsh -s /bin/zsh $USER