Linux command
makoctl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List
makoctl list
Example
makoctl history
Reload
makoctl reload
Restore
makoctl restore
Dismiss all
makoctl dismiss -a
Dismiss
makoctl dismiss -n [id]
Toggle
makoctl mode -t do-not-disturb
Example
makoctl menu [dmenu] -p 'Select action'
说明
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.
参数
- 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.
FAQ
What is the makoctl command used for?
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.
How do I run a basic makoctl example?
Run `makoctl list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does list do in makoctl?
Retrieve a list of current notifications.