From 53b293cd38a34fc86336f2f937e222d8fe76b669 Mon Sep 17 00:00:00 2001 Message-Id: <53b293cd38a34fc86336f2f937e222d8fe76b669.1717649046.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 20 Apr 2020 00:39:51 +0100 Subject: [PATCH] bin/disorder-notify, dot/e16-bindings: Use `notify-send', not `gdbus'. Organization: Straylight/Edgeware From: Mark Wooding --- bin/disorder-notify | 9 +++------ dot/e16-bindings | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/bin/disorder-notify b/bin/disorder-notify index e801d3d..84c702f 100755 --- a/bin/disorder-notify +++ b/bin/disorder-notify @@ -10,12 +10,9 @@ sub notify ($$) { defined $kid or return; if (!$kid) { open STDOUT, ">", "/dev/null"; - exec "gdbus", "call", "-e", - "-d", "org.freedesktop.Notifications", - "-o", "/org/freedesktop/Notifications", - "-m", "org.freedesktop.Notifications.Notify", "--", - "DisOrder", "0", "audio-volume-high", - $head, $body, "[]", "{}", "5000"; + exec "notify-send", + "-c", "DisOrder", "-i", "audio-volume-high", "-t", "5000", + $head, $body; } waitpid $kid, 0; } diff --git a/dot/e16-bindings b/dot/e16-bindings index 515d031..1b4c4eb 100644 --- a/dot/e16-bindings +++ b/dot/e16-bindings @@ -62,7 +62,7 @@ KeyDown C5 apostrophe exec xinitcmd disobedience KeyDown C5 plus exec media-keys volume-up KeyDown C5 minus exec media-keys volume-down KeyDown C5 period exec media-keys enable/disable -KeyDown C5 comma exec gdbus call -e -d org.freedesktop.Notifications -o /org/freedesktop/Notifications -m org.freedesktop.Notifications.Notify -- DisOrder 0 audio-volume-high "Now playing" "$(media-keys now-playing | sed 's:&:&:g; s:<:<:g; s:>:>:g')" "[]" "{}" 5000 +KeyDown C5 comma exec notify-send -c DisOrder -i audio-volume-high -t 5000 "DisOrder: now playing" "$(media-keys now-playing | sed 's:&:&:g; s:<:<:g; s:>:>:g')" KeyDown C5 slash exec media-keys scratch KeyDown C5 space exec media-keys play/pause KeyDown C5 F1 menus show file.menu -- [mdw]