If you're using X11, and you want to use xlockmore
, the lightest-weight screen locker I've found, you can download and install xautolock
and then add the following to your .xinitrc
:
# start the auto-locker (defaults to 10 minutes) xautolock & [...] # start the window manager of my choice #exec /usr/bin/fluxbox #exec /usr/bin/blackbox exec /usr/bin/foo_window_manager
It's a traditional GNU/Linux app, so the settings are in ~/.Xdefaults. See man page.