Mako

From Gentoo Wiki
Jump to:navigation Jump to:search
This article is a stub. Please help out by expanding it - how to get started.

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

+icons Enable support for icons
elogind Enable session tracking via sys-auth/elogind
systemd Enable use of systemd-specific libraries and features like socket activation or session tracking

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:

FILE ~/.config/mako/config
[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.:

FILE wofi_run.sh
#!/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:

FILE ~/.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.