aktau / hhpc

A small utility to hide the mouse pointer with X.org (X11)
76 stars 15 forks source link

Hide pointer only on keyboard events #7

Open majutsushi opened 9 years ago

majutsushi commented 9 years ago

Thanks for this neat little program, it seems to work much better than unclutter. There's just one thing that would make it perfect for me, and that is hiding the pointer only once I start typing something on the keyboard instead of hiding it after a certain time. Time-based hiding can be a bit distracting if you're still using the mouse, and isn't really that necessary in that case, but a lot of the time when I want to write something I have to move the mouse pointer away halfway through. So if that could be added as an option that would be great.

aktau commented 9 years ago

I'd have to study if the X protocol has something for this. On first sight, XGrabKeyboard() might work. Are you interested in coding a prototype yourself or can you wait until me or someone else gets the time to experiment with this?

majutsushi commented 9 years ago

I don't really have any X programming experience myself, so I don't think that would be quicker. It's not like it's urgent, though, so feel free to just have a look once you find the time.