Recently I installed unclutter to hide the mouse pointer while I'm typing, since there is no option in Ubuntu 14.04 to hide mouse pointer. According to the man pages of unclutter ther is a option -keystroke that wait until a key has been pressed and hides the pointer. But my problem is that it doesn't work by running this command:
unclutter -keystroke &
Another hint in the man pages is that:
LIMITATIONS: The -keystroke option may not work (that is, the cursor will not disappear) with clients that request KeyRelease events. Games and Xt applications using KeyUp in their translation tables are most likely to suffer from this problem. The most feasible solution is to extend unclutter to use the XTest extension to get all keyboard and mouse events, though this of course requires XTest to be in the server too.
The -keystroke option does not distinguish modifier keys from keys which actu‐ ally generate characters. If desired this could be implemented in a simple way by using XLookupString to see if any characters are returned.
I must tell that I wouldn't like a timer for hiding mouse when it's idle. I would like it work like the windows.