Re: penalty on microbreak skip
Rob Caelers <[email protected]> Tue, 09 Dec 2014 19:03:52 +0100
| Newsgroups | gmane.comp.misc.workrave.user |
|---|---|
| Message-ID | <[email protected]> |
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