Mako
Mako is a lightweight replacement for the notification daemons provided by most desktop environments. It implements the FreeDesktop Notifications Specification.
Installation
USE flags
USE flags for gui-apps/mako A lightweight notification daemon for Wayland. Works on Sway
Emerge
root #
emerge --ask gui-apps/mako
Configuration
Mako is highly configurable; refer to the mako(5) man page for details about the configuration file.
For example, to configure Mako to use gui-apps/wofi to present a list of options when the notification requires a user response, and the user right-clicks on the notification:
[actionable=true]
on-button-right=exec makoctl menu -n "${id}" wofi_run.sh dmenu
where ${id}
is the shell variable id, which will contain the ID of the notification, and wofi_run.sh is a simple shell script, e.g.:
#!/bin/sh
wofi --width=400 --height=260 --hide-scroll --show="${1}"
Usage
Mako can be started from your GUI's startup file, e.g. ~/.config/sway/config:
exec mako
Mako can be controlled from the command line via makoctl(1). For example, to reload the configuration file:
user $
makoctl reload
See also
- dunst - a lightweight replacement for the notification daemons provided by most desktop environments, usable under both X and Wayland.