1 //<script type="text/javascript">
3 * log desktop actions..
5 * a potential add-on to gitlive....
6 * - basically tracks what applications are being worked on when, allowing you to
7 * use it to generate time tracking (eg. invoices...) later..
10 * xdotool getmouselocation
12 * xwit -property WM_NAME -print
13 * 0x3a13d6c: x=1 y=25 w=1109 h=747 d=32 'root@wideboy: /home/alan'
14 * root@wideboy:/home/alan# xwit -property WM_CLASS -print
15 * 0x3a13d6c: x=1 y=25 w=1109 h=747 d=32 'gnome-terminal'
16 * root@wideboy:/home/alan#
19 * Not sure how we handle last key press...
21 * -- log to a remote url.
24 * DATE / TIME / Application / Title
25 * if cursor same as before.. - SEND 'IDLE'... (twice, then stop sending..)
27 * For commits... (we send out every 1 minute as well, it's upto the other end to determine if that means updating
28 * or creating a new record..
29 * yyyy-mm-dd /12:00 / GIT / XXXXX