mirror of
https://github.com/Screenly/Anthias.git
synced 2026-05-05 22:05:14 -04:00
26 lines
557 B
Bash
Executable File
26 lines
557 B
Bash
Executable File
#!/bin/bash
|
|
|
|
LOG=/tmp/screenly_xloader.log
|
|
|
|
echo "Disabling screen power savings..." > $LOG
|
|
|
|
xset s off # don't activate screensaver
|
|
xset -dpms # disable DPMS (Energy Star) features.
|
|
xset s noblank # don't blank the video device
|
|
|
|
sleep 5
|
|
|
|
echo "Launching infinite loop..." >> $LOG
|
|
while true
|
|
do
|
|
# Clean up in case of an unclean exit
|
|
echo "Cleaning up..." >> $LOG
|
|
killall uzbl-core
|
|
killall omxplayer omxplayer.bin
|
|
rm -f /tmp/uzbl_*
|
|
rm -f /tmp/screenly_html/*
|
|
|
|
# Launch the viewer
|
|
python ~/screenly/viewer.py >> $LOG 2>&1
|
|
done
|