Bug 1099 - option to start a program when break begins and ends
Status:
NEW
Component:
GUI
Version:
unspecified
Hardware:
All All
Importance:
P5 enhancement
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
Jan 23 2013 21:17:31 UTC
by:
Ruben
Modified:
Dec 15 2014 09:06:51 UTC
CC List:
d3vid seaward
ne**@gm**.com
See Also:
https://launchpad.net/bugs/1089862
WhoWhenWhatRemovedAdded
RubenJan 23 2013 21:18:19 UTCseveritynormalenhancement
see_alsohttps://launchpad.net/bugs/1089862
d3vid seawardJan 31 2014 12:01:30 UTCccd3vid seaward
ne**@gm**.comDec 14 2014 18:02:51 UTCccne**@gm**.com
Description
Ruben  Jan 23 2013 21:17:31 UTC
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.

This way, you could achieve many goals, for example:
- start a program, that slows down your mouse a bit each time you ignore a break until you take your break, then it goes up to full mouse-speed again.
- send a mail to your boss, that you are working really hard.
- increase the amount of money you earn in your time-recording program each time a bit
- start a controller program, that lifts your desktop a bit
- change the color of your screen

see
https://bugs.launchpad.net/ubuntu/+source/workrave/+bug/1089862

with the program RSIBreak it already works:
http://packages.ubuntu.com/search?keywords=rsibreak

you can set a program, that starts, when a microbreak starts, and another, when a micro-break ends.

if you disable the "skip" button, then the only solution for you to continue working is to postpone the break, which does not trigger the event, that only fires, if the microbreak ends.

use this mouse-speed script to adapt the speed with RSIBreak:
https://github.com/rubo77/mouse-speed

it would be great if this would be implemented in Workrave too
Comment 1
Ruben  Dec 9 2014 22:38:27 UTC
On Linux, you can already do this with some python scripting and dbus.
(dbus support is not fully completed on Windows)

An example python script is available in the 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
 you completed the break, or you pressed postpone/skip (you can use
GetTimerElapsed/GetTimerIdle to figure this out).
Comment 2
ne**@gm**.com  Dec 14 2014 18:02:51 UTC
<quote>
This way, you could achieve many goals, for example:
- start a program, that slows down your mouse a bit each time you ignore a break until you take your break, then it goes up to full mouse-speed again.
- send a mail to your boss, that you are working really hard.
- increase the amount of money you earn in your time-recording program each time a bit
- start a controller program, that lifts your desktop a bit
- change the color of your screen
</quote>

I definitely like your way of thinking :).
Comment 3
Ruben  Dec 15 2014 09:06:51 UTC
I started adapting the script, but there is still something missing, where i don't know how to continue:

https://github.com/rcaelers/workrave/pull/46

can you help there with python?