This website have moved to

Use a pixelated version of your desktop as your lockscreen with i3lock

Tuesday, September 4, 2018

I decided it was time to spice up my lockscreen, I’ve been using the same old static picture for what feels like years now.

I’ve seen a lot of people use blurred and pixelated screenshots of their desktop and they do look pretty cool, so I decided to do the same thing myself. :)

My lockscreen using i3lock and a pixelated screenshot of my desktop

I wrote a Bash script that uses scrot and imagemagick to take a screenshot of my desktop, pixelate the image, add the lock icon to it and lastly lock the screen using the newly created image.



scrot $img
# Pixelate image
convert $img -scale 10% -scale 1000% $img
# Blur image
#convert $img -blur 0x4 500% $img
convert $img $icon -gravity center -composite $img
i3lock -u -i $img

The lock icon I use can be found on the website here and I used the 256px version myself.

I also included the option to blur the image, which does look cool as well, but that operation is noticeably slower than pixelating the image.



If you want to leave feedback, you can do so by either sending me a message via email, XMPP or via IRC.