From f7edee9e9cd37c4f7cec0c4538faddcf035de37f Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sat, 7 Jan 2023 19:00:17 +0100 Subject: bin: add connmenu and clear-notification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bin/clear-notification | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/clear-notification (limited to 'bin/clear-notification') diff --git a/bin/clear-notification b/bin/clear-notification new file mode 100755 index 0000000..e58ddb2 --- /dev/null +++ b/bin/clear-notification @@ -0,0 +1,11 @@ +#!/bin/sh +set -eu +if [ -z "$1" ]; then + printf "error: missing notification id\n" >&2 + exit 1 +fi +exec gdbus call --session \ + --dest org.freedesktop.Notifications \ + --object-path /org/freedesktop/Notifications \ + --method org.freedesktop.Notifications.CloseNotification \ + "$1" >/dev/null -- cgit 1.4.1