How to lock workstation in Xubuntu?

How to lock workstation in Xubuntu (XFCE, XFWM)?


Solution 1:

You use program called xflock4, I can really remember what is the shortcut to that bu i thing it is Ctrl+Alt+Delete. Anyway if it doesn't work make sure it is installed.

Solution 2:

As of 16.04, there should be light-locker because of LightDM. Use:

light-locker-command -l

to lock your workstation.

Solution 3:

I recently upgraded from Xubuntu 11.10 to Xubuntu 12.04 LTS, which made the <Control><Alt>Delete stop initiating the lock for some unknown reason.

To work around this (and reinstate the original behavior), you can go to Xfce Settings, then Keyboard, then Application Shortcuts. You should find the original <Control><Alt>Delete shortcut for xflock4. But now try adding a new shortcut for the same command (xflock4), by entering what you believe to be "Control", "Alt", "Delete". The shortcut entered in will say <Primary><Alt>Delete. Now the key sequence should work, but I don't know why my "Control" key is called "Primary".