|
From: | Pedro |
Subject: | Re: [shell-script] Re: Slideshow Raspberry Pi |
Date: | Wed, 27 Jul 2016 23:28:52 +0000 |
Pedro, segue minha pequena colaboração
Só ajustar os parâmetros no cabeçalho conforme sua necessidade.
#########################################
#!/bin/bash
TIMEOUT=5
DIR='/tmp/teste_img_vid'
INFINITO=1
function reproduz() {
for i in `ls -v $DIR/*`
do
ext=`echo $i | awk -F\. '{print $NF}'`
if [ "$ext" == "jpg" ]
then
eog -f $i &
sleep $TIMEOUT
kill `pidof -x eog`
fi
if [ "$ext" == "mp4" ]
then
mplayer -fs $i
fi
done
if [ $INFINITO -eq 1 ]
then
reproduz
fi
}
reproduz
######################################################################
[Prev in Thread] Current Thread [Next in Thread]
- Slideshow Raspberry Pi, Pedro, 2016/07/26
- Re: Slideshow Raspberry Pi, itamarnet, 2016/07/27
- Re: [shell-script] Re: Slideshow Raspberry Pi, Pedro, 2016/07/27
- Re: [shell-script] Slideshow Raspberry Pi, Josue Bragagnolo, 2016/07/27
- Re: Slideshow Raspberry Pi, josuebragagnolo, 2016/07/27
- Re: [shell-script] Re: Slideshow Raspberry Pi, Pedro <=
- Re: [shell-script] Re: Slideshow Raspberry Pi, itamarnet, 2016/07/27
- Re: [shell-script] Re: Slideshow Raspberry Pi, Pedro, 2016/07/28
- Re: [shell-script] Re: Slideshow Raspberry Pi, itamarnet, 2016/07/28
- Re: [shell-script] Re: Slideshow Raspberry Pi, Pedro, 2016/07/28
- Prev by Date: Re: Slideshow Raspberry Pi
- Next by Date: Re: [shell-script] Obter quantidade de coluna no while.
- Previous by thread: Re: Slideshow Raspberry Pi
- Next by thread: Re: [shell-script] Re: Slideshow Raspberry Pi
- Index(es):