mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2024-11-07 15:23:59 +01:00
had to remove the check for same wallpaper. Not workin
This commit is contained in:
parent
daf9e9c639
commit
9988abea7b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user