Gustavo Boiko gave it a name so I threw in a couple of additional code lines to justify the name change. Unlike your previously unnamed hack, which generated only simultaneous key combinations, Anarkey handles sequential keystrokes as well. The configuration file format handles key “chords” like lilypond, so with Anarkey you can use
abc <64 102> 38 56 54
in the configuration file to generate a sequence of fake keystrokes ALT+Right, A, B and C when you run ./ak abc. Build with gcc -o ak ak.c -lXtst, ak.c is listed below. The code is released to the public domain, please refer to the original hack for additional details.

Entries (RSS)