#!/bin/sh
#

#
# Additional Packages
COMMON="
zsh zsh-syntax-highlighting zsh-autosuggestions
linux-headers
which tmux
neofetch
powerline powerline-fonts powerline-vim python-powerline-gitstatus
cinnamon gnome-terminal xorg gdm xed xviewer xreader xplayer
mate-icon-theme-faenza papirus-icon-theme arc-icon-theme hicolor-icon-theme obsidian-icon-theme
bluez bluez-utils blueberry
system-config-printer cups brother-mfc-j5330dw
keepass xdotool
tlp tlp-rdw
sshfs curlftpfs
nextcloud-client
"

MULTIMEDIA="
jack2 qjackctl carla ardour calf eq10q soundfont-fluid swh-plugins guitarix xplugins.lv2
rhythmbox ario
"
_="ffmpeg
kodi kodi-pvr-hts
spotify-client
photocollage
gxtuner
lame
"


TOOLS="
docker docker-compose
firefox evolution gnome-keyring
texlive-bin texlive-latexextra
libreoffice-still
pdfmerger
"
_="
gnuplot
gvncviewer
gimp
kicad kicad-packages3d
openscad freecad
"

PROGRAMMING="
python-pip python-virtualenv jq
python-wxpython
meld
code code-oss-marketplace autopep8
"
_="arduino patchelf libserialport0
minicom
"


ALL=$COMMON\ $MULTIMEDIA\ $TOOLS\ $PROGRAMMING

echo Updating repositories:
echo ----------------------
echo
echo The followin packages and their required depending packages will be installed:
echo ------------------------------------------------------------------------------
echo $ALL
echo ------------------------------------------------------------------------------
read -r -p "Are you sure? [y/N] " response
echo ------------------------------------------------------------------------------
case "$response" in
    [yY][eE][sS]|[yY]) 
        yay --needed -Sy $ALL
        #
        echo
        echo You might want to execute the following commands:
        echo -------------------------------------------------
        echo systemctl enable gdm
        echo systemctl disable systemd-netword
        echo systemctl enable NetworkManager
        echo systemctl disable wpa_supplicant@xxxx
        echo systemctl enable wpa_supplicant
        echo systemctl enable bluetooth
        echo
        echo and reboot the system...
        ;;
    *)
        echo Installation aborted!
        ;;
esac