had to remove the check for same wallpaper. Not workin

This commit is contained in:
Tyler Kelley 2024-05-17 05:18:42 -05:00
parent daf9e9c639
commit 9988abea7b

View File

@ -2,9 +2,6 @@
pkgs.writeShellScriptBin "wallsetter" ''
WALLPAPER=$(find /home/${username}/Pictures/Wallpapers -name '*' | awk '!/.git/' | tail -n +2 | shuf -n 1)
if [ $WALLPAPER == $PREVIOUS ]; then
WALLPAPER=$(find /home/${username}/Pictures/Wallpapers -name '*' | awk '!/.git/' | tail -n +2 | shuf -n 1)
fi
PREVIOUS=$WALLPAPER
if [ -d /home/${username}/Pictures/Wallpapers ]; then
num_files=$(ls -1 /home/${username}/Pictures/Wallpapers | wc -l)