diff options
Diffstat (limited to 'scripts/set_random')
| -rwxr-xr-x | scripts/set_random | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/set_random b/scripts/set_random index cdc4018..894361c 100755 --- a/scripts/set_random +++ b/scripts/set_random @@ -6,8 +6,8 @@ if test (count $argv) -lt 1; or not test -d $argv[1] end ~/.config/scripts/set_background ( - for file in (find $argv[1] -type f) - if test -z $img; or test $file != $img + for file in (fd . $argv[1] -t f) + if test -z $IMG; or test $file != $IMG echo (math (random) % 1000)":$file" end end | sort -n | head -n 1 | cut -d ':' -f2) |
