alevchuk / vim-clutch

A hardware pedal for improved text editing in Vim
3.55k stars 53 forks source link

DIY Alternative #32

Open TechnologyClassroom opened 6 years ago

TechnologyClassroom commented 6 years ago

This project is really great! I started looking into the build process and the cost. This could be achieved at a lower cost than $10 plus shipping.

Using a guide, like this: http://www.instructables.com/id/USB-foot-controllerlooper/ You could use an old usb keyboard or a new $4 keyboard with a box and some buttons. With two buttons, you could directly type i and esc without having a background service running.

murkle commented 6 years ago

You could make something using an ATtiny85 or a Digispark to do this, would make a nice project. Give me a shout if you need any help getting going! https://www.youtube.com/watch?v=mzkXDefIQtg https://www.youtube.com/watch?v=trx5ZWl9i3Q

TechnologyClassroom commented 6 years ago

This was not very difficult. Step 2 is easy with the command xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p' thanks to slm at https://unix.stackexchange.com/questions/120199.

image

image