diff --git a/CHANGELOG b/CHANGELOG index 92c07a7..5e0e311 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -3,6 +3,7 @@ https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.8.3.4 -------------------------------------------------------- - Fix swww gray backgroud issue. New command on autostart.conf is exec-once = swww-daemon --format xrgb - Using blurred version of background image for wlogout +- Add progress bar to dunst notification for wallpaper change Version 2.8.3.3 https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.8.3.3 diff --git a/hypr/conf/autostart.conf b/hypr/conf/autostart.conf index 520d73c..dacaf1c 100644 --- a/hypr/conf/autostart.conf +++ b/hypr/conf/autostart.conf @@ -27,7 +27,7 @@ exec-once = hypridle exec-once = wl-paste --watch cliphist store # Initialize swww -exec-once = swww-daemon --format xrgb +exec-once = swww init || swww-daemon --format xrgb # Load last wallpaper and waybar with pywal colors exec-once = ~/dotfiles/hypr/scripts/wallpaper.sh init diff --git a/hypr/scripts/wallpaper.sh b/hypr/scripts/wallpaper.sh index 60738d2..f548d25 100755 --- a/hypr/scripts/wallpaper.sh +++ b/hypr/scripts/wallpaper.sh @@ -36,6 +36,7 @@ case $1 in # Load wallpaper from .cache of last session "init") + sleep 1 if [ -f $cache_file ]; then wal -q -i $current_wallpaper else @@ -94,9 +95,23 @@ swww img $wallpaper \ --transition-duration=0.7 \ --transition-pos "$( hyprctl cursorpos )" +if [ "$1" == "init" ] ;then + echo ":: Init" +else + sleep 1 + dunstify "Changing wallpaper ..." "with image $newwall" -h int:value:33 -h string:x-dunst-stack-tag:wallpaper + sleep 2 +fi + # ----------------------------------------------------- # Created blurred wallpaper # ----------------------------------------------------- +if [ "$1" == "init" ] ;then + echo ":: Init" +else + dunstify "Creating blurred version ..." "with image $newwall" -h int:value:66 -h string:x-dunst-stack-tag:wallpaper +fi + magick $wallpaper -resize 75% $blurred echo ":: Resized to 75%" if [ ! "$blur" == "0x0" ] ;then @@ -104,7 +119,6 @@ if [ ! "$blur" == "0x0" ] ;then echo ":: Blurred" fi - # ----------------------------------------------------- # Write selected wallpaper into .cache files # ----------------------------------------------------- @@ -118,7 +132,7 @@ echo "* { current-image: url(\"$blurred\", height); }" > "$rasi_file" if [ "$1" == "init" ] ;then echo ":: Init" else - notify-send "Colors and Wallpaper updated" "with image $newwall" + dunstify "Wallpaper procedure complete!" "with image $newwall" -h int:value:100 -h string:x-dunst-stack-tag:wallpaper fi echo "DONE!"