Using Ubuntu 10.10. I use XMonad window manager as primary. I have CommandKey+S mapped to a bash file that shows a screensaver and locks, and puts the PC to sleep (on resume I have to enter password).
#/bin/bash gnome-screensaver-command -a gnome-screensaver-command -l dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.Suspend
This works fine. However I'd like XMonad to automatically run that script (i.e. lock screen and suspend) after X minutes of no keyboard/mouse activity.
I've taken it (basic screensaver/lock/suspend) for granted in other desktops/windows managers.