diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-03-19 19:38:44 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-03-19 19:38:44 +0900 |
| commit | 3446b1047f1139ea4d4bcf8b2a6c883d51583433 (patch) | |
| tree | ad87792fc17235efec7df409aa56a06d22522f28 /config/hypr/UserScripts/WallpaperSelect.sh | |
| parent | 609ce12913e79ccd0951b28a18d6ca5b3fa34905 (diff) | |
Updated WallpaperSelect.sh, Refresh.sh & RefreshNoWaybar.sh
Diffstat (limited to 'config/hypr/UserScripts/WallpaperSelect.sh')
| -rwxr-xr-x | config/hypr/UserScripts/WallpaperSelect.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/config/hypr/UserScripts/WallpaperSelect.sh b/config/hypr/UserScripts/WallpaperSelect.sh index f9051f2e..fa4d9c54 100755 --- a/config/hypr/UserScripts/WallpaperSelect.sh +++ b/config/hypr/UserScripts/WallpaperSelect.sh @@ -155,8 +155,7 @@ apply_image_wallpaper() { # Run additional scripts "$SCRIPTSDIR/WallustSwww.sh" - wait $! - sleep 1 + sleep 2 "$SCRIPTSDIR/Refresh.sh" sleep 1 @@ -174,7 +173,7 @@ apply_video_wallpaper() { kill_wallpaper_for_video # Apply video wallpaper using mpvpaper, adding a unique argument (for mpris waybar module) - mpvpaper '*' -o "load-scripts=no no-audio --loop --unique-wallpaper-process" "$video_path" & + mpvpaper '*' -o "load-scripts=no no-audio --loop" "$video_path" & } # Main function @@ -196,7 +195,7 @@ main() { choice_basename=$(basename "$choice" | sed 's/\(.*\)\.[^.]*$/\1/') # Search for the selected file in the wallpapers directory, including subdirectories - selected_file=$(find $wallDIR -iname "$choice_basename.*" -print -quit) + selected_file=$(find "$wallDIR" -iname "$choice_basename.*" -print -quit) if [[ -z "$selected_file" ]]; then echo "File not found. Selected choice: $choice" |
