Linux command
makoctl-mode 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List
makoctl mode
Add
makoctl mode -a [do-not-disturb]
Remove
makoctl mode -r [do-not-disturb]
Toggle
makoctl mode -t [do-not-disturb]
Set specific modes
makoctl mode -s [mode1 mode2 ...]
说明
makoctl mode manages notification modes in the mako notification daemon. Modes allow changing notification behavior based on context—for example, enabling "do-not-disturb" to silence notifications during presentations or focus time. Modes are defined in mako's configuration file with specific criteria and actions. When a mode is active, notifications matching that mode's criteria receive different treatment (hidden, grouped, styled differently, etc.). Multiple modes can be active simultaneously, and their effects are combined according to mako's configuration rules.
参数
- -a _mode_
- Add a mode to the active set
- -r _mode_
- Remove a mode from the active set
- -t _mode_
- Toggle a mode (add if inactive, remove if active)
- -s _modes_
- Set the exact list of active modes, replacing all current modes
FAQ
What is the makoctl-mode command used for?
makoctl mode manages notification modes in the mako notification daemon. Modes allow changing notification behavior based on context—for example, enabling "do-not-disturb" to silence notifications during presentations or focus time. Modes are defined in mako's configuration file with specific criteria and actions. When a mode is active, notifications matching that mode's criteria receive different treatment (hidden, grouped, styled differently, etc.). Multiple modes can be active simultaneously, and their effects are combined according to mako's configuration rules.
How do I run a basic makoctl-mode example?
Run `makoctl mode` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a _mode_ do in makoctl-mode?
Add a mode to the active set