chiark / gitweb /
bin/disorder-notify, dot/e16-bindings: Use `notify-send', not `gdbus'.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 19 Apr 2020 23:39:51 +0000 (00:39 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 19 Apr 2020 23:41:01 +0000 (00:41 +0100)
bin/disorder-notify
dot/e16-bindings

index e801d3d4290d3026d2f044621ada5e9fe14336bc..84c702fb9b0d90db4412d3bb5e9558aa0d1bd5fb 100755 (executable)
@@ -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;
 }
index 515d0317c31095c247c5bd020ce2447738836140..1b4c4ebe0901c5aad2fe53bb0663d12b36af5351 100644 (file)
@@ -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:&:&amp;:g; s:<:&lt;:g; s:>:&gt;: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:&:&amp;:g; s:<:&lt;:g; s:>:&gt;:g')"
 KeyDown   C5    slash exec media-keys scratch
 KeyDown   C5    space exec media-keys play/pause
 KeyDown   C5       F1 menus show file.menu