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?