diff options
| author | JaKooLit <jimmielovejay@gmail.com> | 2023-11-27 12:04:47 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay@gmail.com> | 2023-11-27 12:04:47 +0900 |
| commit | 9e7b47f1b8dafbfadee3863355b3785384ffe436 (patch) | |
| tree | 812b7eb42c04f392844d9bc9596ee7db08c083ef /config/hypr/scripts/WallpaperRandom.sh | |
| parent | 1727b338712bcffb9400836f2b10f3571b32658c (diff) | |
Here are changes made
1.) Use pywal for dunst colors. However, seems backgrounds are not changing. Perhaps only on OpenSuse?
2.) Deleted preconfigured style for dunst. to align with #1 changes
3.) Rewrite some scripts to align with PywalDunst.
4.) New script created for Dunst-Pywal called PywalDunst.sh
5.) Random wallpaper auto change is not increased timing to change every 15 mins
6.) Some scripts are re-written
Diffstat (limited to 'config/hypr/scripts/WallpaperRandom.sh')
| -rwxr-xr-x | config/hypr/scripts/WallpaperRandom.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/hypr/scripts/WallpaperRandom.sh b/config/hypr/scripts/WallpaperRandom.sh index 13bc5033..35bfcf8a 100755 --- a/config/hypr/scripts/WallpaperRandom.sh +++ b/config/hypr/scripts/WallpaperRandom.sh @@ -2,9 +2,12 @@ # 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_script=$HOME/.config/hypr/scripts/PywalSwww.sh pywal_refresh=$HOME/.config/hypr/scripts/Refresh.sh +pywal_dunst=$HOME/.config/hypr/scripts/PywalDunst.sh if [[ $# -lt 1 ]] || [[ ! -d $1 ]]; then echo "Usage: @@ -18,7 +21,7 @@ export SWWW_TRANSITION_STEP=2 export SWWW_TRANSITION_TYPE=random # This controls (in seconds) when to switch to the next image -INTERVAL=300 +INTERVAL=600 while true; do find "$1" \ @@ -27,7 +30,7 @@ while true; do done \ | sort -n | cut -d':' -f2- \ | while read -r img; do - swww img "$img" && $pywal_script && $pywal_refresh + swww img "$img" && $pywal_script && $pywal_refresh && $pywal_dunst sleep $INTERVAL done |
