When I leave work, I lock my machine with ctrl + l to lock the screen. When I come back, I always forget to log into jabber. Is there a way to run a command after the screen is unlocked? This is in KDE. I'm not sure if the locking mechanism is an X feature or a KDE feature, so I'm not sure where to look.
|
I had a desire to make banshee (the Gnome music player) pause/unpause when the screen was locked/unlocked. I found a ticket in the banshee launchpad project: https://bugs.launchpad.net/banshee/+bug/237687 Someone had created a script which would notice (via DBus) if the screen was (un)locked and would trigger banshee to (un)pause. I added a small tweak to this script and have been using it for a while. I added my updated copy to that ticket. Now I know this isn't exactly what you want to do. But you could probably take that python script (which is already detecting screen locks/unlocks) and alter it slightly to do what you would like to do. It is also my understanding that the KDE screensaver supports the same DBus interface as the gnome screensaver. It seems like the best documentation for the KDE side of things is here: http://quickgit.kde.org/?p=kde-workspace.git&a=blob&f=krunner/screensaver/saverengine.h Good luck! |
|||||||
|
