diff options
| author | littleblack111 <jerrylam110209@gmail.com> | 2023-03-08 18:09:07 +0800 |
|---|---|---|
| committer | littleblack111 <jerrylam110209@gmail.com> | 2023-03-08 18:09:07 +0800 |
| commit | 46ba941d0e3df93c243429551bd5101b0c1c172e (patch) | |
| tree | e7c185a0f749248983340246ad71f6a30edeb2c7 /randomimage.sh | |
update
Diffstat (limited to 'randomimage.sh')
| -rwxr-xr-x | randomimage.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/randomimage.sh b/randomimage.sh new file mode 100755 index 0000000..bb18b7e --- /dev/null +++ b/randomimage.sh @@ -0,0 +1,3 @@ +# Select a random file name from the list +random_file=$(shuf -n 1 -e $(find /home/system/Pictures/wallpapers) | head -n 1) +echo $random_file |
