Shells/manjaroEasy.sh
2022-12-11 21:20:41 +03:00

115 lines
2.8 KiB
Bash
Executable file

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
echo -e '\n-->HiFile over Net\n'
hifile
webappmanager
goverlay
debtap
}
function debtap
{
mkdir ~/debtap
git clone https://github.com/helixarch/debtap.git ~/debtap/
(cd ~/debtap/ ; sudo ./debtap -u)
}
function webappmanager
{
echo -e '\n-->WebAppManager\n'
#Web App Requeriments
yes | sudo pacman -S python
yes | sudo pacman -S python-setproctitle
yes | sudo pacman -S python-pip
pip install tldextract
pip install pillow
yes | sudo pacman -S gtk3
mkdir ~/tTemp
git clone https://github.com/linuxmint/webapp-manager.git ~/tTemp/
(cd ~/tTemp/ ; PID=$! | ./test)
kill -INT $PID
sudo rm -r ~/tTemp
}
function goverlay
{
echo -e '\n-->GOverlay\n'
#Goverlay Requeriments
yes | sudo pacman -S qt5-base
yes | sudo pacman -S qt5pas
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
}
function hifile
{
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
;;
3) webappmanager;;
*)
echo -e ' **\Invalid Selection\**\n Quiting'
;;
esac
echo -e '\n DONE\'
restartSelection