16.04 - How to have a daily statistic of keys pressed? - Ask Ubuntu


i want analyse how press key in daily typings , hence set tracking of keyboard. (it might case challenged key press backspace , disprove hard facts.)

i not interested in complete strings , shouldn't stored anywhere on disk. looking not complete keylogger , black hat use cases should @ best avoided.

my quick search brought up:

xinput --test-xi2 

yet raw:

event type 13 (rawkeypress)     device: 3 (12)     detail: 37     valuators:  event type 13 (rawkeypress)     device: 3 (12)     detail: 54     valuators: 

and have implement statistics myself.

is there way can have statistics of keys pressed?

further search had me stumbeling upon krefreq, yet haven't looked far it.

you use openbox define key bindings easily, bind key action:

 <keybind key="0x41">       <action name="execute">         <execute>echo "a\n" >> keylog.txt</execute>       </action>  </keybind> 

you can define mappings in rc.xml file , and run openbox --reconfigure apply new bindings. each time if pressed key respect 1 of mapping entries writes respective character keylog.txt file. @ end of day if interested in how many times stroke each key, count on entries in keylog.txt:

 sort keylog.txt | uniq --count 

i know fits not requirements, because saves output @ hard drive , have calculate quantities self. looks pretty simple , don't know kind of further statistics looking for. in opinion should reconsider meaning if said:

i not interested in complete strings , shouldn't stored anywhere on disk.

what expectations how program should handle key strokes, if shouldn't store input somewhere in file?

a further question comes draft above. there file in lubuntu 16.04 openbox or standard input (stdin) redirects to. mean on interface/port listen current keystroke?


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User