blob: f0c3915fdad14a78260ab564d8f082d646b335dd (
plain)
- #!/bin/sh
- set -e
- if [ -z "$DISPLAY" ]; then
- export DISPLAY=:0
- fi
- # Make sure display is alive and awake
- /usr/local/bin/xset s reset
- /usr/local/bin/xset s off
- # Clean out stale directories (hoping noone else use same name!)
- rm -rf /tmp/xslideshow.??????
- workdir="`mktemp -d /tmp/xslideshow.XXXXXX`"
- remotehost="lager"
- remoteuser="infoscreen"
- remotedir="/home/jonas/websites/info.dgi-huset.dk/img"
- #cd "$workdir"
- while true; do
- rsync -a "$remoteuser@$remotehost":"$remotedir"/*.png "$workdir/"
- files="`find $workdir -name '*.png' | sort`"
- for file in $files; do
- # timeslices=`echo $file | sed 's/.*_([0-9]+)s\.png/\1/'`
- # for i in `seq 1 $timeslices`; do
- qiv -m --root $file
- sleep 5
- done
- done
- # qiv -m --slide --delay=5 $files
|