<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 15/11/16 16:08, Jeremy Jongepier wrote:<br>
<blockquote
cite="mid:027938ff-3dd0-f666-5d3d-544fccfe7998@autostatic.com"
type="cite">
<pre wrap="">On 11/15/2016 03:19 PM, Yassin Philip wrote:
</pre>
<blockquote type="cite">
<pre wrap="">But found no way to detect the transport status ; Is there a way to know
it?
</pre>
</blockquote>
<pre wrap="">
I use this very hacky script that I bind to my Play media key (I use
openbox for this):
---
#!/bin/bash
function jack_transport_status() {
jack_showtime | head -n1 & &> /dev/null
}
if jack_transport_status | grep -q -i stopped
then
echo play | jack_transport &> /dev/null
killall jack_showtime
else
echo stop | jack_transport &> /dev/null
killall jack_showtime
fi
---
</pre>
</blockquote>
I can't get it to work, somehow it chokes at the showtime cmd, that
refuses to give back the prompt..? I mean, just exec
jack_transport_status in the shell should return, right?<br>
<blockquote
cite="mid:027938ff-3dd0-f666-5d3d-544fccfe7998@autostatic.com"
type="cite">
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Linux-audio-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Linux-audio-user@lists.linuxaudio.org">Linux-audio-user@lists.linuxaudio.org</a>
<a class="moz-txt-link-freetext" href="http://lists.linuxaudio.org/listinfo/linux-audio-user">http://lists.linuxaudio.org/listinfo/linux-audio-user</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Yassin Philip - New album out NOW
<a class="moz-txt-link-freetext" href="http://yassinphilip.bitbucket.org">http://yassinphilip.bitbucket.org</a></pre>
</body>
</html>