Reputation: 17422
I am try to remap my keyboard to type better.
But I need to know the frequency of each key include symbol, It will be great if include tab shift ctrl. I need all the keypress acounting not only frequency of letters appears in english words.
I am using ibus-pinyin as my input method. and archlinux, awesome wm, without kde and gnome installed. any programes could help me?
BTW: what's wrong with dvorak. http://colemak.com/FAQ#What.27s_wrong_with_the_Dvorak_layout.3F
but colemak is not fit for me too, cause I want more synmbols.
but I have to keep some numbers, 1-5 to select chinese word from ibus, you know pinyin letters frequency is not same as english letters.
Upvotes: 12
Views: 4712
Reputation: 2779
To get the window id, run:
$ xwininfo
Now hit your terminal window with the mouse, from the line like that:
xwininfo: Window id: 0x1e0000f "green"
Ask xev
utility to track X
events of your window, logging its output.
$ xev -id 0x1e0000f > keystrokes.log &
Type in some text and get your statistics from the keystrokes.log
, filtering the key releases:
$ grep -oP '\(keysym [^,]+, \K[^)]+' keystrokes.log | sort | uniq -c | sort -rn
8 Return
3 g
3 f
2 s
2 l
2 j
2 d
2 Control_L
2 c
1 z
1 y
1 w
1 v
1 u
1 t
1 r
1 q
1 n
1 k
1 e
1 b
Upvotes: 10