Compare commits

..

2 Commits

Author SHA1 Message Date
Donald Williams
d20782004b
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
2025-10-31 19:33:30 -04:00
Don Williams
de7dea585c Upd swww_tag to v0.11.2 made tag chk use variable
It was hard coded to 0.9.3 before. Now it checks again the swww_tag

 On branch ddubs-swww-upd
 Changes to be committed:
	modified:   install-scripts/swww.sh
2025-10-31 19:05:14 -04:00

View File

@ -2,31 +2,33 @@
# 💫 https://github.com/JaKooLit 💫 # # 💫 https://github.com/JaKooLit 💫 #
# SWWW - Wallpaper Utility # # SWWW - Wallpaper Utility #
# specific branch or release
swww_tag="v0.11.2"
# Check if 'swww' is installed # Check if 'swww' is installed
if command -v swww &>/dev/null; then if command -v swww &>/dev/null; then
SWWW_VERSION=$(swww -V | awk '{print $NF}') SWWW_VERSION=$(swww -V | awk '{print $NF}')
if [[ "$SWWW_VERSION" == "0.9.5" ]]; then if [[ "$SWWW_VERSION" == "$swww_tag" ]]; then
echo -e "${OK} ${MAGENTA}swww v0.9.5${RESET} is already installed. Skipping installation." echo -e "${OK} ${MAGENTA}swww ${swww_tag}${RESET} is already installed. Skipping installation."
exit 0 exit 0
fi fi
else else
echo -e "${NOTE} ${MAGENTA}swww${RESET} is not installed. Proceeding with installation." echo -e "${NOTE} ${MAGENTA}swww${RESET} is not installed. Proceeding with installation."
fi fi
swww=( swww=(
liblz4-dev 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! ## ## 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 # Change the working directory to the parent directory of the script
PARENT_DIR="$SCRIPT_DIR/.." 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 # Source the global functions script
if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then if ! source "$(dirname "$(readlink -f "$0")")/Global_functions.sh"; then