#!/bin/bash
# Bash Menu Script Installasion Depedency

# update first
sudo pacman -Syyu || error "Error syncing the repos."

# make ricing directory
mkdir $HOME/Documents/Rice

# Banner
echo -e ""
echo -e "      Script For Installasion Depedency And Some Stuff © @S4NKALP"
echo -e ""

# Main
PS3='Please enter your choice: '
options=("Install Depedency [ Pacman ]" "Install [ yay ]" "Install [ paru ]" "Install Depedency [ yay ]"  "Exit" )
select opt in "${options[@]}"
do
    case $opt in
        "Install Depedency [ Pacman ]")
            sudo pacman -Sy --needed acpi physlock  webp-pixbuf-loader adobe-source-han-sans-otc-fonts zathura zathura-pdf-mupdf playerctl jgmenu ttf-materials-design-icons-git stacer ksuperkey geany geany-plugins ueberzug viewnior  alsa-card-profiles alsa-firmware alsa-lib alsa-plugins alsa-tools alsa-topology-conf alsa-utils alsa-ucm-conf sxhkd bmon dialog dmenu feh fsarchiver gpick ffmpeg ffmpegthumbnailer imagemagick gvfs gvfs-afc gvfs-google gvfs-gphoto2 gvfs-mtp gvfs-smb highlight htop inetutils inotify-tools kitty libfm libva-mesa-driver light lxappearance maim mesa mpc mpd mpv mtools ncmpcpp network-manager-applet networkmanager nfs-utils openssh pavucontrol pulseaudio pulseaudio-alsa pulseaudio-equalizer-ladspa pulsemixer ranger reflector rofi rsync rxvt-unicode-terminfo thunar thunar-archive-plugin thunar-media-tags-plugin thunar-volman unrar unzip vulkan-radeon wpa_supplicant wmctrl xarchiver xclip xdg-user-dirs xdg-user-dirs-gtk xdg-utils xf86-video-amdgpu xf86-video-ati xf86-video-vesa xfce4-power-manager xfce4-settings youtube-dl zathura zsh zsh-autosuggestions zsh-completions zsh-syntax-highlighting xorg xorg-server jq xsettingsd dosfstools polkit zip tmux neovim playerctl wireless_tools numlockx neovim fzf
            echo "----------------------------"
            echo " install depedency finished "
            echo "----------------------------"
            ;;
        "Install [ yay ]")
            cd $HOME/Documents/Rice && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
            echo "----------------------------"
            echo " install yay finished "
            echo "----------------------------"
            ;;
	"Install [ paru ]")
	    cd $HOME/Documents/Rice && git clone https://aur.archlinux.org/paru.git && cd paru && makepkg -si
            echo "----------------------------"
            echo " install paru finished "
            echo "----------------------------"
            ;;
        "Install Depedency [ yay ]")
            yay -S --noconfirm --needed bspwm-git dunst-git  nerd-fonts-fira-code noto-fonts-emoji ani-cli picom-git noto-fonts-main timidity++ backlight  ttf-iosevka  ttf-sarasa-gothic ttf-font-awesome ttf-jetbrains-mono nerd-fonts-jetbrains-mono ttf-terminus-nerd ttf-fira-code  brightnessctl cava eww-git i3lock-color papirus-icon-theme papirus-linux-universe picom-git polybar  xfce-polkit plymouth plymouth-theme-spinner-alt-git todo-bin greenclip
            echo "----------------------------"
            echo " install depedency finished "
            echo "----------------------------"
            ;;
        "Exit")
            exit 0
            ;;
        *) echo "Invalid Selection $REPLY";;
    esac
  break
done

