diff --git a/pages/common/dunstctl.md b/pages/common/dunstctl.md new file mode 100644 index 0000000000..efc1150ae5 --- /dev/null +++ b/pages/common/dunstctl.md @@ -0,0 +1,28 @@ +# dunstctl + +> Control the `dunst` notification daemon. +> More information: . + +- 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]}}` diff --git a/pages/linux/dunstify.md b/pages/common/dunstify.md similarity index 80% rename from pages/linux/dunstify.md rename to pages/common/dunstify.md index 419e4992fc..965e33ee81 100644 --- a/pages/linux/dunstify.md +++ b/pages/common/dunstify.md @@ -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: . +> More information: . - 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}}` diff --git a/pages/linux/notify-send.md b/pages/common/notify-send.md similarity index 69% rename from pages/linux/notify-send.md rename to pages/common/notify-send.md index cf040600fe..dce8aaa570 100644 --- a/pages/linux/notify-send.md +++ b/pages/common/notify-send.md @@ -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: . - 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}}"` diff --git a/pages/linux/dunstctl.md b/pages/linux/dunstctl.md deleted file mode 100644 index 5eb32e0bf5..0000000000 --- a/pages/linux/dunstctl.md +++ /dev/null @@ -1,20 +0,0 @@ -# dunstctl - -> Control command for `dunst`. -> More information: . - -- Pause notifications: - -`dunstctl set-paused true` - -- Un-pause notifications: - -`dunstctl set-paused false` - -- Close all notifications: - -`dunstctl close-all` - -- Display help: - -`dunstctl --help`