Tuxtips - Linux HowTos

Linux HowTos live here

How to install polybar in Linux Mint 20

21 Jul 2020

If you found this page, you probably know what polybar is, so without further ado, let's concentrate on how to install it on Linux Mint 20.

Unfortunately, Linux Mint (or any other Ubuntu-based distro) does not have a binary of polybar in its repository, so we have to install it manually. First, we need to install the dependencies (in your terminal):

click code to copy
sudo apt install build-essential git cmake cmake-data pkg-config libcairo2-dev libxcb1-dev libxcb-util0-dev libxcb-randr0-dev libxcb-composite0-dev python3-xcbgen xcb-proto libxcb-image0-dev libxcb-ewmh-dev libxcb-icccm4-dev

Next, we should download the latest version of polybar from this address (the .tar file). Untar the archive using your archive manager (like file-roller) or open your terminal, go to the downloaded file's location and run:

click code to copy
tar xvf polybar-.tar

then run the following, line by line:

cd polybar/
mkdir build
cd build
cmake ..
make -j$(nproc)
sudo make install

That's it, your polybar is installed. Of course you should prepare your own instance of the bar, which goes beyond the scope of this article, but this can be easily found. Have fun!
Tested on: Linux Mint 20, July 2020.
Comments Add your comment

Enter the digit "two" (spam protection):

Dave10 months ago
When running make -j$(nproc), I get the following error:
make: *** No targets specified and no makefile found. Stop.

Do I need to specify something with the make -j command?


Enter the digit "two" (spam protection):

artux10 months ago
Are you sure you were in the "build" directory?

Enter the digit "two" (spam protection):