From 46ba941d0e3df93c243429551bd5101b0c1c172e Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 8 Mar 2023 18:09:07 +0800 Subject: update --- randomimage.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 randomimage.sh (limited to 'randomimage.sh') 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 -- cgit v1.2.3