From 83a1038c8b9dd7907e3677ee7dd5630c9286d0e8 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Mon, 3 Jun 2024 18:00:22 +0900 Subject: [PATCH] updated Wallpaper Effect scripts --- config/hypr/UserScripts/WallpaperEffects.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/config/hypr/UserScripts/WallpaperEffects.sh b/config/hypr/UserScripts/WallpaperEffects.sh index de4470d..9122da3 100755 --- a/config/hypr/UserScripts/WallpaperEffects.sh +++ b/config/hypr/UserScripts/WallpaperEffects.sh @@ -23,12 +23,12 @@ SWWW_PARAMS="--transition-fps $FPS --transition-type $TYPE --transition-duration # https://imagemagick.org/script/magick.php declare -A effects=( -["Black and White"]="magick $current_wallpaper -set colorspace Gray -separate -average $wallpaper_output" +["Black & White"]="magick $current_wallpaper -set colorspace Gray -separate -average $wallpaper_output" ["Blurred"]="magick $current_wallpaper -blur "20x30" $wallpaper_output" ["Solarize"]="magick $current_wallpaper -solarize 80% $wallpaper_output" -["Sepia-Tone"]="magick $current_wallpaper -sepia-tone 65% $wallpaper_output" +["Sepia Tone"]="magick $current_wallpaper -sepia-tone 65% $wallpaper_output" ["Negate"]="magick $current_wallpaper -negate $wallpaper_output" -["Charcoal"]="magick $current_wallpaper -charcoal "10x90" $wallpaper_output" +["Charcoal"]="magick $current_wallpaper -charcoal "10x10" $wallpaper_output" ["No Effects"]="no-effects" ) @@ -44,6 +44,9 @@ no_effects() { # Refresh rofi, waybar, wallust palettes "${SCRIPTSDIR}/Refresh.sh" notify-send -u low -i "$iDIR/bell.png" "No wallpaper effects" + + # copying wallpaper for rofi menu + cp $current_wallpaper $wallpaper_output } # Function to run rofi menu @@ -65,7 +68,7 @@ main() { no_effects else # Apply selected effect - notify-send -i "$iDIR/bell.png" "Applying $choice effects" + notify-send -u normal -i "$iDIR/bell.png" "Applying $choice effects" eval "${effects[$choice]}" # Wait for effects to be applied sleep 1