$ 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
horsh source
share