PRIMARY CATEGORY → SETUP
polybar
→ Highly Customizable Status Bars
Each bar has its own modules and It is executed as a daemon
INFO
In above command’s output, each process corresponds to a specific bar with its name and its configuration file where the bar and its module/s are declared
-c FILE | --config=FILE
→ Path to the configuration file
A module can execute any action such as a command, scripts…
Each bar with its configuration file as an argument is launched by the below script
polybar
is executed by bspwm from the bspwmrc script through the polybar
’s launcher script → ~/.config/polybar/launch.sh
INFO
Note that
checkProcess
andlaunchProcess
are shell functions declared in the~/.config/bspwm/src/bspwmrc.sh
source fileThe
$_pbl
parameter is also declared in that file being the Polybar Launcher PathAbove implementation would be something similar to the usual approach through
pgrep --exact process_name || binary|script_path &
Configuration File → Any file which a .ini
extension
Launcher File → ~/.config/polybar/launch.sh
More information here
Installation
CAUTION
That’s it
IMPORTANT
Installation can be done either through the OS package manager or via the
git clone
commandNote that the default OS repositories listed in
/etc/apt/sources.list
file and in/etc/apt/sources.list.d
directory may have older versions unlike thepolybar
’s official Github repositoryAs It is always is desirable to have the latest versions of any package or binary installed, I’d recommend installing them via their Github Repositories
Although, in this case the package’s version installed from the
apt
Package Manager differs only slightly from the github one
As a base for the configuration file’s structure, clone the following Github Repository
Then, recursively copy the polybar’s content into ~/.config/polybar
→
INFO
Once the above is done, insert the following line in the bspwmrc file related to the Polybar’s Launch →
As already stated, these functions check polybar’s status and launch it
Lastly, copy the polybar’s fonts (i.e. the .ttf Files) into the system TrueType Fonts directory and reset the _ system’s fonts cache_ →