The possibility of adding a new feature
Marc Mutz
Marc.Mutz at uni-bielefeld.de
Sat Jul 27 16:36:00 BST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 27 July 2002 05:31, Nick Betcher wrote:
> Hi
> I had a sysadmin in #kde tonight that wanted an autologout feature
> for idle users.
<snip>
How about starting something like this from the session script?
#!/bin/bash
while true; do
sleep $some_time;
if mouse_moved || key_pressed; then
continue;
else
dcop ksmserver ksmserver logout <some numbers>
fi
done
where mouse_moved and key_pressed are functions that query X or
something like that for whether the mouse was moved of the keyborad was
used in the last $some_time seconds, e.g. with something like polling
dcop kdesktop KScreenSaverIface isBlanked
periodically...?
Marc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9Qr3g3oWD+L2/6DgRAnuLAJ4iYHmTVv611M0ZS1ieJ1XKOy9lBgCeJXk2
zS7zvlI6oWbLdkQHsCUbNK0=
=UCjF
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list