#!/bin/sh

while [ 1=1 ];
do

    if [ "$(pidof google-chrome)" -o "$(pidof huludesktop)" -o "$(pidof kodi.bin)" -o "$(pidof plexhometheater)" ]
    then
    xscreensaver-command -deactivate
    fi
    sleep 60

done