Re: [LAU] Toggle Jack Transport CLI

From: Yassin Philip <philcm@email-addr-hidden>
Date: Tue Nov 15 2016 - 23:31:02 EET

On 15/11/16 16:08, Jeremy Jongepier wrote:
> On 11/15/2016 03:19 PM, Yassin Philip wrote:
>> But found no way to detect the transport status ; Is there a way to know
>> it?
> 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
> ---
>
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?
>
>
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user@email-addr-hidden
> http://lists.linuxaudio.org/listinfo/linux-audio-user

-- 
Yassin Philip - New album out NOW
http://yassinphilip.bitbucket.org

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Wed Nov 16 00:15:01 2016

This archive was generated by hypermail 2.1.8 : Wed Nov 16 2016 - 00:15:01 EET