From 6c4fc5e429f362c0c5544d34f17285c4cfc16ba8 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Mon, 24 Aug 2026 01:47:36 -0400 Subject: remove old filesand bump nix-files --- home-config/hypr/wallpaper-daemon.sh | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100755 home-config/hypr/wallpaper-daemon.sh (limited to 'home-config/hypr/wallpaper-daemon.sh') diff --git a/home-config/hypr/wallpaper-daemon.sh b/home-config/hypr/wallpaper-daemon.sh deleted file mode 100755 index b793c5a..0000000 --- a/home-config/hypr/wallpaper-daemon.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -# Script initialization -# Check if animated wallpapers exist, set env var if so -# Sleep for swww init to finish -init_static() { - # On battery or missing wallpapers, just load a random image - IMG=`find ~/.config/hypr/Wallpapers/static/ -type f | sort -R | tail -n1` - echo $IMG >> /tmp/$USER-desktop-anim - swww img $IMG -} - -begin_randomizer() { - while :; do - sleep 3600 - switch_check `find ~/.config/hypr/Wallpapers/static/ -type f | sort -R | tail -n1` - done -} - -switch_check() { - # Simply query what image is displayed and make sure we do not overwrite - # it. This is more for animated wallpapers since it causes corruption - CURRENT_FILE=`swww query | awk -F'/' '{print $NF}'` - SELECTION=`echo $1 | awk -F'/' '{print $NF}'` - - if ! [ "$CURRENT_FILE" == "$SELECTION" ]; then - # Update the file - sed -i '2c'"$1" /tmp/$USER-desktop-anim - # Set the background! - swww img $1 - fi -} - -init_static -begin_randomizer & -- cgit v1.3.1