Re: play sound when (lengthy) compilation finishes?
On Fri, May 4, 2012 at 1:55 PM, Vincent van Ravesteijn wrote: > Op 3-5-2012 16:05, Liviu Andronic schreef: >> I would like to have a sound notification when the >> compilation finishes. Can LyX do that? Would others find such a >> feature useful so as to file an enhancement request? >> > > I think I can easily make a time counter, which you can press and which > shows the currently running process(es) and which has some options like > "When finished: [play sound/notify...etc]". > That would be very nice, I think. Should I open a dedicated request, or [1] suffices? [1] http://www.lyx.org/trac/ticket/8146 Regards Liviu
Re: play sound when (lengthy) compilation finishes?
On Thu, May 3, 2012 at 6:14 PM, Yihui Xie wrote: > Or add a last code chunk in Sweave: > > <>= > alarm() # equivalent to cat('\a') > @ > This is a nice idea. Unfortunately alarm() makes no noise on my system---I guess it's some small configuration issue---, but this reminds me of system(). So one can do something similar: <>= system("play /tmp/03Miserere.ogg") @ It makes the LyX status bar go crazy, but otherwise seems to work just fine. I'm wondering: does LyX have a LFUN_SYSTEM_COMMAND or similar that would allow to execute arbitrary system commands? Regards Liviu
Re: play sound when (lengthy) compilation finishes?
Op 3-5-2012 16:05, Liviu Andronic schreef: I would like to have a sound notification when the compilation finishes. Can LyX do that? Would others find such a feature useful so as to file an enhancement request? I think I can easily make a time counter, which you can press and which shows the currently running process(es) and which has some options like "When finished: [play sound/notify...etc]". Vincent
Re: play sound when (lengthy) compilation finishes?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/05/12 18:14, Yihui Xie wrote: > Or add a last code chunk in Sweave: > > <>= alarm() # equivalent to cat('\a') @ > > or use the twitteR pacakge to send yourself a twitter message when it is > done... > > Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: > http://yihui.name > Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA > I think these are all very nice ideas, but the question is: how difficult would it be to include a notifier in LyX to notify the user when the update is finished. In my opinion, this would be a useful addition and shouldn't be to difficult to implement. In the meantime, you could use a scrip instead the default viewer which a) plays a sound (or use a music ploayer to play your favourite tune?) b) launches the viewer you want Cheers, Rainer > > On Thu, May 3, 2012 at 9:46 AM, Manolo Martínez > wrote: >> you can always use LyX from the command line, something like >> >> lyx yourfile.lyx && echo $'\a' >> >> No? >> >> On 05/03/12 at 04:31pm, Liviu Andronic wrote: >>> On Thu, May 3, 2012 at 4:24 PM, Richard Heck wrote: Popping up some kind of notice, besides what you get in the status bar, seems reasonable. >>> Unless you're using Update, the 'notice pop-up' is the PDF viewer itself >>> being opened >>> and/or brought up and focused. So I guess that we have now is just fine >>> when the user stays >>> glued to the computer. >>> >>> In my case I'm launching some heavy computations in R, and would thus like >>> to go do >>> something else until the document compiles. Unless there is some audio >>> notification, I can >>> only rely on the noise made by the laptop fans, not a terribly reliable >>> indicator. >>> >>> Liviu >> >> -- - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+jl9IACgkQoYgNqgF2egp+JwCfYPp4AduLUyv2k3/PMFXQl+cj N7UAniUQJEfCz87oNrhNj0abvPl5Evi9 =tIgE -END PGP SIGNATURE-
Re: play sound when (lengthy) compilation finishes?
Or add a last code chunk in Sweave: <>= alarm() # equivalent to cat('\a') @ or use the twitteR pacakge to send yourself a twitter message when it is done... Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Thu, May 3, 2012 at 9:46 AM, Manolo Martínez wrote: > you can always use LyX from the command line, something like > > lyx yourfile.lyx && echo $'\a' > > No? > > On 05/03/12 at 04:31pm, Liviu Andronic wrote: >> On Thu, May 3, 2012 at 4:24 PM, Richard Heck wrote: >> > Popping up some kind of notice, besides what you get in the status >> > bar, seems reasonable. >> > >> Unless you're using Update, the 'notice pop-up' is the PDF viewer >> itself being opened and/or brought up and focused. So I guess that we >> have now is just fine when the user stays glued to the computer. >> >> In my case I'm launching some heavy computations in R, and would thus >> like to go do something else until the document compiles. Unless there >> is some audio notification, I can only rely on the noise made by the >> laptop fans, not a terribly reliable indicator. >> >> Liviu > > --
Re: play sound when (lengthy) compilation finishes?
you can always use LyX from the command line, something like lyx yourfile.lyx && echo $'\a' No? On 05/03/12 at 04:31pm, Liviu Andronic wrote: > On Thu, May 3, 2012 at 4:24 PM, Richard Heck wrote: > > Popping up some kind of notice, besides what you get in the status > > bar, seems reasonable. > > > Unless you're using Update, the 'notice pop-up' is the PDF viewer > itself being opened and/or brought up and focused. So I guess that we > have now is just fine when the user stays glued to the computer. > > In my case I'm launching some heavy computations in R, and would thus > like to go do something else until the document compiles. Unless there > is some audio notification, I can only rely on the noise made by the > laptop fans, not a terribly reliable indicator. > > Liviu --
Re: play sound when (lengthy) compilation finishes?
On Thu, May 3, 2012 at 4:24 PM, Richard Heck wrote: > Popping up some kind of notice, besides what you get in the status > bar, seems reasonable. > Unless you're using Update, the 'notice pop-up' is the PDF viewer itself being opened and/or brought up and focused. So I guess that we have now is just fine when the user stays glued to the computer. In my case I'm launching some heavy computations in R, and would thus like to go do something else until the document compiles. Unless there is some audio notification, I can only rely on the noise made by the laptop fans, not a terribly reliable indicator. Liviu
Re: play sound when (lengthy) compilation finishes?
On 05/03/2012 10:05 AM, Liviu Andronic wrote: Dear all I have a couple of Sweave documents that take a long time to compile (~15 min) and I would like to have a sound notification when the compilation finishes. Can LyX do that? Would others find such a feature useful so as to file an enhancement request? Popping up some kind of notice, besides what you get in the status bar, seems reasonable. Richard