|
|
|
|
@ -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 |
|
|
|
|
|