mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 04:35:25 +02:00
notify-send, dunst{ctl,ify}: update page, move to common (#16540)
This commit is contained in:
parent
b609918f62
commit
cb439c0825
4 changed files with 35 additions and 23 deletions
28
pages/common/dunstctl.md
Normal file
28
pages/common/dunstctl.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
# dunstctl
|
||||
|
||||
> Control the `dunst` notification daemon.
|
||||
> More information: <https://dunst-project.org/documentation/dunstctl>.
|
||||
|
||||
- Pause/Unpause/Toggle desktop notifications:
|
||||
|
||||
`dunstctl set-paused {{true|false|toggle}}`
|
||||
|
||||
- Close all notifications:
|
||||
|
||||
`dunstctl close-all`
|
||||
|
||||
- Delete all notifications from history:
|
||||
|
||||
`dunstctl history-clear`
|
||||
|
||||
- Display the latest notification from history:
|
||||
|
||||
`dunstctl history-pop`
|
||||
|
||||
- Reload the configuration file:
|
||||
|
||||
`dunstctl reload`
|
||||
|
||||
- Display help:
|
||||
|
||||
`dunstctl {{[-h|--help]}}`
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
> A notification tool that is an extension of `notify-send`, but has more features based around `dunst`.
|
||||
> Accepts all options of `notify-send`.
|
||||
> More information: <https://github.com/dunst-project/dunst/wiki/Guides>.
|
||||
> More information: <https://dunst-project.org/documentation/dunstify>.
|
||||
|
||||
- Show a notification with a given title and message:
|
||||
|
||||
`dunstify "{{Title}}" "{{Message}}"`
|
||||
|
||||
- Show a notification with specified urgency:
|
||||
- Show a notification with the specified urgency:
|
||||
|
||||
`dunstify "{{Title}}" "{{Message}}" {{[-u|--urgency]}} {{low|normal|critical}}`
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# notify-send
|
||||
|
||||
> Uses the current desktop environment's notification system to create a notification.
|
||||
> Use the current desktop environment's notification system to create a notification.
|
||||
> More information: <https://manned.org/notify-send>.
|
||||
|
||||
- Show a notification with the title "Test" and the content "This is a test":
|
||||
|
@ -15,6 +15,10 @@
|
|||
|
||||
`notify-send {{[-t|--expire-time]}} 5000 "{{Test}}" "{{This is a test}}"`
|
||||
|
||||
- Show a notification with the specified urgency level (default: normal):
|
||||
|
||||
`notify-send {{[-u|--urgency]}} {{low|normal|critical}} "{{Test}}" "{{This is a test}}"`
|
||||
|
||||
- Show a notification with an app's icon and name:
|
||||
|
||||
`notify-send "{{Test}}" {{[-i|--icon]}} {{google-chrome}} {{[-a|--app-name]}} "{{Google Chrome}}"`
|
|
@ -1,20 +0,0 @@
|
|||
# dunstctl
|
||||
|
||||
> Control command for `dunst`.
|
||||
> More information: <https://manned.org/dunstctl>.
|
||||
|
||||
- Pause notifications:
|
||||
|
||||
`dunstctl set-paused true`
|
||||
|
||||
- Un-pause notifications:
|
||||
|
||||
`dunstctl set-paused false`
|
||||
|
||||
- Close all notifications:
|
||||
|
||||
`dunstctl close-all`
|
||||
|
||||
- Display help:
|
||||
|
||||
`dunstctl --help`
|
Loading…
Add table
Reference in a new issue