summaryrefslogtreecommitdiff
path: root/randomimage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'randomimage.sh')
-rwxr-xr-xrandomimage.sh3
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