Bug 290998

Summary: Plugin to set away presence when locking screen
Product: [Unmaintained] telepathy Reporter: Martin Klapetek <mklapetek>
Component: kded-moduleAssignee: Telepathy Bugs <kde-telepathy-bugs>
Status: RESOLVED FIXED    
Severity: wishlist CC: heri+kde, kde, lucasbetschart, oliver.henshaw
Priority: NOR    
Version: git-latest   
Target Milestone: Future   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In: 0.7.0
Sentry Crash Report:

Description Martin Klapetek 2012-01-08 21:04:02 UTC
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'.
Comment 1 Lucas Betschart 2013-04-30 20:41:22 UTC
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!
Comment 2 David Edmundson 2013-04-30 23:16:50 UTC
There's  a DBus signal:
org.freedesktop.ScreenSaver ScreenSaver org.freedesktop.ScreenSaver ActiveChanged
Comment 3 Martin Klapetek 2013-05-01 09:10:46 UTC
And to connect to that signal you want to use QDBusConnection::sessionBus().connect(..), we do that in telepathy-mpris.cpp.

Thanks btw :)
Comment 4 Martin Klapetek 2013-05-04 09:09:16 UTC
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