A textual clock on i3lock

I decided to give i3 a try and it’s a nice ride. One of the things I missed is my textual clock that I wrote 5 years ago. I was using it as a lockscreen background.

I looked at the code of i3lock and decided it was simple to patch it for my needs. I spent few hours coding and learning about cairo and I’m happy with the result.

This is how it looks:

Screenshot of i3lock with klok on

It is launched using the following:

i3lock -k -i ~/.bg.png

The font used is Pragmata Pro in bold.

My patches are available on github.