-added firefox role

-attempt again to disable screensaver
This commit is contained in:
Michael Pellegrino
2022-07-01 13:30:21 -04:00
parent 42c6f18bd7
commit 85e7e96c08
9 changed files with 69 additions and 19 deletions

View File

@@ -1,10 +1,13 @@
#!/bin/bash
# play random youtube videos for up to 15 minutes
if pgrep -f chromium-browser >/dev/null
#if pgrep -f chromium-browser >/dev/null
if pgrep -f firefox >/dev/null
then
exit 0
else
DISPLAY=:0 /usr/bin/chromium-browser --autoplay-policy=no-user-gesture-required https://www.vtomb.com &
#DISPLAY=:0 /usr/bin/firefox https://www.vtomb.com &
/usr/bin/perl -e 'sleep int rand 300' && /usr/bin/killall /usr/lib/chromium-browser/chromium-browser-v7
#/usr/bin/perl -e 'sleep int rand 300' && /usr/bin/killall firefox
fi