bin/disorder-notify: Report when a track is scratched.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 21 Jul 2018 14:21:39 +0000 (15:21 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 21 Jul 2018 14:59:19 +0000 (15:59 +0100)
bin/disorder-notify

index ac329ba..e530cc3 100755 (executable)
@@ -100,6 +100,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];
     }