From 2781082f1085757a0cfb929ba37de968726ec751 Mon Sep 17 00:00:00 2001 From: "eric.marin" Date: Tue, 2 Dec 2025 08:54:27 +0100 Subject: xd --- scripts/set_random | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/set_random') 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) -- cgit v1.2.3