summaryrefslogtreecommitdiff
path: root/wallpapertrans.sh
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-04-27 18:29:58 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-04-27 18:29:58 +0800
commitcddeebd21b7e0bee1b8f97d74d9ef74b40abc54b (patch)
treea6396189f7cc9d0156f0a46b1fc13c4943c6f566 /wallpapertrans.sh
parent5f52a98caa3a15eff093ec4a7d8f093dd411691c (diff)
walls: organize into one dir
Diffstat (limited to 'wallpapertrans.sh')
-rwxr-xr-xwallpapertrans.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/wallpapertrans.sh b/wallpapertrans.sh
deleted file mode 100755
index 6c87d4a..0000000
--- a/wallpapertrans.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-# Animated wallpaper changer
-feh --bg-fill $XDG_CACHE_HOME/wallpaper/old.jpg
-
-DISPLAY=:0
-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
-QUALITY=0.000001
-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
- hyprctl hyprpaper wallpaper ", /tmp/transition${i}.jpg"
- sleep $DELAY
- done
- rm /tmp/transition*.jpg
-fi
-
-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