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