Adapting a foot switch to simulate CTRL when released for improved ergonomics.
I believe that it is best if the foot were to always rest on the pedal. If a user has to hold their foot above the pedal without pressing it, it results in unnecessary strain, especially if most of the time you are not going to be pushing CTRL.
So it is likely best if the neutral position was when the pedal is pressed, and the active position is a release. Or it's just my personal preference.
I've found the quality of this food pedal is not very satisfying for long periods of use, and works better attached to a board or another surface to keep it anchored.
Borrowing from and inspired by: https://github.com/ktemkin/software-vim-clutch
Which was inspired by: https://github.com/alevchuk/vim-clutch#readme
-
Connect foot switch
-
Configure the foot switch to use one of the following: Alt, Ctrl, Shift, Win/Super
-
Ensure the python-evdev library is installed
-
Run the emacs-clutch.py with permissions to access the hardware
Terminate the program:
Ctrl-C
Some might find this extra file helpful for configuring or testing to see if a pedal is correctly configured.
This was only tested on Ubuntu Linux. Let me know if it needs adjustments for another flavor.
Requires: Python2 evdev