#!/bin/bash

# Required dependencies
yay -S --noconfirm xorg-server \
    xorg-xbacklight \
    xfce4-power-manager \
    xf86-video-intel \
    intel-media-driver \
    sof-firmware \
    alsa-ucm-conf \
    alsa-utils \
    pulseaudio \
    ponymix \
    lightdm \
    lightdm-gtk-greeter \
    rofi \
    i3-gaps \
    i3status-rust \
    i3lock-fancy-git \
    pulseaudio-ctl \
    picom-jonaburg-git \
    autorandr \
    nemo \
    gvfs-smb \
    deadd-notification-center-bin \
    awesome-terminal-fonts \
    nerd-fonts-jetbrains-mono \
    ttf-font-awesome \
    noto-fonts \
    noto-fonts-emoji \
    qogir-gtk-theme \
    qogir-icon-theme \
    qt5-styleplugins \
    pavucontrol \
    nitrogen \
    neofetch \
    mpd \
    mpdris2 \
    bluez \
    bluez-utils\
    playerctl \
    lxappearance-gtk3 \
    xfce4-terminal \
    polkit-gnome \
    fish \
    ytmdesktop \
    tlp \
    openssh \
    cronie \
    gthumb \
    pamac-aur-git

# VMware guest dependencies
#yay -S open-vm-tools \
#	xf86-input-vmmouse \
#	xf86-video-vmware \
#	mesa
#sudo systemctl enable --now vmtoolsd

sudo chsh -s /bin/fish dunestorm

sudo systemctl enable --now tlp
sudo systemctl enable cronie
sudo systemctl enable bluetooth
sudo systemctl enable lightdm

echo "QT_QPA_PLATFORMTHEME=gtk2" | sudo tee -a /etc/environment
echo "GDK_SCALE=1.25" | sudo tee -a /etc/environment
echo "GDK_DPI_SCALE=1.25" | sudo tee -a /etc/environment

cp -R config/* ~/.config/
cp -R local/* ~/.local/
sudo chmod +x ~/.config/rofi/scripts/*.sh

mkdir ~/Wallpapers
cp -R wallpapers/* ~/Wallpapers

sudo cp -f lightdm/* /etc/lightdm/
