From fe46e7b4983b87ad682988b2dde54223d99d4514 Mon Sep 17 00:00:00 2001 From: Sergio Date: Wed, 6 Sep 2023 10:37:11 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20eom.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eom.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 eom.sh diff --git a/eom.sh b/eom.sh new file mode 100755 index 0000000..9b02659 --- /dev/null +++ b/eom.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# Script para ejecutar un slideshow con eom +# de una carpeta al azar dentro de un directorio + +FOLDER=/home/sergio/zx/scr_packs + +array=("${FOLDER}"/*/) +#for dir in "${array[@]}"; do echo "$dir"; done +NUM=$(( RANDOM % ${#array[@]})) +#echo "${array[$NUM]}" + +eom -f -s "${array[$NUM]}" \ No newline at end of file