How To Install py3status on Ubuntu 22.04

In this tutorial we learn how to install py3status on Ubuntu 22.04. py3status is extensible i3status wrapper written in Python (Python3 package)

Introduction

In this tutorial we learn how to install py3status on Ubuntu 22.04.

What is py3status

py3status is:

Using py3status, you can take control of your i3bar easily by:

  • using one of the available shipped with py3status
  • grouping multiple modules and automatically or manually cycle their display
  • writing your own modules and have their output displayed on your bar
  • handling click events on your i3bar and play with them in no time
  • seeing your clock tick every second whatever your i3status interval

No extra configuration file needed, i3status’ one will be used directly

This is the Python3 package

There are three methods to install py3status on Ubuntu 22.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 py3status Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install py3status

Install py3status Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install py3status using apt by running the following command:

sudo apt -y install py3status

Install py3status 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 py3status using aptitude by running the following command:

sudo aptitude -y install py3status

How To Uninstall py3status on Ubuntu 22.04

To uninstall only the py3status package we can use the following command:

sudo apt-get remove py3status

Uninstall py3status And Its Dependencies

To uninstall py3status and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove py3status

Remove py3status Configurations and Data

To remove py3status configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge py3status

Remove py3status configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge py3status

References

Summary

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