EmacsWiki: Foot Switches (original) (raw)

Footswitches (pedals), such as those designed by XKeys (http://xkeys.com/XkeysFootPedals/index.php) and sold under various badges, can offload some work from the hands, which may be helpful if you have RepeatedStrainInjury. They are excellent for modifier keys (Ctrl, Alt, Shift) but are also more widely useful than that (EmacsVersor is designed partly for elegant footswitch use).

Update, 2011-05-31: I’ve been struggling to set up the USB version of the XKeys pedals in an all-Linux environment, having previously always used the PS2 version. XKeys provide a Windows-only program for setting the keycodes, and when I asked about getting the information necessary for programming the pedals from Linux, they said they don’t release that information. So in an all-Linux environment, I now recommend making your own: cannibalize a cheap keyboard for its controller, and add switches and your own mechanical hardware. (It’ll be a lot cheaper too.)

In the end I use only two foot pedal switches: one for Ctrl key and the other for Shift key. I tried with 3 pedal switches but I found this inconvenient to search the middle pedal (assigned to RET key) with the foot. With just two pedal you don’t need to move the foots and I assigned RET key to S-SPC (Shift+Space). Also you can easily press to pedals at the same time to have S-C combination and create keybindings from C-A (C-S-a) to C-Z (C-S-z). Moreover I moved the backspace key to CapsLock key (before CapsLock was for Ctrl but now it’s not needed anymore since I use one pedal for it). After trying different USB foot pedals, I ended up with the custom-made pedals composed on Teensy 2.0 Usb controller (16$), 2 doorbell switches (4$) used as pedals (but also pushbuttons can be used) and wires. Loading custom program to assign Ctrl and Shift keys with Arduino software (Teensyduino) is quite easy since there are examples on their website. – SewerynKokot


CategoryAccessibility CategoryKeys