How To Install i3lock-fancy on Ubuntu 18.04

In this tutorial we learn how to install i3lock-fancy on Ubuntu 18.04. i3lock-fancy is i3lock custom wrapper script

Introduction

In this tutorial we learn how to install i3lock-fancy on Ubuntu 18.04.

What is i3lock-fancy

i3lock-fancy is:

i3lock bash script that takes a screenshot of the desktop, blurs the background and adds a lock icon and text.

The current package pulls code from a branch called dualmonitors.

There are three methods to install i3lock-fancy on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install i3lock-fancy Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install i3lock-fancy using apt-get by running the following command:

sudo apt-get -y install i3lock-fancy

Install i3lock-fancy Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install i3lock-fancy using apt by running the following command:

sudo apt -y install i3lock-fancy

Install i3lock-fancy Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install i3lock-fancy using aptitude by running the following command:

sudo aptitude -y install i3lock-fancy

How To Uninstall i3lock-fancy on Ubuntu 18.04

To uninstall only the i3lock-fancy package we can use the following command:

sudo apt-get remove i3lock-fancy

Uninstall i3lock-fancy And Its Dependencies

To uninstall i3lock-fancy and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove i3lock-fancy

Remove i3lock-fancy Configurations and Data

To remove i3lock-fancy configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge i3lock-fancy

Remove i3lock-fancy configuration, data, and all of its dependencies

We can use the following command to remove i3lock-fancy configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge i3lock-fancy

References

Summary

In this tutorial we learn how to install i3lock-fancy package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.