Panels and layout
Panels
Section titled “Panels”Each [panels.<name>] table is one bar, shown on every monitor. <name> is any identifier (top, bottom, dock, …).
[panels.top]height = 32padding_horizontal = 8anchor = "top"layer = "top"
[panels.top.layout]left = ["workspaces"]center = ["clock"]right = ["sound_control", "battery", "weather", "system"]
[panels.bottom]height = 32padding_horizontal = 0anchor = "bottom"layer = "top"
[panels.bottom.layout]left = ["clipboard"]center = ["dock"]right = ["media_player", "notifications", "launcher"]| Key | Type | Default | Description |
|---|---|---|---|
height |
int | 32 |
Thickness in pixels (width, on a left or right bar). Also the space reserved at the screen edge |
padding_horizontal |
int | 8 |
Space at each end of the bar, in pixels |
anchor |
string | "top" |
"top", "bottom", "left" or "right" |
layer |
string | "top" |
Layer-shell layer: "background", "bottom", "top" or "overlay" |
- With no
[panels]table at all, the shell shows one top bar with the Layout defaults. - Changes from Settings apply at once on every monitor. Changing
height,anchororlayerrecreates the bar, so it blinks. - On a left or right bar, modules stack down the bar, short readings sit under their icons, and running text (the clock, track titles) is turned on its side.
left/center/rightbecome top/middle/bottom. - A bar’s margin, corner radius and how two bars join are theme keys: see Floating the bar and Where two bars meet.
Layout
Section titled “Layout”[panels.<name>.layout] lists the modules in each of the bar’s three sections, in order.
[panels.top.layout]left = ["workspaces"]center = ["clock"]right = ["sound_control", "battery", "weather", "system"]| Key | Type | Default |
|---|---|---|
left |
array of strings | ["workspaces"] |
center |
array of strings | ["media_player"] |
right |
array of strings | ["sound_control", "battery", "weather", "clock", "system"] |
The defaults apply only when the layout table is missing. If it is present, a missing key is an empty section.
Module names:
| Name | What it shows |
|---|---|
workspaces |
Workspace switcher with each workspace’s open apps (Miracle WM only) |
media_player |
MPRIS media controls |
sound_control |
Volume |
brightness |
Backlight level; scroll or click to change |
battery |
Battery status |
network |
Connection name and IP address |
quick_settings |
Wi-Fi, Bluetooth, power mode, audio devices, brightness and the power menu |
weather |
Current weather |
clock |
Date and time; click for the overview |
dock |
Pinned applications |
system_monitor |
CPU, memory and temperature |
system |
Power button; opens the power menu |
system_tray |
Tray icons (StatusNotifierItem) |
launcher |
Opens the application launcher |
screenshot |
Screenshot an area, a window or a screen |
screen_recorder |
Record an area, a window or a screen |
keyboard_layout |
Current input source; click to switch |
keybinds |
Opens the overview’s Shortcuts tab |
github |
GitHub notifications |
notifications |
Notification bell and panel |
scratchpad |
Shows or hides the scratchpad (Miracle WM only) |
todo |
Opens the todo board; shows what is due today |
stocks |
Stock quotes |
clipboard |
Clipboard history panel |
- A module in no panel is off. A module may appear in several panels.
- A module with nothing to show on this machine (no battery, no backlight, an empty tray) takes no space.
- Miracle-only modules are dropped on other compositors.
Right-clicking a panel
Section titled “Right-clicking a panel”- Right-click a module for a few quick toggles (the clock’s date and seconds, the weather unit, the bell’s silence, …), a link to its settings page, Panel settings…, Add module… (inserts after this one) and Remove from panel.
- Right-click blank bar for Add module to left/center/right… (whichever third you clicked; top/middle/bottom on a side bar), Panel settings… and Settings….
- Drag a module along its section to reorder it. To move it to another section, remove it and add it there. Dragging a dock icon reorders the dock instead.
All of these write the panel’s layout immediately.