GNOME, gaim and Sun Ray utactions
By bnitz on Dec 14, 2005
GNOME on on Sun Ray has been my primary work desktop since 2001. I love the fact that I can remove my Java card, pop into a quiet room, a coworker's office, or a Sun office in the U.K., put in the card and everything is exactly as I left it. But when I pull out my card I don't always remember to set my status to "away" on GAIM. It would be nice to have this happen automatically.
Fortunately, Sun Ray software has the utaction command. Utaction allows shell commands to be run automatically on card insertion and removal. So all I need is a command line interface to my instant messaging client. I found a gaim command line tool called gaim-remote. Gaim-remote was recently modified to use DBUS but it still has very limited functionality. Gaim-remote can tell your AOL users that you're offline but as far as I know, it can't tell IRC users you are offline.
Here is how you would enable gaim here/away messages on card insertion and removal:
1) In Gaim, Tools->Preferences-Plugins, enable the "Remote Control" plugin.
2) /opt/SUNWut/bin/utaction -i -d "gaim-remote away" -c "gaim-remote back"