Re: penalty on microbreak skip

Ruben Barkow <[email protected]> Wed, 10 Dec 2014 00:16:33 +0100
Newsgroups gmane.comp.misc.workrave.user
Message-ID <[email protected]>
Thanks for the hint,

I posted it on the Bug http://issues.workrave.org/show_bug.cgi?id=1099

But unfortunately my skill is not that good, that I could "use
GetTimerElapsed/GetTimerIdle to figure this out" ;)

I committed a pull-request with my try:
https://github.com/rcaelers/workrave/pull/46

Could you adapt the python script, so it starts pragram_A on a start of
a microbreak and starts program_B only if the microbreak successfully
ends without postpone/Skip?

At the moment I need to use my self programmed typebreak bash script
with zenity:
https://github.com/rubo77/mouse-speed/blob/master/usr/bin/typebreak

But thats far from perfect.


That would be so cool to use your workrave everyday now.


Greetings,
Ruben

On 09.12.2014 19:03, Rob Caelers wrote:
> Hi,
> 
>> There should be an option to define a program in preferences, that is
>> automatically called, when you ignore one of the break-warnings. And an
>> option that starts a program each time, you wait successfully a full
>> break-period.
> 
> On Linux, you can already do this with some python scripting and dbus.
> I never fully completed dbus support on Windows...
> 
> An example python script is available in our git repository:
> https://github.com/rcaelers/workrave/blob/branch_v1_10/backend/src/dbus-example.py
> 
> For each break you get a state change event. A change from 'prelude' to
> 'none' indicates you ignored the break warning window. A change from
> 'break' to 'none' indicates the break window was closed, either because
> the you completed the break, or you pressed postpone/skip (you can use
> GetTimerElapsed/GetTimerIdle to figure this out).
> 
> Kind regards,
>   Rob
> 
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
> _______________________________________________
> Workrave-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/workrave-user
> 

-- 
_________________________________________________

eastcoast laboratories

Mühlenbrook 3
24106 kiel

USt.-IdNr: DE235640206

http://www.eclabs.de
mailto:[email protected]
Telefon: 0431-536 87 23
Fax: 0431 - 6081031

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk

_______________________________________________
Workrave-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/workrave-user
smime.p7s (application/pkcs7-signature, 2.3 KB) - not displayed