Modules#
FrostBar comes with a variety of modules that you can make use of. Each module may be added any number of times to the bar with different configurations for each.
Here is a list of all currently avaialable modules (as of 11/13/25):
Common Configuration Options#
There are a set of configurations that are common across (almost) all modules.
Mouse Binds#
This allows running commands when you interact with a widget with your mouse. Options include:
After the mouse bind, you can specify the command to be run in 2 ways.
The first way will NOT run the command in a shell and requires separating arguments in different string literals, like so:
The second way will run in a shell, allowing access to pipes and subshells.
Container Style#
This allows customizing the style of the container surrounding a widget. Options include:
style {
text-color "#fff"
background "#000"
padding 5
border {
color "#fff"
width 0.5
radius 10.0
}
}
Colors may be specified as described by the Colors Section.
text-color#
Affects the color of text inside the widget.
background#
Affects the background color of the widget.
padding#
Inner margin for items inside the container
border#
Affects the border around the widget.
The border radius may also be specified per-corner like so:
Module Specific Configuration Options#
Battery#
icon-size#
Affects the size of the battery icon.
charging-color#
Affects the color of the battery while plugged in. Use text-color in the
style section to affect the color while not plugged in.
Audio Visualizer#
spacing#
Affects the spacing between bars in the audio visualizer, from 0.0 to 1.0.
dynamic-color#
Whether or not to source colors from the currently-playing song's album art. Defaults to true if not included.
color#
if dynamic-color is enabled, affects the color of the bars when no album art
is available. Otherwise, affects the color of the bars at all times.
Label#
text#
Text to be displayed by the label.
size#
Size of the label text.
tooltip#
Text that appears in a tooltip when hovering over the label.
Mpris#
The mpris module does not support the generic style or mouse binds settings.
If an mpris compatible player is detected, its album art will be displayed. If
no album art is availabl, the placeholder will be shown instead.
placeholder-style has the same options as the Container
Style section.
If multiple players are active at the same time, one album art will be shown for each. Mouse binds can be specified to interact with individual players. Possible actions for mouse binds include:
"play"
"pause"
// if currently playing, pause. If currently paused, play
"play-pause"
"next"
"previous"
"stop"
// in milliseconds. Can be negative
"seek" 100
// decrease volume by 5%
"volume" -0.05
"set-volume" 0
Here is an example config:
mpris {
mouse-left "play-pause"
scroll-right "seek" 5000
scroll-left "seek" -5000
mouse-right "next"
mouse-middle "stop"
placeholder ""
placeholder-style {
border {
width 1.0
color "#fff"
radius 0.0
}
}
}
Niri#
Displays information about windows and workspaces.
niri {
spacing 10
workspace-offset -1
workspace-active-style {
text-color "#fff"
border {
color "#fff"
width 3.0
radius 0.0
}
}
workspace-hovered-style {
background "#aaa4"
}
}
spacing#
Spacing between workspaces.
workspace-offset#
Offset to apply to the index of each workspace. I use this with niri's
empty-workspace-above-first option to start labeling workspaces at 0 instead of 1.
styles#
There are 4 different styles for different parts of the niri widget:
window-focused-style, window-style, workspace-active-style,
workspace-hovered-style, and workspace-style. All niri styles have the same
options as the Container Style section.
Niri styles are merged according to their priority. FrostBar will use specific styling components from higher styles first, and fallback to lower ones if they are unset, eventually falling back to the default style.
Niri styles have the following priority:
workspace-hovered-styleworkspace-active-styleworkspace-stylewindow-focused-stylewindow-style
Time#
format#
Format string for displaying the time. See the chrono documentation for information on format specifiers.
tooltip-format#
Format string for displaying the tooltip. See the chrono documentation for information on format specifiers.