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.
| Field | Meaning |
|---|---|
monitor | Connector name ("DP-1", "HDMI-A-1") or "*" |
left, center, right | Module lists |
extends | Inherit from the entry with this monitor value |
show | false hides the bar on this monitor |
auto-hide | Overrides 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.
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.
bar:
layout:
- monitor: "*"
left: [dashboard]
center: [clock]
right: [battery, network, audio, systray]
- monitor: HDMI-1
extends: "*"
right: [audio, systray]
- monitor: HDMI-2
show: falseModule slots
A slot in left, center or right is one of:
| Form | Example |
|---|---|
| Module | clock |
| 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:
| Value | Does |
|---|---|
"" | 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:toggle | Turn all backlights off, or back to 100% when all are off |
lys-shell audio output-mute / input-mute | Toggle 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 else | Run as a shell command |