Clockwork

Submitted by inducer on Fri, 27/05/2005 - 05:15

Clockwork is a simple shelll script to track the time you’ve spent at work vs. the time you ought to spend there. You type

clockwork start

when you come in,

clockwork stop

when you leave, and

clockwork indebt

once for every day you’re supposed to be at work. clockwork notes it all down in $HOME/.clockwork. In case you could not log a “start” right when it was supposed to happen, you can say

clockwork startat 9:45

or even

clockwork startat "yesterday 9:00"

(mind the quotes!). stopat, of course, works just like that. During the day, you can say

clockwork howlong

to find out how long you still need to stay. And at the end of the month, say

clockwork report

to have something to hand to your boss.

The current arch tree is called clockwork--mainline--0.

Download

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

What is the purpose of [tag]? Can it be used to group work by [tag] as a category? It would be great if the script can record based on project.

For now, tag is only appended at the end of the time record being created, clockwork does not do anything with it. But given clockwork’s construction of “long pipes of filters”, adding this functionality is not particularly difficult. If you’d like to, give it a shot, and let me know if you need help.

Andreas

Post new comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>.
  • You can use Markdown syntax to format and style the text. Also see and Markdown Extra for tables, footnotes, and more.

More information about formatting options