This commit is contained in:
Stephan Raabe 2024-03-27 13:25:38 +01:00
parent 171c3a1a6a
commit ffa3ecafd2
3 changed files with 18 additions and 3 deletions

View File

@ -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 - 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 - Using blurred version of background image for wlogout
- Add progress bar to dunst notification for wallpaper change
Version 2.8.3.3 Version 2.8.3.3
https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.8.3.3 https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.8.3.3

View File

@ -27,7 +27,7 @@ exec-once = hypridle
exec-once = wl-paste --watch cliphist store exec-once = wl-paste --watch cliphist store
# Initialize swww # Initialize swww
exec-once = swww-daemon --format xrgb exec-once = swww init || swww-daemon --format xrgb
# Load last wallpaper and waybar with pywal colors # Load last wallpaper and waybar with pywal colors
exec-once = ~/dotfiles/hypr/scripts/wallpaper.sh init exec-once = ~/dotfiles/hypr/scripts/wallpaper.sh init

View File

@ -36,6 +36,7 @@ case $1 in
# Load wallpaper from .cache of last session # Load wallpaper from .cache of last session
"init") "init")
sleep 1
if [ -f $cache_file ]; then if [ -f $cache_file ]; then
wal -q -i $current_wallpaper wal -q -i $current_wallpaper
else else
@ -94,9 +95,23 @@ swww img $wallpaper \
--transition-duration=0.7 \ --transition-duration=0.7 \
--transition-pos "$( hyprctl cursorpos )" --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 # 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 magick $wallpaper -resize 75% $blurred
echo ":: Resized to 75%" echo ":: Resized to 75%"
if [ ! "$blur" == "0x0" ] ;then if [ ! "$blur" == "0x0" ] ;then
@ -104,7 +119,6 @@ if [ ! "$blur" == "0x0" ] ;then
echo ":: Blurred" echo ":: Blurred"
fi fi
# ----------------------------------------------------- # -----------------------------------------------------
# Write selected wallpaper into .cache files # Write selected wallpaper into .cache files
# ----------------------------------------------------- # -----------------------------------------------------
@ -118,7 +132,7 @@ echo "* { current-image: url(\"$blurred\", height); }" > "$rasi_file"
if [ "$1" == "init" ] ;then if [ "$1" == "init" ] ;then
echo ":: Init" echo ":: Init"
else 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 fi
echo "DONE!" echo "DONE!"