clear function restartSelection { echo -e ' |#|Do You Want to Restart System\n0) Restart\n1) Do not Restart\n' read restartCheck case $restartCheck in 0) echo -e '\n |»|Restarting\n' reboot ;; 1) echo -e '\n |»|Do not Restart Selected\n' ;; esac } function installation { echo -e '\n-->Flatpak\n' yes | sudo pacman -S flatpak echo -e '\n-->Wget\n' yes | sudo pacman -S wget echo -e '\n-->Steam\n' yes | sudo pacman -S steam echo -e '\n-->MangoHUD\n' yes | sudo pacman -S mangohud echo -e '\n-->Gamemode\n' yes | sudo pacman -S gamemode echo -e '\n-->Git\n' yes | sudo pacman -S git echo -e '\n-->Alacritty\n' yes | sudo pacman -S alacritty echo -e '\n-->Discord\n' yes | sudo pacman -S discord echo -e '\n-->Code\n' yes | sudo pacman -S code echo -e '\n--->Github Desktop over Flatpak\n' flatpak install -y io.github.shiftey.Desktop echo -e '\n-->Spotify over Flatpak\n' flatpak install -y flathub com.spotify.Client echo -e '\n--Motrix over Flatpak\n' flatpak install -y motrix } function overNet { echo -e '\n We are going to try to download softwares from Internet\n' echo -e '\n-->GOverlay\n' mkdir ~/GOverlay wget -O GOVERLAY_T.tar.xz https://github.com/benjamimgois/goverlay/releases/download/0.9/goverlay_0_9.tar.xz tar xf GOVERLAY_T.tar.xz -C ~/GOverlay rm -r GOVERLAY_T.tar.xz sudo chmod +x ~/GOverlay/start_goverlay.sh echo -e '\n-->HiFile\n' wget -O HiFile.AppImage https://www.hifile.app/api/v1/download?system=linux-appimage chmod +x HiFile.AppImage mkdir ~/.local/share/applications yes | sudo mv HiFile.AppImage ~/.local/share/applications/ echo -e '\n~/.local/share/applications/HiFile.AppImage' | sudo tee /bin/hifile sudo chmod +x /bin/hifile } echo -e ' --->Tahinli Manjaro Easy Setup<---' echo -e '\n\n 1) Check Updates\n 2) Install Programs' read selection case $selection in 1) echo -e ' -|Checking Updates\n' sudo pacman -Syyu ;; 2) echo -e ' -|Installation Selected\n' installation overNet ;; *) echo -e ' **\Invalid Selection\**\n Quiting' ;; esac echo -e '\n DONE\' restartSelection