From 582c7ad0569e4bc52a86b38e9a51f07f41842e15 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 2 Sep 2024 17:36:35 +0800 Subject: init hyprland scripts --- wallpapertrans.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'wallpapertrans.sh') diff --git a/wallpapertrans.sh b/wallpapertrans.sh index c71a3cf..6c87d4a 100755 --- a/wallpapertrans.sh +++ b/wallpapertrans.sh @@ -7,6 +7,7 @@ XDG_PICTURES_DIR="${XDG_PICTURES_DIR:-$HOME/Pictures}" WALLPAPERS="$XDG_PICTURES_DIR/wallpapers/" wallpappath=$(find "$WALLPAPERS" | shuf -n 1) cp "$wallpappath" $XDG_CACHE_HOME/wallpaper/old.jpg +hyprctl hyprpaper preload "$wallpappath" echo "$wallpappath" > "$XDG_CACHE_HOME/current.bg" DELAY=0.005 @@ -17,9 +18,11 @@ RESIZE=30% if [ $# -ne 1 ]; then for i in {7..11}; do convert "$wallpappath" -resize $RESIZE -fill black -blur $((75 - ($i - 7) * 15))% -fill black -colorize $((75 - ($i - 7) * 15))% -quality $QUALITY /tmp/transition${i}.jpg & + hyprctl hyprpaper preload "/tmp/transition${i}.jpg" done for i in {1..11}; do - feh --bg-fill /tmp/transition${i}.jpg + # feh --bg-fill /tmp/transition${i}.jpg + hyprctl hyprpaper wallpaper ", /tmp/transition${i}.jpg" sleep $DELAY done rm /tmp/transition*.jpg @@ -29,6 +32,9 @@ feh --bg-fill "$wallpappath" # cp "$wallpappath" $HOME/.cache/wallpaper/old.jpg +hyprctl hyprpaper unload all + for i in {1..6}; do convert $HOME/.cache/wallpaper/old.jpg -resize $RESIZE -fill black -blur $(($i * 10))% -fill black -colorize $(($i * 10))% -quality $QUALITY /tmp/transition${i}.jpg & + hyprctl hyprpaper preload "/tmp/transition${i}.jpg" done -- cgit v1.2.3