Posts Tagged ‘awayonlock’

Away-on-lock 0.5.2

2010.02.01 14:28 by Leo Antunes - Comments Off

Changes:

  • added an INSTALL file by popular request
  • use LIBPURPLE_LIBDIR in install target

Get it here

Away-on-lock 0.5.1

2009.11.02 23:28 by Leo Antunes - Comments Off

Fixing a stupid bug I was too hasty to notice (even though it was obvious).
Nothing to see here, move along.

Away-on-lock 0.5

2009.11.01 20:50 by Leo Antunes - Comments Off

Changes:

  • store changed status as pref and restore at startup if it exists: avoid awayonlock messing with the last-online status if you quit while idle.
  • minor tweaks and fixes to the test script

Get it, as usual, on the project page

Away-on-lock 0.4

2009.07.22 22:58 by Leo Antunes - Comments Off

Changes:

  • support KScreensaver (thanks Daniel Eckl for pointing out that it indeed does use DBus)
  • correct description to include current functionality
  • avoid dangling DBus connection on error during load

Get it, as usual, on the project page

Away-on-lock 0.3

2009.07.18 23:55 by Leo Antunes - Comments Off

Changes:

  • add option to activate only if status currently “Available”

Grab it in the usual place.

Away-on-lock 0.2.2

2009.07.14 23:42 by Leo Antunes - Comments Off

Changes:

  • listen to the ActiveChange DBUS signal instead of SessionIdleChanged since it’s been dropped as of gnome-screensaver 2.26.0. (thanks Thomas Krug for the heads-up)

Grab it here.

Away-on-lock 0.2.1

2009.06.01 23:24 by Leo Antunes - Comments Off

Oops, forgot about an build issue that should have been included in 0.2, now fixed in 0.2.1.

Away-on-lock 0.2

2009.06.01 22:18 by Leo Antunes - Comments Off

After way more time than I thought it would take, I finally managed to release away-on-lock 0.2.

Changes are:

  • solved problem when pidgin’s auto-away got activated before the screensaver
  • added pref to select which away status should be set
  • plugin info finally translatable

Away-on-lock 0.1

2009.02.01 15:07 by Leo Antunes - Comments Off

First release of away-on-lock, the small Pidgin plugin to set your status as away when the screensaver activates.

Away-on-lock

2009.02.01 15:05 by Leo Antunes - Comments Off

Away-on-Lock is a simple plugin for Pidgin (or any other libpurple-based IM client) to change your status when the screensaver gets activated.

It currently supports Gnome Screensaver and KScreensaver since they’re the only ones that make use of DBus to advertise their status.

Download

Version 0.5.2

Development and Bugs

Code, bugs and feature requests on the Trac.
The git repository can be cloned from here or from the github mirror.

Known Issues

Some people have bumped into this CMake bug. It’s not a plugin issue and the best way to circumvent it is upgrading your CMake version.

Extra

Away-on-lock has been implemented as a C plugin simply because I wanted to toy with the idea (and with a CMake-based build system).

It could have been implemented with something like the following python script, but what’s the fun in doing something just one way?

#!/usr/bin/env python
 
import dbus, gobject
from dbus.mainloop.glib import DBusGMainLoop
 
dbus_loop = DBusGMainLoop()
 
bus = dbus.SessionBus(mainloop=dbus_loop)
dbus_obj = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
purple = dbus.Interface(dbus_obj, "im.pidgin.purple.PurpleInterface")
 
status_current = None
 
def set_status_cb(screensaver_active):
        global staus_away,status_current
 
        status_away = purple.PurpleSavedstatusGetIdleaway()
 
        if screensaver_active:
                status_current = purple.PurpleSavedstatusGetCurrent()
                purple.PurpleSavedstatusActivate(status_away)
        elif status_current:
                purple.PurpleSavedstatusActivate(status_current)
 
bus.add_signal_receiver(set_status_cb, signal_name='ActiveChanged', dbus_interface='org.gnome.ScreenSaver')
 
gobject.MainLoop().run()