Linux – Mouse Button and Keypress Counter

keyboardlinuxmonitoringmousex-windows

I would like to have some kind of statistic of my daily mouse/keyboard usage to help me make my keyboard layout a little bit more efficient.

There is already a question about how to do this on Windows, but I would like to know I anyone is aware if this is possible under linux. Another thing I already found is key-mon, a little program for screencasts that displays your mouse and keyboard presses on the screen, which would help me achieve what I want with a little bit of python coding by myself. But still, if there was an solution already, that would be easier of course.

Best Answer

I just wrote a program that does this myself, so here's a shameless plug:

https://github.com/forsberg/kbdcounter