From dba4eb1c2fce358c29d1db050b8e7b374fc391a5 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 7 Nov 2011 10:48:11 -0500 Subject: [PATCH] cron-rest-eyes: proper grep order to exclude grep results --- cron-rest-eyes | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cron-rest-eyes b/cron-rest-eyes index 378d0e2..dd51d37 100755 --- a/cron-rest-eyes +++ b/cron-rest-eyes @@ -3,11 +3,11 @@ export DISPLAY=:0 # no message if one is displayed already -if [[ "$(ps -efww | grep -v grep | grep gxmessage)" != "" ]]; then +if [[ "$(ps -efww | grep gxmessage | grep -v grep)" != "" ]]; then exit fi # no message if xscreensaver active -if [ "$(ps -efww | grep -v grep | grep xscreensaver)" != "" ]; then +if [ "$(ps -efww | grep xscreensaver | grep -v grep)" != "" ]; then exit fi # no message if gnome-screensaver active