Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Bar

Bar is a single panel that is positioned at the top or the bottom of a screen.

Here are all the properties it can have:

PropertyTypeDefaultDescription
heightint32Height of the bar in pixels.
positionstringbottomPosition on screen: top, bottom or center.
monitorstringprimaryMonitor name (from xrandr) to display the bar on.
blocks_leftlist[]List of block names to align to the left.
blocks_centerlist[]List of block names to align to the center.
blocks_rightlist[]List of block names to align to the right.
marginint/object0Margin around the bar. Can be a single number or {top=0, bottom=0, left=0, right=0}.
backgroundcolortransparentBackground color of the entire bar.
popupboolfalseIf true, the bar is hidden until triggered by a block (see Block) or mouse at edge.
popup_at_edgeboolfalseIf true, showing the mouse at the screen edge triggers the popup.
show_if_matcheslist[]List of [expression, regex] pairs. Bar is visible only if all regexes match.

Example

[[bar]]
height=32
position="top"
monitor="eDP-1"
background="#1e1e2e"
margin={left=10, right=10, top=5, bottom=0}
blocks_left=["workspace"]
blocks_center=["window_title"]
blocks_right=["clock", "sys_info"]
popup=false
popup_at_edge=true
show_if_matches=[["${desktop:workspace.active}", "1"]]