aboutsummaryrefslogtreecommitdiff
path: root/scripts/set_random
diff options
context:
space:
mode:
authormirenn <me@mirenn.dev>2025-12-02 08:54:27 +0100
committermirenn <me@mirenn.dev>2026-03-20 10:24:05 +0100
commitc71d4a46983880a94d8c4e53dbbc99ebd9325381 (patch)
tree96f908c8eccf11d19d77c37c333ed56aa4a437d5 /scripts/set_random
parent6afc74f542553c7cd439d943e916d6aaef3e71d3 (diff)
downloaddotfiles-c71d4a46983880a94d8c4e53dbbc99ebd9325381.tar.gz
dotfiles-c71d4a46983880a94d8c4e53dbbc99ebd9325381.zip
xd
Diffstat (limited to '')
-rwxr-xr-xscripts/set_random4
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)