diff options
| author | JaKooLit <jimmielovejay@gmail.com> | 2023-11-23 11:32:17 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay@gmail.com> | 2023-11-23 11:32:17 +0900 |
| commit | 676aef31db7a9963c0f251b97effcad9e8e9cabd (patch) | |
| tree | e2b6b084f8bc7f5244925839ff75d2adcbb1521e /config/hypr/scripts | |
| parent | a056169608ddc60c0e35b0094e1eb32bd46d1aff (diff) | |
Updated random wallpaper and refresh.sh
Diffstat (limited to 'config/hypr/scripts')
| -rwxr-xr-x | config/hypr/scripts/Refresh.sh | 2 | ||||
| -rwxr-xr-x | 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 8b9597d1..923d4db8 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 e7d91ec1..ea04aa01 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 |
