Merge pull request #100 from JaKooLit/Ubuntu-24.04-LTS

Ubuntu 24.04 lts main to dev
This commit is contained in:
Ja.KooLit 2024-06-04 21:35:56 +00:00 committed by GitHub
commit f031d82ede
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 40 additions and 25 deletions

View File

@ -97,9 +97,4 @@ done
## making brightnessctl work ## making brightnessctl work
sudo chmod +s $(which brightnessctl) 2>&1 | tee -a "$LOG" || true sudo chmod +s $(which brightnessctl) 2>&1 | tee -a "$LOG" || true
## Installing pywal colors
printf "\n%s - Installing Pywal.... \n" "${NOTE}"
sudo pip3 install pywal --break-system-packages 2>&1 | tee -a "$LOG"
clear clear

View File

@ -41,6 +41,6 @@ printf "${NOTE} Installing pyprland\n"
curl https://raw.githubusercontent.com/hyprland-community/pyprland/main/scripts/get-pypr | sh 2>&1 | tee -a "$LOG" curl https://raw.githubusercontent.com/hyprland-community/pyprland/main/scripts/get-pypr | sh 2>&1 | tee -a "$LOG"
pip install pyprland 2>&1 | tee -a "$LOG" pip install pyprland --break-system-packages 2>&1 | tee -a "$LOG"
clear clear

View File

@ -5,6 +5,10 @@
rofi=( rofi=(
bison bison
flex flex
pandoc
doxygen
cppcheck
ohcount
) )
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##

View File

@ -2,6 +2,11 @@
# 💫 https://github.com/JaKooLit 💫 # # 💫 https://github.com/JaKooLit 💫 #
# swappy - for screenshot) # # swappy - for screenshot) #
swappy=(
liblocale-msgfmt-perl
gettext
)
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ## ## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located # Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@ -18,28 +23,39 @@ MLOG="install-$(date +%d-%H%M%S)_swappy.log"
printf "${NOTE} Installing swappy..\n" printf "${NOTE} Installing swappy..\n"
# Check if swappy folder exists for PKG1 in "${swappy[@]}"; do
if [ -d "swappy" ]; then install_package "$PKG1" 2>&1 | tee -a "$LOG"
printf "${NOTE} swappy folder exists. Pulling latest changes...\n" if [ $? -ne 0 ]; then
cd swappy || exit 1 echo -e "\e[1A\e[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
git pull origin master 2>&1 | tee -a "$MLOG"
else
printf "${NOTE} Cloning swappy repository...\n"
if git clone https://github.com/jtheoof/swappy.git; then
cd swappy || exit 1
else
echo -e "${ERROR} Download failed for swappy" 2>&1 | tee -a "$LOG"
exit 1 exit 1
fi fi
done
##
printf "${NOTE} Installing swappy from source...\n"
# Check if folder exists and remove it
if [ -d "swappy" ]; then
printf "${NOTE} deleting existing swappy folder...\n"
rm -rf "swappy"
fi fi
# Proceed with the installation steps # Clone and build swappy
meson build printf "${NOTE} Installing swappy...\n"
ninja -C build if git clone --depth 1 https://github.com/jtheoof/swappy.git; then
sudo ninja -C build install 2>&1 | tee -a "$MLOG" cd swappy || exit 1
meson setup build
# Moving logs into main Install-Logs ninja -C build
mv "$MLOG" ../Install-Logs/ || true if sudo ninja -C build install 2>&1 | tee -a "$MLOG" ; then
cd - || exit 1 printf "${OK} swappy installed successfully.\n" 2>&1 | tee -a "$MLOG"
else
echo -e "${ERROR} Installation failed for swappy." 2>&1 | tee -a "$MLOG"
fi
#moving the addional logs to Install-Logs directory
mv $MLOG ../Install-Logs/ || true
cd ..
else
echo -e "${ERROR} Download failed for swappy." 2>&1 | tee -a "$LOG"
fi
clear clear