Subscribe via feed.

A lightweight screen locker

Posted by kwame on March 31, 2014 – 11:39 pm

For a long time I’ve been using Awesome as my window manager and Xscreensaver (by Jamie Zawinski) has been my screensaver of choice.
Recently I started looking for something even more lightweight than Xscreensaver and I found i3lock.
i3locki3lock is a simple screen locker like slock. After starting it, you will see a white screen (you can configure the color/an image). You can return to your screen by entering your password. To install it on your Debian system all you need to do is an:

apt-get install i3lock 

I would recommend to install xautolock. This is a program to start up programs in case of user inactivity in X.
After you’ve installed both programs you can set the timer for i3lock to start up with something like this:

xautolock -time 5 -locker i3lock

Taking a look at the options from i3lock I saw that I can specify an image instead of the default white color. I chose a Linux wallpaper with this option:

xautolock -time 5 -locker "i3lock --image=/home/kwame/Pictures/linux_wallpaper.png -t"

Hope you find this useful.

This post is under “geek stuff, general, linux, sysadmin, Uncategorized” and has no respond so far.
If you enjoy this article, make sure you subscribe to my RSS Feed.