From 5aa1863762ff8994f90310b50915a09a36261fe8 Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Tue, 14 Apr 2020 11:34:18 +0200 Subject: [PATCH] Rename status commands to running --- dunstctl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dunstctl b/dunstctl index d549e71..347c77c 100755 --- a/dunstctl +++ b/dunstctl @@ -21,8 +21,8 @@ show_help() { close-all Close the all notifications context Open context menu history-pop Pop one notification from history - status Check if - status-set [true|false] Set the status + running Check if dunst is running or paused + set-running [true|false] Set the pause status debug Print debugging information help Show this help EOH @@ -64,10 +64,10 @@ case "${1:-}" in "history-pop") method_call "${DBUS_IFAC_DUNST}.NotificationShow" >/dev/null ;; - "status") - property_get running | ( read -r _ _ status; printf "%s\n" "${status}"; ) + "running") + property_get running | ( read -r _ _ paused; printf "%s\n" "${paused}"; ) ;; - "status-set") + "set-running") [ "${2:-}" ] \ || die "No status parameter specified. Please give either 'true' or 'false' as running parameter." [ "${2}" = "true" ] || [ "${2}" = "false" ] \