dot/inputrc: Show completions on the first `tab' keypress.
[profile] / bin / disorder-notify
index ac329ba..e801d3d 100755 (executable)
@@ -3,6 +3,9 @@
 sub notify ($$) {
   my ($head, $body) = @_;
 
+  $body =~ s:\&:&:g;
+  $body =~ s:\<:&lt;:g;
+  $body =~ s:\>:&gt;:g;
   my $kid = fork;
   defined $kid or return;
   if (!$kid) {
@@ -100,6 +103,8 @@ for (;;) {
        if (defined $startinfo) { $startinfo .= "; " . $msg; }
        else { $startinfo = $msg; }
       }
+    } elsif ($what eq "scratched") {
+      notify "DisOrder state", "Scratched playing track";
     } elsif ($what eq "playing") {
       now_playing $f[2];
     }