From 715832b4d8df39aa121945a1fc1bf1539f11027d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 21 Sep 2024 19:35:20 +0800 Subject: updated arg --- swww.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/swww.sh b/swww.sh index c065871..1c1ab47 100755 --- a/swww.sh +++ b/swww.sh @@ -5,7 +5,7 @@ XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}" XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" WALLPAPERS="$XDG_PICTURES_DIR/wallpapers/" current_bg="$(cat $XDG_CACHE_HOME/current.bg)" -swwwarg="--transition-type random --transition-step 240 --transition-angle 0 --transition-duration 0.85 --transition-fps 160 --transition-bezier 1,0.33,0.3,1" +swwwarg="--transition-type random --transition-duration 0.85 --transition-fps 160 --transition-bezier 1,0.33,0.3,1" # colors RED='\033[0;31m' @@ -25,9 +25,10 @@ while true; do fi # wallust run --skip-sequences $(cat $XDG_CACHE_HOME/current.bg) - wallust run --backend kmeans --skip-sequences $(cat $XDG_CACHE_HOME/current.bg) & + # wallust run --backend kmeans --skip-sequences $(cat $XDG_CACHE_HOME/current.bg) & # using cache now swww img $(cat $XDG_CACHE_HOME/current.bg) $swwwarg wallust run --backend full --skip-sequences $(cat $XDG_CACHE_HOME/current.bg) + (sleep 0.1; pgrep -f wallust && wallust run --backend kmeans --skip-sequences $(cat $XDG_CACHE_HOME/current.bg)) & swaync-client --reload-css @@ -41,6 +42,8 @@ while true; do # update hyprlock killall -SIGUSR2 hyprlock + nice -n 20 wallust run --backend full --skip-templates --skip-sequences $wallpappath + if swww query; then sleep $DELAY else -- cgit v1.2.3