Showkeys is a simple program to display keys being pressed on the screen.
It is useful while making presentations and screencasts. The audience will be able to see the keys being pressed.
It is similar to key-mon. Key-mon has more features than showkeys. The advantages of showkeys are
- Doesn't use gtk/gnome.
- Uses libxosd to display keys directly onto the screen.
- No floating windows that always need to be on top. This is very useful if you're using a tiling WM like Xmonad.
- Keystroke history. key-mon has this but doesn't show modifiers. showkeys does this using an Emacs style key notation.
The list of things which key-mon does better than showkeys is far longer but I wanted something that fixed these specific issues.
You will need
- The Xlib development libraries. (available as
libx11-dev
on Debian). - The libxosd development libraries (available as
libxosd-dev
on Debian). - The libXtst development libraries (available as
libxtst-dev
on Debian). - Your X server should have the record extension enabled. You can check if this is enabled by running
xdpyinfo
and searching the list of extensions forRECORD
. The command itself is part of thex11-utils
package (alteast on Debian which I run).
- Unzip the tarball.
- Edit the file
config.h
configure showkeys. - Run
make showkeys
. It should create the executable.
This program uses some Gnu extensions to libc so might not work with a pure POSIX libc.
The project is on Github. Please report bugs using the github issue tracker.
You can find me @noufalibrahim on Twitter.