Warning: THE VOID WIKI IS DEPRECATED. It is no longer being maintained, contains outdated and incorrect information, and will eventually be shut down. Please refer to the Void Handbook, https://docs.voidlinux.org/, for the official documentation. If you can't find the information you're seeking, please raise an issue at https://github.com/void-linux/void-docs/issues

Polybar -

From Void Linux Wiki
Revision as of 02:06, 11 June 2020 by Duncaen (talk | contribs) (Duncaen moved page Polybar to Polybar - without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

polybar is a fast easy-to-use bar that is highly configurable for any Desktop Enviorment or Window Manager. It allows for mouse interaction based on each module and uses a format of Left, Right or Center to place your desired modules.


# xbps-install -S polybar


Either create a config in ~/.config/polybar or copy the example config from /usr/share/doc/polybar/configto ~/.config/polybar/config.

Running Polybar

Polybar can be started via terminal with the following command:

polybar <mybar>

Basic Config

An extremely bare and basic config my look like the following:

modules-right = date

type = internal/date
date = %Y-%m-%d%

Running with a Window Mananger

Create a executable script file to start the bar in your polybar's config directory named polybar.sh, for example:


pkill -x polybar

while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done

polybar mybar &


Add the following lines to ~/.config/bpswm/bspwmrc



Add the following line to ~/.config/i3/config

exec_always --no-startup-id ~/.config/polybar/polybar.sh


Modules can be found on Polybar's Github Wiki with documentation on different options that can be used for each module.