Workrave Statistics


I’m paranoid about RSI, so I use Workrave during the workday to remind me to take breaks away from the computer keyboard. I’ve configured it for a 30-second break every 7 minutes, and a 7-minute break every 53 minutes. Everyone has to choose what’s right for them; these values work for me.

One interesting thing about this program is that it keeps track of your keyboarding and mousing activity; you can see these statistics in some of the UI controls. I wrote a script to extract the historial statistics and graph the number of keystrokes over time, just to see how “productive” (as measured by keystrokes) I’ve been over the past two years:

Graph

workrave-dump extracts the statistics from the workrave historical statistics file. Run it like so:

% workrave-dump > workrave.out

gnuplot-workrave reads in the workrave.out file generated above (the filename is fixed) and generates a PNG graph like the one shown above. Run it like so:

% gnuplot-workrave

These scripts are distributed with the Workrave source as contrib/plot.

Other Unofficial Workrave Scripts and Links

  1. #1 by Christian Weiske on Tue Jan 27, 2009 - 1:29 am

    Your workrave script files are gone – could you restore them, please?

  2. #2 by Joel on Thu Oct 21, 2010 - 3:45 pm

    Christian – He mentions that these scripts are distributed with the Workrave source. Find them at his link above, or here: http://workrave.svn.sourceforge.net/viewvc/workrave/workrave/trunk/contrib/plot/

  3. #3 by H. Hodges on Fri Jun 17, 2011 - 12:39 pm

    When I type:

    % workrave-dump > workrave.out

    at the command line, I get an error:

    bash: fg: %: no such job

(will not be published)