diff options
| author | mirenn <me@mirenn.dev> | 2026-03-30 17:32:31 +0200 |
|---|---|---|
| committer | mirenn <me@mirenn.dev> | 2026-03-31 11:24:04 +0200 |
| commit | 37a18d887de9ae798d194f3a49db9b91c9946aff (patch) | |
| tree | 2626f5550035e44d79646da6be8f6810050463c7 /scripts/set_random | |
| parent | c71d4a46983880a94d8c4e53dbbc99ebd9325381 (diff) | |
| download | dotfiles-37a18d887de9ae798d194f3a49db9b91c9946aff.tar.gz dotfiles-37a18d887de9ae798d194f3a49db9b91c9946aff.zip | |
changes
Diffstat (limited to 'scripts/set_random')
| -rwxr-xr-x | scripts/set_random | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/set_random b/scripts/set_random index 894361c..52dbab4 100755 --- a/scripts/set_random +++ b/scripts/set_random @@ -6,9 +6,8 @@ if test (count $argv) -lt 1; or not test -d $argv[1] end ~/.config/scripts/set_background ( - for file in (fd . $argv[1] -t f) + for file in (fd . $argv[1] -t f -d 1) if test -z $IMG; or test $file != $IMG echo (math (random) % 1000)":$file" end end | sort -n | head -n 1 | cut -d ':' -f2) - |
