The documentation I found didn't obviously mention that this text was
HTMLish. Oh, well.
sub notify ($$) {
my ($head, $body) = @_;
sub notify ($$) {
my ($head, $body) = @_;
+ $body =~ s:\&:&:g;
+ $body =~ s:\<:<:g;
+ $body =~ s:\>:>:g;
my $kid = fork;
defined $kid or return;
if (!$kid) {
my $kid = fork;
defined $kid or return;
if (!$kid) {
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 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)" "[]" "{}" 5000
+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 slash exec media-keys scratch
KeyDown C5 space exec media-keys play/pause
KeyDown C5 F1 menus show file.menu
KeyDown C5 slash exec media-keys scratch
KeyDown C5 space exec media-keys play/pause
KeyDown C5 F1 menus show file.menu