Create Beautiful Customizable Status Bars with Polybar for Linux

28/12/2020

If the default Ubuntu status bar isn’t appealing to you, and you are looking for an app that could give you freedom to customize it to your taste, then checkout Polybar, a fast and easy-to-use tool for creating status bars on Linux machines.

The aim is to help users build beautiful and highly customizable status bars for their desktop environment, without the need of being an expert in shell scripting language. I have provided below some screenshot samples so you have a feel of how the end result looks like.

image source

The main purpose of this tool is to help linux users create awesome status bars. It has built-in functionality to display information about the most commoly used services. Some of the features included so far are listed below:

  • Systray icons
  • Window title
  • Playback controls and status display for MPD using libmpdclient
  • ALSA volume controls
  • Workspace and desktop panel for bspwm and i3
  • Workspace module for EWMH compliant window managers
  • Keyboard layout and indicator status
  • CPU and memory load indicator
  • Battery display
  • Network connection details
  • Backlight level
  • Date and time label
  • Time-based shell script execution
  • Command output tailing
  • User-defined menu tree
  • Inter-process messaging
  • And more…

How to install Polybar on Ubuntu 16.10, Ubuntu 16.04

Note: to install on ubuntu 16.04, just replace the section in the command below “yakkety-getdeb” with “xenial-getdeb”

wget -q -O - http://archive.getdeb.net/getdeb-archive.key | sudo apt-key add -    sudo sh -c 'echo "deb http://archive.getdeb.net/ubuntu yakkety-getdeb apps" >> /etc/apt/sources.list.d/getdeb.list'    sudo apt-get update    sudo apt-get install polybar

Activate the app using the example config file

After completing the installation, we will text run the application using the sample configuration file

  • Run the following commands to activate the sample config file
sudo mkdir -p ~/.config/polybar    sudo cp /usr/share/doc/polybar/config ~/.config/polybar/
  • To activate it, simply run the command
polybar example

NOTE: If the bar output looks odd, it’s probably because you’re missing the fonts defined in the config. Update the config or install the missing fonts.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Best Linux Distros for Beginners

Do you feel that you’ve had enough hearing about Linux and never trying it yourself? You’re not alone! Many people...
28/12/2020

Best GIF Maker Apps for Linux

GIF animations are a popular way to share fun animations, jokes and short clips of just about anything and it is hard to...
29/12/2020

[CentOS8] Hướng dẫn cài đặt MySQL-8.x trên CentOS-8

MySQL là một hệ quản trị cơ sở dữ liệu mã nguồn mở rất phổ biến trên các hệ thống linux,...
30/12/2020