Files
dsfin-ansible/roles/youtube/files/youtube.sh
mpelle426 ed7eabd399 -numerous changes to work with Raspbian 10
-redo of some roles, particularly GUI
-modifications to support working from a "Raspbian Lite" install
2019-07-10 14:24:34 +01:00

11 lines
262 B
Bash

#!/bin/bash
# play random youtube videos for up to 15 minutes
if pgrep -f chromium-browser >/dev/null
then
exit 0
else
DISPLAY=:0 /usr/bin/chromium-browser https://www.vtomb.com &
/usr/bin/perl -e 'sleep int rand 300' && /usr/bin/killall chromium-browser
fi