mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 02:10:13 +01:00
Merge pull request #222 from JaKooLit/ddubs-swww-upd
Upd swww_tag to v0.11.2 made tag chk use variable fixes numerous issues, like vertical monitors
This commit is contained in:
commit
d20782004b
@ -2,36 +2,38 @@
|
||||
# 💫 https://github.com/JaKooLit 💫 #
|
||||
# SWWW - Wallpaper Utility #
|
||||
|
||||
# specific branch or release
|
||||
swww_tag="v0.11.2"
|
||||
|
||||
# Check if 'swww' is installed
|
||||
if command -v swww &>/dev/null; then
|
||||
SWWW_VERSION=$(swww -V | awk '{print $NF}')
|
||||
if [[ "$SWWW_VERSION" == "0.9.5" ]]; then
|
||||
echo -e "${OK} ${MAGENTA}swww v0.9.5${RESET} is already installed. Skipping installation."
|
||||
if [[ "$SWWW_VERSION" == "$swww_tag" ]]; then
|
||||
echo -e "${OK} ${MAGENTA}swww ${swww_tag}${RESET} is already installed. Skipping installation."
|
||||
exit 0
|
||||
fi
|
||||
else
|
||||
echo -e "${NOTE} ${MAGENTA}swww${RESET} is not installed. Proceeding with installation."
|
||||
fi
|
||||
|
||||
|
||||
swww=(
|
||||
liblz4-dev
|
||||
)
|
||||
|
||||
# specific branch or release
|
||||
swww_tag="v0.9.5"
|
||||
|
||||
## WARNING: DO NOT EDIT BEYOND THIS LINE IF YOU DON'T KNOW WHAT YOU ARE DOING! ##
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
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" || { echo "${ERROR} Failed to change directory to $PARENT_DIR"; exit 1; }
|
||||
cd "$PARENT_DIR" || {
|
||||
echo "${ERROR} Failed to change directory to $PARENT_DIR"
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Source the global functions script
|
||||
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then
|
||||
echo "Failed to source Global_functions.sh"
|
||||
exit 1
|
||||
echo "Failed to source Global_functions.sh"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set the name of the log file to include the current date and time
|
||||
@ -80,19 +82,19 @@ if [ -f "$file2" ]; then
|
||||
fi
|
||||
|
||||
# Copy binaries to /usr/bin/
|
||||
sudo cp -r target/release/swww /usr/bin/ 2>&1 | tee -a "$MLOG"
|
||||
sudo cp -r target/release/swww-daemon /usr/bin/ 2>&1 | tee -a "$MLOG"
|
||||
sudo cp -r target/release/swww /usr/bin/ 2>&1 | tee -a "$MLOG"
|
||||
sudo cp -r target/release/swww-daemon /usr/bin/ 2>&1 | tee -a "$MLOG"
|
||||
|
||||
# Copy bash completions
|
||||
sudo mkdir -p /usr/share/bash-completion/completions 2>&1 | tee -a "$MLOG"
|
||||
sudo cp -r completions/swww.bash /usr/share/bash-completion/completions/swww 2>&1 | tee -a "$MLOG"
|
||||
sudo mkdir -p /usr/share/bash-completion/completions 2>&1 | tee -a "$MLOG"
|
||||
sudo cp -r completions/swww.bash /usr/share/bash-completion/completions/swww 2>&1 | tee -a "$MLOG"
|
||||
|
||||
# Copy zsh completions
|
||||
sudo mkdir -p /usr/share/zsh/site-functions 2>&1 | tee -a "$MLOG"
|
||||
sudo cp -r completions/_swww /usr/share/zsh/site-functions/_swww 2>&1 | tee -a "$MLOG"
|
||||
sudo mkdir -p /usr/share/zsh/site-functions 2>&1 | tee -a "$MLOG"
|
||||
sudo cp -r completions/_swww /usr/share/zsh/site-functions/_swww 2>&1 | tee -a "$MLOG"
|
||||
|
||||
# Moving logs into main Install-Logs
|
||||
mv "$MLOG" ../Install-Logs/ || true
|
||||
mv "$MLOG" ../Install-Logs/ || true
|
||||
cd - || exit 1
|
||||
|
||||
printf "\n%.0s" {1..2}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user