Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I want to use OpenBox then how can I lock my "monitor" when I leave the PC for a few minutes? Like the gnome-screensaver under GNOME.

share|improve this question
possible duplicate of Lock screen w/ slock after a certain time? – Caleb Jun 8 '11 at 20:20
@Caleb For once I don't think that's a duplicate. There could be other programs than slock. – Gilles Jun 8 '11 at 22:18
up vote 5 down vote accepted

The simplest is slock, the suckless screen locker.

You could combine this with xautolock if you wanted to automate it after a period of inactivity.

If you want something more "featurefull" you could install xscreensaver. Of course, gnome-screensaver is an option as well...

share|improve this answer

I use xlockmore

Install (in fedora):

sudo yum -y install xlockmore xlockmore-gtk

and I have a keybinding (Ctrl+Alt+l) in my rc.xml file that goes like this:

    <keybind key="C-A-l">
      <action name="Execute">
        <execute>xlock -mousemotion +description -mode blank -bg black -fg grey30</execute>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.