[kde-linux] Triggering KDE screen lock from script?
Bram Schoenmakers
bramschoenmakers at kde.nl
Thu Oct 4 15:53:51 UTC 2007
Op donderdag 04 oktober 2007, schreef Peter Houppermans:
> I was wondering is anyone on this list would know how I could trigger
> the KDE screen lock from a script?
>
> Once a user is logged in I would like to run a couple of scripts that
> could trigger the screen lock/saver to engage if certain conditions
> arose, but so far I have found nothing helpful in the way of hooks. I'm
> talking about a standard, boring bash shell script for the moment
> (that's all I can manage for the moment, I haven't coded anything in 20
> odd years or so, so Python is a little way off yet :-).
>
> Ideas? Suggestions? Beer (you need to be in Zurich for that)?
>
> I think it may not be specifically KDE related, maybe it's more general
> call to xscreenlock, but how would it pick the right screen if more
> sessions are open?
Use the following command:
dcop kdesktop KScreensaverIface lock
Kind regards,
--
Bram Schoenmakers
KDE Netherlands (www.kde.nl)
Jabber - bram at kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20071004/c5a23698/attachment.sig>
More information about the kde-linux
mailing list