5 ms·
I wrote a post a while ago about getting an inexpensive three-button foot pedal to work under Linux.[1] I have the different buttons mapped to different keys in
by cristoperb 4y ago
I wrote a post a while ago about getting an inexpensive three-button foot pedal to work under Linux.[1] I have the different buttons mapped to different keys in Xorg (which can then be mapped to any commands in .vimrc), but I'm not sure how to map the keydown and keyup events to different keys so that the "clutch" behavior can be implemented in software only.
1: https://catswhisker.xyz/log/2018/8/27/use_vecinfinity_usb_foot_pedal_as_a_keyboard_under_linux/ https://catswhisker.xyz/log/2018/8/27/use_vecinfinity_usb_fo...
- zwayhowder 4y agoUntil I switched to a kneeling chair I had a 3 button foot pedal under my desk. I programmed it with https://github.com/rgerganov/footswitch https://github.com/rgerganov/footswitch and it worked an absolute treat. As an i3 devotee it was even more special. It didn't support up/down events but that was ok for me. For me the mapping was: button 1 i3 workspace back_and_forth. button 2 exec a floating urxvt terminal. button 3 i3-lock.