-added firefox role
-attempt again to disable screensaver
This commit is contained in:
@@ -4,19 +4,23 @@
|
||||
#launch browser on local display
|
||||
function launch_browser {
|
||||
DISPLAY=:0 /usr/bin/chromium-browser `shuf -n 1 /home/{{ def_username }}/Documents/facebook_url.list` &
|
||||
#DISPLAY=:0 /usr/bin/firefox `shuf -n 1 /home/{{ def_username }}/Documents/facebook_url.list` &
|
||||
}
|
||||
|
||||
#prevent race condition/memory exhaustion
|
||||
if pgrep -f chrome >/dev/null
|
||||
#if pgrep -f firefox >/dev/null
|
||||
then
|
||||
/usr/bin/killall chrome
|
||||
#/usr/bin/killall firefox
|
||||
else
|
||||
for i in $(seq 13)
|
||||
do
|
||||
launch_browser
|
||||
sleep 10
|
||||
done
|
||||
/usr/bin/killall chrome
|
||||
/usr/bin/killall chrom
|
||||
#/usr/bin/killall firefox
|
||||
rm /home/{{ def_username }}/.config/chromium/BrowserMetrics/*
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user