This should fix the names not being right for swww and wallsetter

This commit is contained in:
Tyler Kelley 2024-01-20 21:45:01 -06:00
parent 37a5fd5008
commit 0a4d3e99a3

View File

@ -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