From 0a4d3e99a370f5d6f12cf1b8054570d9b17db878 Mon Sep 17 00:00:00 2001 From: Tyler Kelley Date: Sat, 20 Jan 2024 21:45:01 -0600 Subject: [PATCH] This should fix the names not being right for swww and wallsetter --- config/scripts/wallsetter.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/scripts/wallsetter.nix b/config/scripts/wallsetter.nix index ec278fc..59d65a9 100644 --- a/config/scripts/wallsetter.nix +++ b/config/scripts/wallsetter.nix @@ -7,7 +7,7 @@ pkgs.writeShellScriptBin "wallsetter" '' TRANSITION3="--transition-type center --transition-step 30" TRANSITION4="--transition-type outer --transition-pos 0.3,0.8 --transition-step 30" TRANSITION5="--transition-type wipe --transition-angle 270 --transition-step 30" - WALLPAPER=$(find ${wallpaperDir} -name '*' | awk '!/.git/' | tail -n +2 | sed 's/ /\\ /g' | shuf -n 1) + WALLPAPER=$(find ${wallpaperDir} -name '*' | awk '!/.git/' | tail -n +2 | shuf -n 1) PREVIOUS=$WALLPAPER if [ -d ${wallpaperDir} ]; then cd ${wallpaperDir} @@ -20,7 +20,7 @@ pkgs.writeShellScriptBin "wallsetter" '' do if [ "$WALLPAPER" == "$PREVIOUS" ] then - WALLPAPER=$(find ${wallpaperDir} -name '*' | awk '!/.git/' | tail -n +2 | sed 's/ /\\ /g' | shuf -n 1) + WALLPAPER=$(find ${wallpaperDir} -name '*' | awk '!/.git/' | tail -n +2 | shuf -n 1) else PREVIOUS=$WALLPAPER NUM=$(shuf -i 1-5 -n 1) @@ -41,7 +41,7 @@ pkgs.writeShellScriptBin "wallsetter" '' TRANSITION=$TRANSITION5 ;; esac - ${pkgs.swww}/bin/swww img $WALLPAPER $TRANSITION + ${pkgs.swww}/bin/swww img '$WALLPAPER' $TRANSITION sleep $TIMEOUT fi done