If you lock your screen, your evidently not 'available' anymore. Plugin setting you away would be great (there's a signal for screenlocking). Similarly when you watch a movie in full-screen, your presence could be 'busy'.
Hi, I've implemented the UI and forked autoaway.cpp for a new lock screen away plugin. But I don't know where I can get the screenlocking signal from, can you give me a hint? Thanks!
There's a DBus signal: org.freedesktop.ScreenSaver ScreenSaver org.freedesktop.ScreenSaver ActiveChanged
And to connect to that signal you want to use QDBusConnection::sessionBus().connect(..), we do that in telepathy-mpris.cpp. Thanks btw :)
Git commit 68d2b69a99b1f0eddf256578273890f99fdc8a93 by Martin Klapetek, on behalf of Lucas Betschart. Committed on 04/05/2013 at 11:07. Pushed by mklapetek into branch 'master'. Plugin to set status "Away" when screen gets locked REVIEW: 110260 FIXED-IN: 0.7.0 M +1 -0 CMakeLists.txt M +26 -0 config/telepathy-kded-config.cpp M +1 -0 config/telepathy-kded-config.h M +94 -2 config/telepathy-kded-config.ui M +10 -1 telepathy-module.cpp M +2 -0 telepathy-module.h http://commits.kde.org/telepathy-kded-module/68d2b69a99b1f0eddf256578273890f99fdc8a93