WindowLog.js
[gitlive] / WindowLog.js
1 //<script type="text/javascript">
2 /**
3  * log desktop actions..
4  * 
5  * mouse:
6  * xdotool getmouselocation
7  *
8  * xwit -property WM_NAME -print 
9  * 0x3a13d6c: x=1 y=25 w=1109 h=747 d=32 'root@wideboy: /home/alan'
10  * root@wideboy:/home/alan# xwit -property WM_CLASS -print 
11  * 0x3a13d6c: x=1 y=25 w=1109 h=747 d=32 'gnome-terminal'
12  * root@wideboy:/home/alan# 
13  * 
14  * -- log to a remote url.
15  * 
16  * LOG:
17  * DATE / TIME / Application / Title
18  * if cursor same as before.. - SEND 'IDLE'... (twice, then stop sending..)
19  * 
20  * For commits... (we send out every 1 minute as well, it's upto the other end to determine if that means updating
21  * or creating a new record..
22  * yyyy-mm-dd /12:00 / GIT / XXXXX
23  * 
24  */
25
26
27