LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

dunstctl

runtime control interface for dunst

TLDR

Show notification history
$ dunstctl history-pop
copy
Close current notification
$ dunstctl close
copy
Close all notifications
$ dunstctl close-all
copy
Toggle do-not-disturb
$ dunstctl set-paused toggle
copy
Check if paused
$ dunstctl is-paused
copy
Show notification count
$ dunstctl count
copy
Export history as JSON
$ dunstctl history-export
copy
Clear notification history
$ dunstctl history-clear
copy
Reload configuration
$ dunstctl reload
copy

SYNOPSIS

dunstctl command [args]

DESCRIPTION

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 overridepauselevel for selective display during do-not-disturb mode.

SUBCOMMANDS

close

Close current notification.
close-all
Close all notifications.
history-pop
Show notification from history.
set-paused state
Set pause state (true, false, toggle).
is-paused
Check pause state.
count [displayed|history|waiting]
Show notification count (all categories if no argument given).
history-export
Export notification history as JSON.
history-clear
Delete all notifications from history.
reload
Reload configuration.
rule NAME enable|disable|toggle
Enable, disable, or toggle a named rule.
action [N]
Perform default action on notification at position N (0 = top).
get-pause-level
Get current pause level (0 = not paused, 100 = fully paused).
set-pause-level LEVEL
Set pause level (0-100), combines with notification overridepauselevel.
debug
Print debug information.
context
Open context menu with actions/URLs for open notifications.

INSTALL

sudo apt install dunst
copy
sudo dnf install dunst
copy
sudo pacman -S dunst
copy
sudo apk add dunst
copy
sudo zypper install dunst
copy
nix profile install nixpkgs#dunst
copy

SEE ALSO

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid