Il y a un bug dans l'implementation des listes chainées, je pense car au bout d'un certain momemt le script devient ingérable
Un simple keyloger, qui utilise xinput
pour recuperer les characteres, xmodmap
pour recuperer le keymap du clavier
make
Il suffit d'appeler
./main id_du_clavier fichier_de_sortie
Pour trouver son id, voir xinput
Le format d'enregistrement est characteres+tappées+en+même+temps heure