From 676aef31db7a9963c0f251b97effcad9e8e9cabd Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 23 Nov 2023 11:32:17 +0900 Subject: [PATCH] Updated random wallpaper and refresh.sh --- config/hypr/scripts/Refresh.sh | 2 +- config/hypr/scripts/WallpaperRandom.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index 8b9597d..923d4db 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -3,7 +3,7 @@ SCRIPTSDIR=$HOME/.config/hypr/scripts # Kill already running process -_ps=(waybar mako dunst rofi) +_ps=(waybar dunst rofi) for _prs in "${_ps[@]}"; do if [[ $(pidof ${_prs}) ]]; then pkill ${_prs} diff --git a/config/hypr/scripts/WallpaperRandom.sh b/config/hypr/scripts/WallpaperRandom.sh index e7d91ec..ea04aa0 100755 --- a/config/hypr/scripts/WallpaperRandom.sh +++ b/config/hypr/scripts/WallpaperRandom.sh @@ -6,6 +6,7 @@ # 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 if [[ $# -lt 1 ]] || [[ ! -d $1 ]]; then echo "Usage: @@ -28,7 +29,7 @@ while true; do done \ | sort -n | cut -d':' -f2- \ | while read -r img; do - swww img "$img" && $pywal_script + swww img "$img" && $pywal_script && $pywal_refresh sleep $INTERVAL done