Installing i3lock-color on Ubuntu

i3lock is fancy lock screen for Linux. There is i3lock dep available on Ubuntu but its not what I was looking for; I was more interested in i3lock-color. Lets see how we can install the same on ubuntu.

PS: I'm using Ubuntu 16.04

Get source code for i3lock-color

$ git clone https://github.com/PandorasFox/i3lock-color.git 
$ cd i3lock-color

Install required packages to build i3lock 

$ apt install libev-dev
$ apt install libxcb-composite0 libxcb-composite0-dev libxcb-xinerama0 libxcb-randr0 
$ apt install libxcb-xinerama0-dev 
$ apt install libxcb-xkb-dev 
$ apt install libxcb-image0-dev 
$ apt install libxcb-util-dev
$ apt install libxkbcommon-x11-dev
$ apt install libjpeg-turbo8-dev 
$ apt install libpam0g-dev

Build 

$ autoreconf -i && ./configure && make

Execute

$ ./lock.sh

Assign Shortcut

In order to assign shortcut, install compizconfig

$ sudo apt-get install compizconfig-settings-manager compiz-plugins-extra

and then go to commands option and assign i3lock script (e.g. lock.sh) to some key (I have assign that script to Ctrl + Super + L)



Comments

Anonymous said…
Thank you so much for this!

I'd suggest you edit in a one-liner for all the dependencies, like this:

sudo apt install libev-dev libxcb-composite0 libxcb-composite0-dev libxcb-xinerama0 libxcb-randr0 libxcb-xinerama0-dev libxcb-xkb-dev libxcb-image0-dev libxcb-util-dev libxkbcommon-x11-dev libjpeg-turbo8-dev libpam0g-dev

Either way, solved my headache

Popular Posts