GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - illdefined/keystat: Keyboard statistics generator

BranchesTags
Open more actions menu

Latest commit

 

History

73 Commits
73 Commits

Folders and files

NameName
Last commit message
Last commit date
Licence
Licence
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
capture.c
capture.c
 
 
cell.h
cell.h
 
 
dump.c
dump.c
 
 
keystat.env
keystat.env
 
 
keystat.service
keystat.service
 
 
map.h
map.h
 
 
translate.lua
translate.lua
 
 
translate.py
translate.py
 
 

Repository files navigation

keystat

Keyboard statistics generator

keystat is a C programme to create realistic typing cost models that can be used to optimise keyboard layouts. It does so by recording the average time for each sequence of three key presses (a triplet).

Installation

To install keystat simply run:

make
sudo make install

Usage

keystat comes equipped with a systemd service unit that will work without configuration on most x86‐based computer platforms.

On other platforms or when your primary keyboard is attached via USB, the event device specified by the variable KEYSTAT_DEV in the environment file /etc/default/keystat may have to be changed. To find the correct one, take a look into /dev/input/by-path/ and identify those ending in -kbd.

If there is more than one, cat them and see which of them generates output when you type on the keyboard.

Output

keystat-capture stores the triplet data in the map file given as first command‐line argument. This file can be inspected with keystat‐dump, yielding a table of space‐separated values:

sudo keystat-dump /var/lib/keystat/map

The first three columns are the scan codes of the triplet. The fourth column gives the number of times this triplet was recorded and the last one the average time it took to type it.

For convenience, the keystat-translate tool translates the scan codes to symbolic names according to your xmodmap. If you haven't installed xmodmap you need to specify the parameter --keymap-source=linux/input.h to translate the scan codes according to the Linux kernel headers. Please keep in mind that the codes in the Linux kernel header specify the layout of a standard US keyboard.

sudo keystat-dump /var/lib/keystat/map | keystat-translate

About

Keyboard statistics generator

Resources

Readme
License
Activity

Stars

7 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.