mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
updated wallust and swww and iinstall.sh
This commit is contained in:
parent
cc573fe286
commit
65ee22c04d
@ -3,11 +3,10 @@
|
|||||||
# SWWW - Wallpaper Utility #
|
# SWWW - Wallpaper Utility #
|
||||||
|
|
||||||
swww=(
|
swww=(
|
||||||
cargo
|
|
||||||
liblz4-dev
|
liblz4-dev
|
||||||
)
|
)
|
||||||
|
|
||||||
#specific branch or release
|
# specific branch or release
|
||||||
swww_tag="v0.9.5"
|
swww_tag="v0.9.5"
|
||||||
|
|
||||||
## 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! ##
|
||||||
@ -35,6 +34,14 @@ for PKG1 in "${swww[@]}"; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
printf "${NOTE} Force installing packages...\n"
|
||||||
|
for FORCE in "${swww[@]}"; do
|
||||||
|
sudo apt-get --reinstall install -y "$FORCE" 2>&1 | tee -a "$LOG"
|
||||||
|
[ $? -ne 0 ] && { echo -e "\e[1A\e[K${ERROR} - $FORCE Package installation failed, Please check the installation logs"; exit 1; }
|
||||||
|
done
|
||||||
|
|
||||||
|
printf "\n\n"
|
||||||
|
|
||||||
printf "${NOTE} Installing swww\n"
|
printf "${NOTE} Installing swww\n"
|
||||||
|
|
||||||
# Check if swww folder exists
|
# Check if swww folder exists
|
||||||
@ -44,7 +51,7 @@ if [ -d "swww" ]; then
|
|||||||
git pull origin main 2>&1 | tee -a "$MLOG"
|
git pull origin main 2>&1 | tee -a "$MLOG"
|
||||||
else
|
else
|
||||||
printf "${NOTE} Cloning swww repository...\n"
|
printf "${NOTE} Cloning swww repository...\n"
|
||||||
if git clone --recursive -b $swww_tag https://github.com/Horus645/swww.git; then
|
if git clone --recursive https://github.com/Horus645/swww.git; then
|
||||||
cd swww || exit 1
|
cd swww || exit 1
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for swww" 2>&1 | tee -a "$LOG"
|
echo -e "${ERROR} Download failed for swww" 2>&1 | tee -a "$LOG"
|
||||||
@ -52,14 +59,6 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install new rust
|
|
||||||
# Define environment variables for non-interactive installation
|
|
||||||
export RUSTUP_INIT_SKIP_PATH_CHECK=yes
|
|
||||||
export RUSTUP_INIT_SKIP_CONFIRMATION=yes
|
|
||||||
|
|
||||||
# Download and execute the Rust installer script, automatically answering "yes" to all prompts
|
|
||||||
curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path 2>&1 | tee -a "$LOG" || true
|
|
||||||
|
|
||||||
# Proceed with the rest of the installation steps
|
# Proceed with the rest of the installation steps
|
||||||
source "$HOME/.cargo/env" || true
|
source "$HOME/.cargo/env" || true
|
||||||
|
|
||||||
|
|||||||
@ -1,14 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 💫 https://github.com/JaKooLit 💫 #
|
# 💫 https://github.com/JaKooLit 💫 #
|
||||||
# wallust - pywal colors replacment #
|
# wallust - pywal colors replacement #
|
||||||
|
|
||||||
depend=(
|
|
||||||
librust-jpeg-decoder-dev
|
|
||||||
rust
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
## 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 )"
|
||||||
|
|
||||||
@ -16,46 +9,41 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|||||||
PARENT_DIR="$SCRIPT_DIR/.."
|
PARENT_DIR="$SCRIPT_DIR/.."
|
||||||
cd "$PARENT_DIR" || exit 1
|
cd "$PARENT_DIR" || exit 1
|
||||||
|
|
||||||
|
# Source external functions, adjust path as necessary
|
||||||
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"
|
||||||
|
|
||||||
# Set the name of the log file to include the current date and time
|
# Set the name of the log file to include the current date and time
|
||||||
LOG="Install-Logs/install-$(date +%d-%H%M%S)_wallust.log"
|
LOG="Install-Logs/install-$(date +%d-%H%M%S)_wallust.log"
|
||||||
MLOG="install-$(date +%d-%H%M%S)_wallust2.log"
|
|
||||||
|
|
||||||
# Installing depencies
|
# Create log directory if it doesn't exist
|
||||||
for PKG1 in "${depend[@]}"; do
|
mkdir -p "$(dirname "$LOG")"
|
||||||
install_package "$PKG1" 2>&1 | tee -a "$LOG"
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo -e "\033[1A\033[K${ERROR} - $PKG1 Package installation failed, Please check the installation logs"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
##
|
# Install up-to-date Rust
|
||||||
printf "${NOTE} Installing wallust from dev branch...\n"
|
echo "Installing most up to Rust compiler..."
|
||||||
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y 2>&1 | tee -a "$LOG"
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
|
||||||
# Check if folder exists and remove it
|
printf "\n%.0s" {1..2}
|
||||||
if [ -d "wallust" ]; then
|
|
||||||
printf "${NOTE} Removing existing wallust folder...\n"
|
# Remove any existing Wallust binary
|
||||||
rm -rf "wallust"
|
if [[ -f "/usr/local/bin/wallust" ]]; then
|
||||||
|
echo "Removing existing Wallust binary..." 2>&1 | tee -a "$LOG"
|
||||||
|
sudo rm "/usr/local/bin/wallust"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Clone and build wallust
|
printf "\n%.0s" {1..2}
|
||||||
printf "${NOTE} Installing wallust...\n"
|
|
||||||
if git clone --depth 1 https://codeberg.org/explosion-mental/wallust.git; then
|
# Install Wallust using Cargo
|
||||||
cd wallust || exit 1
|
echo "Installing Wallust using Cargo..." | tee -a "$LOG"
|
||||||
make
|
if cargo install wallust 2>&1 | tee -a "$LOG" ; then
|
||||||
if sudo make install 2>&1 | tee -a "$MLOG" ; then
|
echo "Wallust installed successfully." | tee -a "$LOG"
|
||||||
printf "${OK} wallust installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
|
||||||
else
|
# Move the newly compiled binary to /usr/local/bin
|
||||||
echo -e "${ERROR} Installation failed for wallust." 2>&1 | tee -a "$MLOG"
|
echo "Moving Wallust binary to /usr/local/bin..." | tee -a "$LOG"
|
||||||
fi
|
sudo mv "$HOME/.cargo/bin/wallust" /usr/local/bin 2>&1 | tee -a "$LOG"
|
||||||
#moving the addional logs to Install-Logs directory
|
|
||||||
mv $MLOG ../Install-Logs/ || true
|
|
||||||
cd ..
|
|
||||||
else
|
else
|
||||||
echo -e "${ERROR} Download failed for wallust." 2>&1 | tee -a "$LOG"
|
echo "Error: Wallust installation failed. Check the log file $LOG for details." | tee -a "$LOG"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clear
|
clear
|
||||||
|
|
||||||
|
|||||||
@ -161,10 +161,10 @@ execute_script "01-pre-cleanup.sh"
|
|||||||
execute_script "00-dependencies.sh"
|
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 "wallust.sh"
|
||||||
execute_script "imagemagick.sh"
|
execute_script "imagemagick.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 "ags.sh"
|
execute_script "ags.sh"
|
||||||
execute_script "hyprland.sh"
|
execute_script "hyprland.sh"
|
||||||
execute_script "hyprlock.sh"
|
execute_script "hyprlock.sh"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user