Linux command
dunst 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start dunst
dunst
Start with a custom config file
dunst -config [path/to/dunstrc]
Print notifications
dunst -print
Test dunst
notify-send "Title" "Message body"
Check configuration syntax
dunst -print
Start with verbose output
dunst -verbosity debug
Print version information
dunst -v
说明
dunst is a lightweight notification daemon for X11 and Wayland that displays desktop notifications following the freedesktop.org notification specification. It's highly customizable through its configuration file and popular in tiling window manager setups. Notifications appear as styled popups that can be configured for position, size, colors, fonts, icons, and behavior. Dunst supports notification actions, urgency levels (low, normal, critical), and can execute scripts when notifications arrive based on rules. Configuration is done through ~/.config/dunst/dunstrc. The config file defines global settings, urgency-specific styling, and rules for matching notifications by app name, summary, body, or other criteria. Rules can modify notification appearance or trigger actions. Key features include notification history (accessed via dunstctl history-pop), Do Not Disturb mode, keyboard navigation for interacting with notifications, and support for notification actions. Critical notifications can be configured to persist until acknowledged. Dunst integrates with dunstctl for runtime control and dunstify for sending notifications with advanced features like notification replacement and progress bars.
参数
- -config _file_
- Use the specified configuration file.
- Print notifications to stdout instead of displaying them.
- -verbosity _level_
- Set verbosity level: crit, warn, mesg, info, debug.
- -startup_notification
- Display a notification on startup.
- -v, -version
- Print version information.
- -h, -help
- Display help information.
FAQ
What is the dunst command used for?
dunst is a lightweight notification daemon for X11 and Wayland that displays desktop notifications following the freedesktop.org notification specification. It's highly customizable through its configuration file and popular in tiling window manager setups. Notifications appear as styled popups that can be configured for position, size, colors, fonts, icons, and behavior. Dunst supports notification actions, urgency levels (low, normal, critical), and can execute scripts when notifications arrive based on rules. Configuration is done through ~/.config/dunst/dunstrc. The config file defines global settings, urgency-specific styling, and rules for matching notifications by app name, summary, body, or other criteria. Rules can modify notification appearance or trigger actions. Key features include notification history (accessed via dunstctl history-pop), Do Not Disturb mode, keyboard navigation for interacting with notifications, and support for notification actions. Critical notifications can be configured to persist until acknowledged. Dunst integrates with dunstctl for runtime control and dunstify for sending notifications with advanced features like notification replacement and progress bars.
How do I run a basic dunst example?
Run `dunst` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -config _file_ do in dunst?
Use the specified configuration file.