Bug 667 - ability to run commands on break start/end
Status:
RESOLVED FIXED
Component:
Core
Version:
1.8.4
Hardware:
All All
Importance:
P3 normal
Target Milestone:
---
Assignee:
Rob Caelers
URL:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=373289
Depends on:
Blocks:
Reported:
Aug 26 2007 12:28:18 UTC
by:
Francois Marier
Modified:
Aug 26 2007 13:41:49 UTC
IdWhoWhenSizeType
100Workrave DBUS example
Rob CaelersAug 26 2007 13:41:49 UTC1591text/x-python
WhoWhenWhatRemovedAdded
Rob CaelersAug 26 2007 13:41:11 UTCstatusNEWRESOLVED
resolutionFIXED
Description
Francois Marier  Aug 26 2007 12:28:18 UTC
martin f krafft <ma**@de**.org> suggested the following via the Debian bug tracker:

"I would really like to be able to run a command each time the
(micro-)break starts, and when it ends."
Comment 1
Rob Caelers  Aug 26 2007 13:41:11 UTC
You can already accomplish this with 1.8.4 using DBUS and some python glue code. I will attach some example python code. I'm interested in receiving python scripts I can put in Workrave's contrib directory (e.g. scripts to mute a music player during breaks or to tell pidgin a user is away).

Note that DBUS support is experimental in 1.8.4 and configure disables it by default. I don't know if debian has enabled dbus support.

Workrave 1.9.0 will expose much more control using DBUS. 
Comment 2
Rob Caelers  Aug 26 2007 13:41:49 UTC
Created attachment 100
Workrave DBUS example