mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-01-23 20:58:35 +01:00
This should fix the names not being right for swww and wallsetter
This commit is contained in:
parent
37a5fd5008
commit
0a4d3e99a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user