GNOME, gaim and Sun Ray utactions

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"

Alan and Bob had some clever ideas for dtactions and for other users of away/here hooks (e.g. when gnome-screensaver) Others have used dtactions to enable "follow me" printing and automatic resource management. If anyone else has ideas for GNOME hooks which would be useful in this or similar environments I'd appreciate hearing from you.
Comments:

Post a Comment:
Comments are closed for this entry.
About

bnitz

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today