diff --git a/qtile/scripts/wallpaper.sh b/qtile/scripts/wallpaper.sh index 575edc9..407b6be 100755 --- a/qtile/scripts/wallpaper.sh +++ b/qtile/scripts/wallpaper.sh @@ -11,6 +11,7 @@ # Cache file for holding the current wallpaper cache_file="$HOME/.cache/current_wallpaper" +blurred="$HOME/.cache/blurred_wallpaper.png" rasi_file="$HOME/.cache/current_wallpaper.rasi" # Create cache file if not exists @@ -70,11 +71,16 @@ source "$HOME/.cache/wal/colors.sh" echo "Wallpaper: $wallpaper" newwall=$(echo $wallpaper | sed "s|$HOME/wallpaper/||g") +# ----------------------------------------------------- +# Created blurred wallpaper +# ----------------------------------------------------- +magick $wallpaper -blur 0x20 $blurred + # ----------------------------------------------------- # Write selected wallpaper into .cache files # ----------------------------------------------------- echo "$wallpaper" > "$cache_file" -echo "* { current-image: url(\"$wallpaper\", height); }" > "$rasi_file" +echo "* { current-image: url(\"$blurred\", height); }" > "$rasi_file" sleep 1