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 | |
| parent | 609ce12913e79ccd0951b28a18d6ca5b3fa34905 (diff) | |
Updated WallpaperSelect.sh, Refresh.sh & RefreshNoWaybar.sh
| -rwxr-xr-x | config/hypr/UserScripts/WallpaperSelect.sh | 7 | ||||
| -rwxr-xr-x | config/hypr/scripts/Refresh.sh | 3 | ||||
| -rwxr-xr-x | config/hypr/scripts/RefreshNoWaybar.sh | 3 |
3 files changed, 8 insertions, 5 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" diff --git a/config/hypr/scripts/Refresh.sh b/config/hypr/scripts/Refresh.sh index 3bd22463..2d7887a5 100755 --- a/config/hypr/scripts/Refresh.sh +++ b/config/hypr/scripts/Refresh.sh @@ -24,7 +24,6 @@ done # added since wallust sometimes not applying killall -SIGUSR2 waybar -killall -SIGUSR2 swaync # quit ags & relaunch ags #ags -q && ags & @@ -41,6 +40,8 @@ waybar & # relaunch swaync sleep 0.5 swaync > /dev/null 2>&1 & +# reload swaync +swaync-client --reload-config # Relaunching rainbow borders if the script exists sleep 1 diff --git a/config/hypr/scripts/RefreshNoWaybar.sh b/config/hypr/scripts/RefreshNoWaybar.sh index 85332a32..0ac00f14 100755 --- a/config/hypr/scripts/RefreshNoWaybar.sh +++ b/config/hypr/scripts/RefreshNoWaybar.sh @@ -31,6 +31,9 @@ done # Wallust refresh ${SCRIPTSDIR}/WallustSwww.sh & +# reload swaync +swaync-client --reload-configv + # Relaunching rainbow borders if the script exists sleep 1 if file_exists "${UserScripts}/RainbowBorders.sh"; then |
