Determining if gaim is away
Hello all. Not sure if anyone can help me with this or if it's even possible, but I thought I'd try asking here. I just set up a script so that whenever my xscreensaver goes on (whether I'm idle or I force it to) gaim-remote tells gaim to go away, and whenever it goes off, gaim-remote brings me back. This worked well until I realized if I already had an away message and the screensaver came up, it would replace that one with the default. I'm trying to figure out if there's some way from within a script to see if gaim is currently away, and then do nothing if it is or run gaim-remote if it isn't. Thanks in advance.