[Remind-Fans] Turning off event notification in Daemon mode

David F. Skoll dfs at roaringpenguin.com
Fri Mar 6 11:53:44 EST 2009


Christoph Blank wrote:

> Sorry I forgot that, I'm using wyrd as a frontend.
> And the daemon issues gxmessage notifications, so they stay on the
> screen.

OK, so you want the system to somehow magically know whether or not
you're at your computer?

If you use xscreensaver to lock your screen when you are away, make a
shell script something like this:

#=============================================
#!/bin/sh

# Do nothing if screensaver is on
xscreensaver-command -cycle > /dev/null 2>&1 || exit 0

# Otherwise, issue the message
exec gxmessage "$@"
#=============================================

and then invoke that script (instead of gxmessage directly) to pop up
your reminders.  If you don't use xscreensaver, you need to figure out
how to tell if the screen is locked on your system.

Regards,

David.



More information about the Remind-fans mailing list