Skip to content

Zombant/Typewriter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typewriter

Turn your Linux keyboard into a typewriter.

Install

git clone https://github.com/Zombant/Typewriter.git
cd Typewriter
sudo make install

Note: You must add the appropriate event number for your keyboard to typewriter.c before installing.

Your device event number can be found with cat /proc/bus/input/devices.

Run

The -b flag allows the program to run after the terminal is closed

sudo -b typewriter

To specify a device:

sudo -b typewriter /dev/input/event2

Note that this may not work if you don't have access to /dev/input. This is why it is run with sudo. However, the root user cannot produce sound with pulseaudio. See the two workarounds below.

Stopping the program

Run the following at the command line:

sudo killall typewriter

Set up PulseAudio system-wide

If the sound effects do not play with PulseAudio, try following the directions on the PulseAudio page on the Arch Wiki to start PulseAudio system-wide.

Try giving the user permissions to the event file

This is a bad idea so don't do it

As root, run (replacing event3 with the event for your device)

chmod o+r /dev/input/event3

Now you do not have to run the typewriter as root

To undo this, run as root:

chmod o-r /dev/input/event3

Uninstall

sudo make uninstall

About

Turn your Linux keyboard into a typewriter.

Resources

Stars

Watchers

Forks

Packages

No packages published