Is there any way that I can lock the screen CLI-style? I'm trying to target as many desktop managers as possible (mostly LightDM, but GDM, KDM, SLiM, XScreensaver, etc. would be great too), but I can only dig things up for GDM and XScreensaver.
For GDM, it would be:
gnome-screensaver-command -l
For XScreensaver:
xscreensaver-command -lock
Is there a similar command for KDM and LightDM?
man lightdmdoesn't look too promising... moleberry.com/man/l/lightdm.1.html – jasonwryan Sep 30 '11 at 5:41dbus-sendto send the appropriate lock message). – andcoz Sep 30 '11 at 9:24dbus-sendthings while Googling, but sadly none of them worked. I even looked at the LightDM API reference for a solution, but even that doesn't have anything. Heck, I even tried to look at the source of Ubuntu's user switching panel (sorry, can't read like 1,000,000 of C). I might try emailing the dev list for help... – Blender Sep 30 '11 at 15:48