Re: A simple battery level alert mcron job for your Guix, v2

2019-07-31 Thread Ricardo Wurmus
Maxim Cournoyer writes: > The following mcron job accomplish this. I've implemented it in Guile > Scheme this time around and was puzzled that I had to use program-file > to make it work, otherwise srfi-26's cut would error on undefined symbol > '<>'. > > The problem was that passing the code

Re: A simple battery level alert mcron job for your Guix, v2

2019-07-31 Thread Maxim Cournoyer
Hello again, The previously posted battery level alert job had a very annoying limitation: it would keep beeping until the level of the battery would have recovered above the defined limit. We can do much better by stopping the noise as soon as the AC cable has been plugged in. The following mcr