This commit is contained in:
Stephan Raabe
2024-03-07 15:51:34 +01:00
parent 1fe8a3bc7a
commit f3cc851979
99 changed files with 280 additions and 1423 deletions

View File

@@ -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
@@ -65,12 +66,6 @@ esac
source "$HOME/.cache/wal/colors.sh"
echo ":: Wallpaper: $wallpaper"
# -----------------------------------------------------
# Write selected wallpaper into .cache files
# -----------------------------------------------------
echo "$wallpaper" > "$cache_file"
echo "* { current-image: url(\"$wallpaper\", height); }" > "$rasi_file"
# -----------------------------------------------------
# get wallpaper image name
# -----------------------------------------------------
@@ -95,6 +90,17 @@ swww img $wallpaper \
--transition-duration=0.7 \
--transition-pos "$( hyprctl cursorpos )"
# -----------------------------------------------------
# Created blurred wallpaper
# -----------------------------------------------------
magick $wallpaper -blur 0x20 $blurred
# -----------------------------------------------------
# Write selected wallpaper into .cache files
# -----------------------------------------------------
echo "$wallpaper" > "$cache_file"
echo "* { current-image: url(\"$blurred\", height); }" > "$rasi_file"
# -----------------------------------------------------
# Send notification
# -----------------------------------------------------