mako(5)
π NAME π
mako(5) β File Formats Manual β the configuration file, bestie. This is the page that tells you how to make your mako config pop off. β¨
π DESCRIPTION π
Okay so the config file lives at ~/.config/mako/config or at $XDG_CONFIG_HOME/mako/config. Option lines are literally just:
key=value
Empty lines and lines that begin with # are ignored. No cap, thatβs the whole vibe check. π«Ά
β¨ GLOBAL CONFIGURATION OPTIONS β¨
These are the big-picture settings that run the whole show. π
max-history=nβ Set the maximum number of expired notifications to keep in the history buffer to n. If the buffer is full, newly expired notifications replace the oldest ones. If0, history is disabled.
Default: 5
sort=+/-time | +/-priorityβ Sorts incoming notifications by time and/or priority in ascending (+) or descending (-) order.
Default: -time
include=config pathβ Includes a config at the specified path. The path must be absolute or otherwise start with~/. iykyk π
Default: none
π¦ BINDING OPTIONS π¦
Bindings are the βwhen this event happens, do this actionβ girlies. One event, one action, main character energy. π
π«Ά Supported options π«Ά
on-button-left=actionβ Performs the action when the left pointer button is pressed.
Default: invoke-default-action
on-button-middle=actionβ Performs the action when the middle pointer button is pressed.
Default: none
on-button-right=actionβ Performs the action when the right pointer button is pressed.
Default: dismiss
on-touch=actionβ Performs the action when tapped via a touch device.
Default: dismiss
on-notify=actionβ Performs the action when the notification is opened.
Default: none
π Supported actions π
noneβ Do nothing. Sometimes thatβs the vibe. π¦dismiss [--no-history]β Dismiss the current notification. If--no-historyis passed, the notification wonβt be added to history. Periodt.dismiss-allβ Dismiss all notifications. πdismiss-groupβ Dismiss notifications in the current group.invoke-action <action>β Invoke the named action on the notification.
An xdg-activation token will be sent to the client, allowing the client to request focus from the compositor. The compositor must support the xdg_activation_v1 protocol and allow the focus request for the following example to work correctly:
[app-name="some-app-id" actionable]
on-button-left=invoke-action mail-reply-sender
invoke-default-actionβ Invoke the default action on the notification. β¨exec <command>β Execute a shell command.
The command will be executed in a POSIX shell. The shell variable id will be set to the notification ID. For example, the following option will display an interactive action menu on middle click:
on-button-middle=exec makoctl menu -n "$id" -- wmenu -p 'Select action: '
The following option will play a sound when a new notification is opened:
on-notify=exec mpv /usr/share/sounds/freedesktop/stereo/message.oga
π STYLE OPTIONS π
This is the visual glow-up section. The way that a config can change the whole notification aesthetic? Obsessed. πβ¨
font=fontβ Set font to font, as a Pango font description. For more information on Pango font descriptions, see:https://docs.gtk.org/Pango/type_func.FontDescription.from_string.html#description
Default: monospace 10
background-color=colorβ Set background color to color. SeeCOLORSfor more information.
Default: #285577FF
text-color=colorβ Set text color to color. SeeCOLORSfor more information.
Default: #FFFFFFFF
width=pxβ Set width of notification popups.
Default: 300
height=pxβ Set maximum height of notification popups. Notifications whose text takes up less space are shrunk to fit.
Default: 100
outer-margin=directionalβ Setouter-marginof each edge to the size specified by directional. SeeDIRECTIONAL VALUESfor more information. This margin applies to the outside of the whole notification list.
Default: 0
margin=directionalβ Setmarginof each edge to the size specified by directional. SeeDIRECTIONAL VALUESfor more information. This margin applies to each individual notification. Note that it applies in addition toouter-margin, meaning first and last notifications will use the sum of both margins. Math but make it cute. π
Default: 10
padding=directionalβ Set padding on each side to the size specified by directional. SeeDIRECTIONAL VALUESfor more information.
Default: 5
border-size=pxβ Set popup border size to px pixels.
Default: 2
border-color=colorβ Set popup border color to color. SeeCOLORSfor more information.
Default: #4C7899FF
border-radius=directionalβ Set popup corner radius on each side to the size specified by directional. SeeDIRECTIONAL VALUESfor more information. Rounded corners are literally iconic. π
Default: 0
progress-color=[over|source] colorβ Set popup progress indicator color to color. SeeCOLORfor more information. To draw the progress indicator on top of the background color, use theoverattribute. To replace the background color, use thesourceattribute (this can be useful when the notification is semi-transparent).
Progress can be indicated in a notification by setting a hint, "value" to an integer between 0 and 100 inclusive.
Default: over #5588AAFF
icons=0|1β Show icons in notifications. πΌοΈ
Default: 1
max-icon-size=pxβ Set maximum icon size to px pixels.
Default: 64
icon-path=path[:path...]β Paths to search for icons when a notification specifies a name instead of a full path. Colon-delimited. This approximates the search algorithm used by the XDG Icon Theme Specification, but does not support any of the theme metadata. Therefore, if you want to search parent themes, youβll need to add them to the path manually.
The path should be the root of the icon theme, the categories and resolutions will be searched for the most appropriate match.
/usr/share/icons/hicolor and /usr/share/pixmaps are always searched. Always. Searching. Periodt.
Default: ""
icon-location=positionβ Position of the icon relative to the displayed text. Valid options areleft,right,topandbottom.
Default: left
icon-border-radius=pxβ Sets icon corner radius to px pixels.
Default: 0
markup=0|1β If1, enable Pango markup. If0, disable Pango markup. If enabled, Pango markup will be interpreted in your format specifier and in the body of notifications.
Default: 1
actions=0|1β Applications may request an action to be associated with activating a notification. Disabling this will cause mako to ignore these requests.
Default: 1
history=0|1β If set, mako will save notifications that have reached their timeout into the history buffer instead of immediately deleting them.max-historydetermines the size of the history buffer.
Default: 1
format=formatβ Set notification format string to format. SeeFORMAT SPECIFIERSfor more information. To change this for grouped notifications, set it within a grouped criteria. Format girlies, rise. π
Default: <b>%s</b>\n%b Default when grouped: (%g) <b>%s</b>\n%b
text-alignment=left|center|rightβ Set notification text alignment.
Default: left
default-timeout=timeoutβ Set the default timeout to timeout in milliseconds. To disable the timeout, set it to zero.
Default: 0
ignore-timeout=0|1β If set, mako will ignore the expire timeout sent by notifications and use the one provided bydefault-timeoutinstead.
Default: 0
group-by=field[,field,...]β A comma-separated list of criteria fields that will be compared to other visible notifications to determine if this one should form a group with them. All listed criteria must be exactly equal for two notifications to group. Group chat rules, but for notifications. π
Default: none
max-visible=nβ Set maximum number of visible notifications to n. Older notifications will be hidden. If-1, all notifications are visible.
Default: 5
output=nameβ Show notifications on the specified output. If empty, notifications will appear on the focused output.
Requires the compositor to support the Wayland protocol xdg-output-unstable-v1 version 2.
Default: ""
layer=layerβ Arrange mako at the specified layer, relative to normal windows. Supported values arebackground,bottom,top, andoverlay. Usingoverlaywill cause notifications to be displayed above fullscreen windows, though this may also occur attopdepending on your compositor.
Default: top
anchor=positionβ Show notifications at the specified position on the output. Supported values aretop-right,top-center,top-left,bottom-right,bottom-center,bottom-left,center-right,center-leftandcenter. Pick your placement era. β
Default: top-right
β¨ CRITERIA β¨
okay bestie so besides all the options at the top of the file, your config can also have zero or more sections π and each one can hold any combo of the BINDING OPTIONS and STYLE OPTIONS. These sections? They're called criteria and you define them with that INI-ish square bracket syntax. The brackets can hold any number of fields, like this:
[field=value field2=value2 ...]
So when a notification comes in, it gets compared against the fields defined in each criteria. If all the fields match β boom, the style options inside get applied to that notification π. Fields you didn't include in the criteria just don't get considered during the match, no big deal. And a notification can match any number of criteria. This matching happens in the order the criteria appear in your config file, which means if multiple criteria match a notification, the last occurrence of any given style option "wins" π.
These are the fields available in criteria:
app-name(string)app-icon(string)summary(string): exact match on the summary of the notification. Ngl this field conflicts withsummary~.summary~(string): a POSIX extended regular expression match on the summary of the notification. Also conflicts withsummary.body(string): exact match on the body of the notification. Conflicts withbody~.body~(string): a POSIX extended regular expression match on the body of the notification. Conflicts withbody.urgency(one of"low","normal","critical")category(string)desktop-entry(string)actionable(boolean)expiring(boolean)mode(string): only applies the style options in this section if the provided mode is currently enabled. Wanna know more about modes? Scroll to the MODES section π«Ά
There's also a second set of fields for a second pass β these match based on where your previous style options decided to place each notification:
grouped(boolean): whether the notification is grouped with any others.group-index(int): the notification's index within its group, or-1if it's not grouped.hidden(boolean): special field that defines the style for the placeholder shown when the number of notifications or groups exceedsmax-visible.output(string): which output the notification was sorted onto. Peep theoutputstyle option for possible values.anchor(string): which position on the output the notification was assigned to. Check theanchorstyle option for possible values.
Heads up π only two passes get performed on each notification, so second-pass criteria are not allowed to reposition the notification.
If a field's value has special characters in it, you can escape them with a backslash, or just quote it:
[app-name="Google Chrome"]
[app-name=Google\ Chrome]
Quotes inside quotes can be escaped too, and a literal backslash is written as \\. No spaces allowed around the equal sign, periodt. Oh and escaping equal signs inside values? Unnecessary, don't bother β¨.
Also booleans can be written any of true/false, 0/1, or as bare words:
[actionable=true] [actionable=1] [actionable]
[actionable=false] [actionable=0] [!actionable]
There are three criteria that are always chilling at the front of the list:
- An empty criteria that matches all notifications and holds the defaults for all style options, overwritten with whatever you configured in the global section.
[grouped], which sets the default format for grouped notifications and sets them invisible.[group-index=0], which makes the first member of each group visible again.
You can override these options by simply defining the criteria yourself and overriding them, easy π .
And there are some rules about what you're allowed to configure depending on what a given criteria is matching. Criteria matching grouped or group-index are not allowed to change the anchor, output, or group-by, because that would invalidate the grouping π. Also grouping only happens once, not recursively, specifically to avoid the potential for infinite loops. We stay safe out here.
β¨ CRITERIA-ONLY STYLE OPTIONS β¨
Some style options just aren't useful in the global context, so they don't have an associated command-line option. It's giving exclusive π
invisible=0|1β whether this notification should be invisible even if it's above themax-visiblecutoff. This is used primarily for hiding members of groups. If you want to make more than the first group member visible, turn this option off inside agroup-indexcriteria.
Default: 0
π COLORS π
Colors can be specified as #RRGGBB or #RRGGBBAA β literally that simple, no cap π
π¦ DIRECTIONAL VALUES π¦
Some options set values that affect all four edges of a notification. You can specify these in several different ways depending on how much control over each edge you actually want, iykyk:
- A single value will apply to all four edges.
- Two values will set vertical and horizontal edges separately.
- Three will set top, horizontal, and bottom edges separately.
- Four will set top, right, bottom, and left edges separately.
When you're specifying multiple values, comma-separate them, bestie. For example, this would set the top margin to 10, left and right to 20, and bottom to five:
margin = 10,20,5
β FORMAT SPECIFIERS β
Format specification works similarly to printf(3), but with a different set of specifiers π
%%β Literal "%"\\β Literal ""\nβ New Line
For notifications
%aβ Application name%sβ Notification summary%bβ Notification body%gβ Number of notifications in the current group%iβ Notification id
For the hidden notifications placeholder
%hβ Number of hidden notifications%tβ Total number of notifications
π MODES π
mako supports applying style options conditionally via modes, and honestly? iconic. A configuration section with a mode criteria will only be applied if the current mode matches. You can use makoctl(1) to change the current mode π
The initial list of modes contains a single mode called "default". This is deprecated β in a future version the initial list of modes will be empty. Consider yourself warned π«Ά
So for example, to hide all notifications when the mode do-not-disturb is enabled:
[mode=do-not-disturb]
invisible=1
Then makoctl mode -a do-not-disturb will hide all notifications, and makoctl mode -r do-not-disturb will show them again. Slay β¨
πΈ AUTHORS πΈ
Maintained by Simon Ser <contact@emersion.fr>, who is assisted by other open-source contributors. For more information about mako development, see https://github.com/emersion/mako. Genuinely so grateful to the maintainers fr fr π«Ά
π SEE ALSO π
okay that's the whole page, bestie, you're officially a mako expert π This was mako(5), dated 2026-03-26 β go forth and style your notifications, you absolute main character ππβ¨
π¦ where this page comes from
- arch rolling: mako 1.11.0-1 Β· MIT
- ubuntu stonking: mako-notifier 1.11.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms