Skip to content

Bars and layouts ​

bar.layout is a list of entries, each describing the bar on one monitor. Spacing, colors and button styling are in bar; the full entry type is BarLayout.

FieldMeaning
monitorConnector name ("DP-1", "HDMI-A-1") or "*"
left, center, rightModule lists
extendsInherit from the entry with this monitor value
showfalse hides the bar on this monitor
auto-hideOverrides bar.auto-hide on this monitor

An output uses the entry whose monitor equals its connector name, else the "*" entry. With neither, it gets no bar.

yaml
bar:
  layout:
    - monitor: "*"
      left: [dashboard]
      center: [clock]
      right: [battery, network, audio, systray]

Inheritance ​

An entry with extends takes every section it leaves empty (and auto-hide, if unset) from its parent. Chains are followed; a cycle or a missing parent stops the walk.

yaml
bar:
  layout:
    - monitor: "*"
      left: [dashboard]
      center: [clock]
      right: [battery, network, audio, systray]
    - monitor: HDMI-1
      extends: "*"
      right: [audio, systray]
    - monitor: HDMI-2
      show: false

Module slots ​

A slot in left, center or right is one of:

FormExample
Moduleclock
Module with a CSS class{module: clock, class: primary}
Group{name: status, modules: [battery, network]}

A group draws its modules in one container whose CSS ID is its name (#status). Its modules may carry classes. A class goes on that one module instance, so two instances of a module can be styled apart.

Status modules — brightness, battery, audio, bluetooth, network and notifications — that a section puts next to each other form one status group by default, as if the section listed them in a group of its own: one container, one background, the module spacing between them. A status module a section puts on its own, beside a module of another kind or in a group it names, keeps its own spacing, so right: [battery, clock, network] leaves battery and network apart. The status group the bar forms is #status; a second one in the same section takes the next free name (#status-2), and a group the layout names keeps its name. bar.group-spacing sets the gap between a section's items, bar.module-spacing the gap between a group's modules.

Custom modules are referenced as custom-<id>; see Custom modules.

Click actions ​

Module fields such as left-click, right-click, middle-click, scroll-up and scroll-down take a click action string:

ValueDoes
""Nothing
dropdown:<name>Toggle a dropdown under this module: audio, background-apps, battery, bitwarden, bluetooth, brightness, calendar, dashboard, mail, media, network, notification, recorder, treeman, weather
brightness:<N>Change every backlight by N percent (+5, -5), never below modules.brightness.min-brightness
brightness:toggleTurn all backlights off, or back to 100% when all are off
lys-shell audio output-mute / input-muteToggle the speaker's or the microphone's mute, in the shell itself
lys-shell audio output-volume <L> / input-volume <L>Set the speaker's or the microphone's volume: 50 absolute, +5 / -10 relative, in the shell itself
anything elseRun as a shell command

Released under the MIT License.