LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

makoctl

Control the mako notification daemon for Wayland

TLDR

List current notifications
$ makoctl list
copy
Show notification history
$ makoctl history
copy
Reload configuration
$ makoctl reload
copy
Restore last expired notification
$ makoctl restore
copy
Dismiss all notifications
$ makoctl dismiss -a
copy
Dismiss a notification by ID
$ makoctl dismiss -n [id]
copy
Toggle do-not-disturb mode
$ makoctl mode -t do-not-disturb
copy
Use an external menu program to select a notification action
$ makoctl menu [dmenu] -p 'Select action'
copy

SYNOPSIS

makoctl command [options]

DESCRIPTION

makoctl sends IPC commands to the running mako(1) notification daemon via D-Bus. It can list, dismiss, and manage notifications, as well as reload configuration and switch modes.

PARAMETERS

list

Retrieve a list of current notifications.
history
Retrieve a list of dismissed notifications.
reload
Reload the configuration file.
restore
Restore the most recently expired notification from the history buffer.
dismiss [-a|--all] [-g|--group] [-h|--no-history] [-n id]
Dismiss notifications. By default dismisses the first notification. Use -a to dismiss all, -g to dismiss the first notification group, -n to dismiss by id, and -h to dismiss without adding to history.
invoke [-n id] [action]
Invoke an action on a notification. If no action is specified, invokes the default action. Use -n to specify a notification by id.
menu [-n id] program [argument...]
Use an external program (e.g., dmenu, wofi) to select an action on a notification. Actions are passed to the program on newlines.
mode [-s mode...] [-a mode...] [-r mode...] [-t mode...]
Manage notification modes. Without options, lists current modes. Use -s to set modes, -a to add, -r to remove, -t to toggle.
-h, --help
Show help message and quit.

SEE ALSO

Copied to clipboard
Kai