How can I statistically indicate my frequency of click and count

I am trying to reassign the keyboard to type better.

But I need to know the frequency of each character with a key, it will be great if you enable tab shift ctrl. I need all the keystrokes to display not only the frequency of letters in English words.

I am using ibus-pinyin as an input method. and archlinux, awesome wm, without kde and gnome. Any programs could help me?

BTW: what's wrong with the backyard. http://colemak.com/FAQ#What.27s_wrong_with_the_Dvorak_layout.3F

but colemak is also not suitable for me, because I want more synmbols.

but I have to save some numbers, 1-5, to select a Chinese word from ibus, you know that the frequency of pinyin letters is not the same as English letters.

+5
source share
1 answer
$ xwininfo

Now click on the terminal window with the mouse to get the window identifier from the line:

xwininfo: Window id: 0x1e0000f "green"

Ask the utility to xevtrack the events of Xyour window, recording its output.

$ xev -id 0x1e0000f > log &

Enter the text and get statistics from the journal, filtering keywords:

$ grep keysym log | sed -e "s /).*//" -e "s /.* //" | sort | uniq -c
      1 b
      2 c
      2 Control_L
      2 d
      1 e
      3 f
      3 g
      2 j
      1 k
      2 l
      1 n
      1 q
      1 r
      8 return
      2 s
      1 t
      1 u
      1 v
      1 w
      1 y
      1 z
+4
source

All Articles