diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2025-01-14 00:14:52 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-14 00:14:52 +0900 |
| commit | d61b676b9b8b32f73def3d92aa3eb31ab6a2bfbc (patch) | |
| tree | 644b7851f189af52bfde39a2658cfe0d2fd20d7c /config/hypr/UserScripts/WallpaperEffects.sh | |
| parent | 3573df4a1d0b4c915975ac80275442c35831fb2f (diff) | |
| parent | df57f9890b28aa6f5139e2917cee213031ba0e9c (diff) | |
Merge pull request #521 from JaKooLit/main
main to development
Diffstat (limited to 'config/hypr/UserScripts/WallpaperEffects.sh')
| -rwxr-xr-x | config/hypr/UserScripts/WallpaperEffects.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/config/hypr/UserScripts/WallpaperEffects.sh b/config/hypr/UserScripts/WallpaperEffects.sh index 9a9d289c..b98b572b 100755 --- a/config/hypr/UserScripts/WallpaperEffects.sh +++ b/config/hypr/UserScripts/WallpaperEffects.sh @@ -1,7 +1,6 @@ #!/bin/bash # /* ---- 💫 https://github.com/JaKooLit 💫 ---- */ # # Wallpaper Effects using ImageMagick (SUPER SHIFT W) -# Inspiration from ML4W - Stephan Raabe https://github.com/mylinuxforwork/dotfiles # Variables current_wallpaper="$HOME/.config/hypr/wallpaper_effects/.wallpaper_current" @@ -40,16 +39,17 @@ declare -A effects=( # Function to apply no effects no-effects() { - swww img -o "$focused_monitor" "$current_wallpaper" $SWWW_PARAMS & + swww img -o "$focused_monitor" "$current_wallpaper" $SWWW_PARAMS && # Wait for swww command to complete wait $! # Run other commands after swww - wallust run "$current_wallpaper" -s & - # Wait to complete + wallust run "$current_wallpaper" -s && wait $! # Refresh rofi, waybar, wallust palettes - "${SCRIPTSDIR}/Refresh.sh" - notify-send -u low -i "$iDIR/bell.png" "No wallpaper effects" + sleep 2 + "$SCRIPTSDIR/Refresh.sh" + + notify-send -u low -i "$iDIR/bell.png" "$(printf "\n No wallpaper effects")" # copying wallpaper for rofi menu cp "$current_wallpaper" "$wallpaper_output" } @@ -71,7 +71,7 @@ main() { no-effects elif [[ "${effects[$choice]+exists}" ]]; then # Apply selected effect - notify-send -u normal -i "$iDIR/bell.png" "Applying $choice effects" + notify-send -u normal -i "$iDIR/bell.png" "$(printf "\n Applying\n $choice effects")" eval "${effects[$choice]}" # Wait for effects to be applied sleep 1 @@ -85,7 +85,7 @@ main() { sleep 0.5 # Refresh rofi, waybar, wallust palettes "${SCRIPTSDIR}/Refresh.sh" - notify-send -u low -i "$iDIR/bell.png" "$choice effects applied" + notify-send -u low -i "$iDIR/bell.png" "$(printf "\n $choice effects\n applied")" else echo "Effect '$choice' not recognized." fi |
