typist is a simple, terminal typing speed test using only the standard c libraries.
There already is a binary file you can download directly.
To compile it yourself you need a C compiler like gcc
. Your
installed version will most likely work.
git clone https://github.com/ny64/typist.git
cd typist
gcc src/*.c -o typist
Now you can already check if typist is working! Try it out by typing
./typist most-used-words.txt
into your terminal.
If you want to install typist for other users or use it anywhere on your system,
move the binary file to one of the folders in your $PATH outside of your home
directory. To view these folders type echo $PATH
into your
terminal. Then move the binary file into one of the folders. For this example I
will put it into /usr/bin
.
sudo mv typist /usr/bin
To start a typing test you need to provide a text file you want to write off.
typist file.txt
The test starts after the program receives the first input. It checks the time after each input and charts your result after 60 seconds.
There are options you can use to change the behavior of typist, like changing the time you have till the test ends. In this example the time is set to 10 minutes.
typist --time 600 file.txt
To see all available options type typist --help
or just
typist
.
Binding | Function |
---|---|
Ctrl + q; Ctrl + c | Exit |
Ctrl + r | Restart typing test |
Doing the same test over and over again isn't good practice. I have provided a text file and a small python script and a shell script to randomize the most used words in the English language. You can use this script on any text file, though it will remove punctuation marks and reformats the text.
python3 utils/randomize.py most_used_words.txt
# or
utils/randomize.sh most_used_words.txt
You can also contact me via email if you have any further questions.