aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-11-06 09:36:23 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-11-06 09:36:23 +0900
commitc67bcc5a22509c55a1c94a33474034db89f07511 (patch)
tree885997a2ec25f7cbf013a707dd9f6ab76fd2d648
parent7b9c6c73675d074d32529eb78c39ae8431293f6d (diff)
test 2
-rw-r--r--copy.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/copy.sh b/copy.sh
index 53d299a6..b133099e 100644
--- a/copy.sh
+++ b/copy.sh
@@ -126,6 +126,22 @@ ln -sf "$HOME/.config/dunst/styles/dunstrc-dark" "$HOME/.config/dunst/dunstrc" &
# Set some files as executable
chmod +x ~/.config/hypr/scripts/* 2>&1 | tee -a "$LOG"
+# Check if the ~/.cache/wal directory exists
+if [ ! -d ~/.cache/wal ]; then
+ printf "${NOTE} Initializing pywal........\n\n"
+ # Check if the ~/Pictures/wallpapers directory exists
+ if [ -d ~/Pictures/wallpapers ]; then
+ # Run wal with random wallpapers from ~/Pictures/wallpapers
+ wal -i ~/Pictures/wallpapers/*
+ echo "${OK} Pywal initialized"
+ else
+ echo "${ERROR} ~/Pictures/wallpapers directory not found."
+ echo "${WARN} Please make sure to have wallpapers in ~/Pictures/wallpapers."
+ fi
+else
+ echo "${OK} ~/.cache/wal directory found. No action required."
+fi
+
# Initializing the initial wallpaper and wal
~/.config/hypr/scripts/Wallpaper.sh 2>&1 | tee -a "$LOG"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage