diff --git a/cron-rest-eyes b/cron-rest-eyes index 2fa5bf8..02ea924 100755 --- a/cron-rest-eyes +++ b/cron-rest-eyes @@ -1,5 +1,7 @@ #!/bin/sh +export DISPLAY=:0 + # no message if one is displayed already if [[ "$(ps -efww | grep -v grep | grep gxmessage)" != "" ]]; then exit @@ -13,5 +15,4 @@ if [ "$(gnome-screensaver-command --query | grep is.active)" != "" ]; then exit fi -export DISPLAY=:0 gxmessage 'Rest your eyes!'