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,7 +3,6 @@
|
||||
# SWWW - Wallpaper Utility #
|
||||
|
||||
swww=(
|
||||
cargo
|
||||
liblz4-dev
|
||||
)
|
||||
|
||||
@ -35,6 +34,14 @@ for PKG1 in "${swww[@]}"; do
|
||||
fi
|
||||
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"
|
||||
|
||||
# Check if swww folder exists
|
||||
@ -44,7 +51,7 @@ if [ -d "swww" ]; then
|
||||
git pull origin main 2>&1 | tee -a "$MLOG"
|
||||
else
|
||||
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
|
||||
else
|
||||
echo -e "${ERROR} Download failed for swww" 2>&1 | tee -a "$LOG"
|
||||
@ -52,14 +59,6 @@ else
|
||||
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
|
||||
source "$HOME/.cargo/env" || true
|
||||
|
||||
|
||||
@ -1,14 +1,7 @@
|
||||
#!/bin/bash
|
||||
# 💫 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
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
@ -16,46 +9,41 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
PARENT_DIR="$SCRIPT_DIR/.."
|
||||
cd "$PARENT_DIR" || exit 1
|
||||
|
||||
# Source external functions, adjust path as necessary
|
||||
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)_wallust.log"
|
||||
MLOG="install-$(date +%d-%H%M%S)_wallust2.log"
|
||||
|
||||
# Installing depencies
|
||||
for PKG1 in "${depend[@]}"; do
|
||||
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"
|
||||
# Create log directory if it doesn't exist
|
||||
mkdir -p "$(dirname "$LOG")"
|
||||
|
||||
# Install up-to-date Rust
|
||||
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"
|
||||
|
||||
printf "\n%.0s" {1..2}
|
||||
|
||||
# Remove any existing Wallust binary
|
||||
if [[ -f "/usr/local/bin/wallust" ]]; then
|
||||
echo "Removing existing Wallust binary..." 2>&1 | tee -a "$LOG"
|
||||
sudo rm "/usr/local/bin/wallust"
|
||||
fi
|
||||
|
||||
printf "\n%.0s" {1..2}
|
||||
|
||||
# Install Wallust using Cargo
|
||||
echo "Installing Wallust using Cargo..." | tee -a "$LOG"
|
||||
if cargo install wallust 2>&1 | tee -a "$LOG" ; then
|
||||
echo "Wallust installed successfully." | tee -a "$LOG"
|
||||
|
||||
# Move the newly compiled binary to /usr/local/bin
|
||||
echo "Moving Wallust binary to /usr/local/bin..." | tee -a "$LOG"
|
||||
sudo mv "$HOME/.cargo/bin/wallust" /usr/local/bin 2>&1 | tee -a "$LOG"
|
||||
else
|
||||
echo "Error: Wallust installation failed. Check the log file $LOG for details." | tee -a "$LOG"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
##
|
||||
printf "${NOTE} Installing wallust from dev branch...\n"
|
||||
|
||||
# Check if folder exists and remove it
|
||||
if [ -d "wallust" ]; then
|
||||
printf "${NOTE} Removing existing wallust folder...\n"
|
||||
rm -rf "wallust"
|
||||
fi
|
||||
|
||||
# Clone and build wallust
|
||||
printf "${NOTE} Installing wallust...\n"
|
||||
if git clone --depth 1 https://codeberg.org/explosion-mental/wallust.git; then
|
||||
cd wallust || exit 1
|
||||
make
|
||||
if sudo make install 2>&1 | tee -a "$MLOG" ; then
|
||||
printf "${OK} wallust installed successfully.\n" 2>&1 | tee -a "$MLOG"
|
||||
else
|
||||
echo -e "${ERROR} Installation failed for wallust." 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 wallust." 2>&1 | tee -a "$LOG"
|
||||
fi
|
||||
|
||||
clear
|
||||
|
||||
|
||||
@ -161,10 +161,10 @@ execute_script "01-pre-cleanup.sh"
|
||||
execute_script "00-dependencies.sh"
|
||||
execute_script "00-hypr-pkgs.sh"
|
||||
execute_script "fonts.sh"
|
||||
execute_script "wallust.sh"
|
||||
execute_script "imagemagick.sh"
|
||||
execute_script "swww.sh"
|
||||
execute_script "rofi-wayland.sh"
|
||||
execute_script "wallust.sh"
|
||||
execute_script "ags.sh"
|
||||
execute_script "hyprland.sh"
|
||||
execute_script "hyprlock.sh"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user