From 7ba684b06af5dbff915872c8de2ac1f135c5a9ba Mon Sep 17 00:00:00 2001 From: Rodolfo Date: Mon, 1 Jul 2024 14:21:53 +0800 Subject: [PATCH] Update arch setup to include pijulius picom Update start-setup to get the repo at the beginning of the script --- archsetup.sh | 22 ++++++++++++++++++++++ start-setup.sh | 15 +++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/archsetup.sh b/archsetup.sh index 3b1958f..fbbd130 100755 --- a/archsetup.sh +++ b/archsetup.sh @@ -123,6 +123,28 @@ echo "cd $font_PATH && tar -xvf JetBrainsMono.tar.xz" echo "cd ''" echo "" +# Build pijulius's Picom + +while true; do + read -p "Do you want to install the Pijulius's Picom? (y/n) " answer + if [[ "${answer,,}" == "y" ]]; then + echo "sudo pacman -S --noconfirm --needed " + echo "git clone https://github/pijulius/picom $home_PATH/Software/picom" + echo "cd $home_PATH/Software/picom" + echo "git checkout implemented-window-animations" + echo "git submodule update --init --recursive" + echo "meson --buildtype=release . build" + echo "ninja -C build" + echo "ninja -C build install" + echo "cd ''" + break + elif [[ "${answer,,}" == "n" ]]; then + break + else + echo "Invalid Response (y/n)" + fi +done + echo -e "\n\n\n\n" echo "" echo "==================" diff --git a/start-setup.sh b/start-setup.sh index e67ce4c..419b49d 100755 --- a/start-setup.sh +++ b/start-setup.sh @@ -11,6 +11,21 @@ echo " Intro " echo "===============" echo "" +# Check for Repos directory +if [[ ! -d /home/$(whoami)/Repos ]]; then + echo "mkdir /home/$(whoami)/Repos" +fi + +# Check for git +if [[ ! -f /bin/git ]]; then + echo "Authentication Is Required. Enter $username's password" + echo "sudo pacman -S --noconfirm --needed git" + echo "" +fi + +echo "git clone https://gitea.barcelli.net/rodolfo/arch-automated-installer /home/$(whoami)/Repos/arch-automated-installer" +cd /home/$(whoami)/Repos/arch-automated-installer + script_PATH=$(pwd) if [[ -d /etc/apt ]]; then