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;
}
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