LinuxCommandLibrary

makoctl-invoke

triggers actions on notifications displayed by the mako notification daemon

TLDR

Invoke the default action on the most recent notification
$ makoctl invoke
copy
Invoke a specific action on a notification
$ makoctl invoke -n [notification_id] [action_name]
copy

SYNOPSIS

makoctl invoke [-n id] [action]

DESCRIPTION

makoctl invoke triggers actions on notifications displayed by the mako notification daemon. Notifications can define multiple actions (like "Reply", "Mark as Read", "Open"), and this command invokes them programmatically.
Without arguments, it invokes the default action on the most recent notification—typically equivalent to clicking the notification. With -n, a specific notification can be targeted by its ID.
This is useful for keyboard-driven workflows where mouse interaction with notifications is undesirable, or for scripting notification responses.

PARAMETERS

-n _id_

Specify the notification ID to act upon
_action_
The action name to invoke (uses default action if not specified)

CAVEATS

The notification must still be visible for its actions to be invokable. Notification IDs can be obtained from makoctl list. Actions depend on what the sending application defined; not all notifications have actions beyond dismissal.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard