Linux command
dunstctl 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show notification history
dunstctl history-pop
Close current notification
dunstctl close
Close all notifications
dunstctl close-all
Toggle do-not-disturb
dunstctl set-paused toggle
Check if paused
dunstctl is-paused
Show notification count
dunstctl count
Export history
dunstctl history-export
Clear notification history
dunstctl history-clear
Reload configuration
dunstctl reload
说明
dunstctl is the command-line control interface for the dunst notification daemon. It provides runtime management capabilities without requiring configuration file changes or daemon restarts. The tool allows closing notifications programmatically, managing notification history, toggling pause state (do-not-disturb mode), and reloading dunst's configuration. It's commonly used in window manager keybindings and scripts for notification management. Key features include history navigation (pop the most recent notification from history), pause state management for temporarily suppressing notifications, and live configuration reloading. The close commands can target specific notifications or clear all visible ones at once. Pause levels (0-100) can be combined with per-notification override_pause_level for selective display during do-not-disturb mode.
FAQ
What is the dunstctl command used for?
dunstctl is the command-line control interface for the dunst notification daemon. It provides runtime management capabilities without requiring configuration file changes or daemon restarts. The tool allows closing notifications programmatically, managing notification history, toggling pause state (do-not-disturb mode), and reloading dunst's configuration. It's commonly used in window manager keybindings and scripts for notification management. Key features include history navigation (pop the most recent notification from history), pause state management for temporarily suppressing notifications, and live configuration reloading. The close commands can target specific notifications or clear all visible ones at once. Pause levels (0-100) can be combined with per-notification override_pause_level for selective display during do-not-disturb mode.
How do I run a basic dunstctl example?
Run `dunstctl history-pop` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more dunstctl examples?
This page includes 9 examples for dunstctl, plus related commands for nearby Linux tasks.