aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/WallpaperRandom.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/scripts/WallpaperRandom.sh')
-rwxr-xr-xconfig/hypr/scripts/WallpaperRandom.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/config/hypr/scripts/WallpaperRandom.sh b/config/hypr/scripts/WallpaperRandom.sh
deleted file mode 100755
index 13bd2995..00000000
--- a/config/hypr/scripts/WallpaperRandom.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-
-# This script will randomly go through the files of a directory, setting it
-# up as the wallpaper at regular intervals
-#
-# NOTE: this script uses bash (not POSIX shell) for the RANDOM variable
-
-pywal_refresh=$HOME/.config/hypr/scripts/RefreshNoWaybar.sh
-
-if [[ $# -lt 1 ]] || [[ ! -d $1 ]]; then
- echo "Usage:
- $0 <dir containing images>"
- exit 1
-fi
-
-# Edit below to control the images transition
-export SWWW_TRANSITION_FPS=60
-export SWWW_TRANSITION_TYPE=simple
-
-# This controls (in seconds) when to switch to the next image
-INTERVAL=1800
-
-while true; do
- find "$1" \
- | while read -r img; do
- echo "$((RANDOM % 1000)):$img"
- done \
- | sort -n | cut -d':' -f2- \
- | while read -r img; do
- swww img "$img"
- $pywal_refresh
- sleep $INTERVAL
-
- done
-done
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage