Regenerated

This commit is contained in:
2026-03-29 12:43:47 +00:00
parent c20216a9fe
commit 712e6e381c
4 changed files with 331 additions and 298 deletions
@@ -12,15 +12,6 @@ if [ "${#IMAGES[@]}" -eq 0 ]; then
exit 1
fi
# -----------------------------
# Start swww daemon if not running
# -----------------------------
if ! pgrep -x swww > /dev/null; then
echo "Starting swww daemon..."
swww daemon &
sleep 1 # Give daemon time to start
fi
# -----------------------------
# Set a random wallpaper per workspace
# -----------------------------
@@ -29,6 +20,6 @@ WORKSPACES=$(hyprctl workspaces -j | jq -r '.[].id')
for ws in $WORKSPACES; do
RAND_IMAGE="${IMAGES[RANDOM % ${#IMAGES[@]}]}"
echo "Setting wallpaper for workspace $ws: $RAND_IMAGE"
# Each workspace gets its own namespace
# Set wallpaper for workspace
swww img "$RAND_IMAGE" --resize fit --transition-type random --namespace "$ws"
done