updated swappy since swappy is now in official repo

This commit is contained in:
JaKooLit 2024-07-07 06:02:20 +09:00
parent ad403e0617
commit 07eff75c87
3 changed files with 1 additions and 46 deletions

View File

@ -30,6 +30,7 @@ hypr_package=(
qt6ct qt6ct
slurp slurp
sway-notification-center sway-notification-center
swappy
waybar waybar
wget wget
wl-clipboard wl-clipboard

View File

@ -1,45 +0,0 @@
#!/bin/bash
# 💫 https://github.com/JaKooLit 💫 #
# swappy - for screenshot) #
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
# Determine the directory where the script is located
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Change the working directory to the parent directory of the script
PARENT_DIR="$SCRIPT_DIR/.."
cd "$PARENT_DIR" || exit 1
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
# Set the name of the log file to include the current date and time
LOG="Install-Logs/install-$(date +%d-%H%M%S)_swappy2.log"
MLOG="install-$(date +%d-%H%M%S)_swappy.log"
printf "${NOTE} Installing swappy..\n"
# Check if swappy folder exists
if [ -d "swappy" ]; then
printf "${NOTE} swappy folder exists. Pulling latest changes...\n"
cd swappy || exit 1
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
fi
fi
# Proceed with the installation steps
meson build
ninja -C build
sudo ninja -C build install 2>&1 | tee -a "$MLOG"
# Moving logs into main Install-Logs
mv "$MLOG" ../Install-Logs/ || true
cd - || exit 1
clear

View File

@ -159,7 +159,6 @@ execute_script "00-dependencies.sh"
execute_script "00-hypr-pkgs.sh" execute_script "00-hypr-pkgs.sh"
execute_script "fonts.sh" execute_script "fonts.sh"
execute_script "imagemagick.sh" execute_script "imagemagick.sh"
execute_script "swappy.sh"
execute_script "swww.sh" execute_script "swww.sh"
execute_script "rofi-wayland.sh" execute_script "rofi-wayland.sh"
execute_script "wallust.sh" execute_script "wallust.sh"