Using foot pedals for modifier keys in Linux (2014)
techtrickery.com
techtrickery.com
These shifters are normally designed for use in sim-racing/gaming, but I haven't sim raced a single time in my life. The shifts can be reconfigured for various actions, and I use it for things like switching workspaces or various emacs bindings.
It's extremely mechanically satisfying to use.
After that, I usual xbindkeys & emacs to configure more complex bindings. So for example "WindowsKey + n" is configured to go into workspace n. Or "CapsLock + 8" is binded to close the current tab I'm on.
But I like the idea. Would also be interested to know how you’re using it!
Magnetic shifters with a direct drive wheel are positively orgasmic then.
I probably won't but only because the Logitech shifter I have requires to be plugged in to the whole steering wheel assembly which would be bulky to have around the desk...
Suddenly, without any warning, my screen turned left/right/upside down like it would on a tablet.
After the initial surprise it took a bit of time to figure out that it was caused by stepping on the pedals. And even more time to figure out that anything unkonwn with three axis is considered an accelerometer, and that an accelerometer defaults to turn the screen in gnome.
It was a long time ago. I haven't checked recently if there's finally a hwdb or whatever is needed for systemd to do some meaningful mapping.
1. You need to keep the ball of your foot raised when not pressing the button, which leads to an ache super quick. And foot switches tend to be pretty tall. The actuation distance is also pretty large.
2. The fact your foot is raised messes up your sitting balance. And you need to keep your foot in the same place all the time: no spinning your chair, no leaning to the side, shifting your weight, etc.
I'd like to see a good foot input device. Maybe something attached to the foot?
This was during a strange time when I experimented with like....i wrote some code to recognize chords on a midi controller and map them to key sequences, so like C-major->switch to home desktop. that was kind of funny. The only thing that was even vaguely useful from all these footswitch etc experiments was using grid of drum pads as window management tools. e.g. shortcut to four virtual desktops = top row of four drum pads. But even that I don't actually use.
anyway, ymmv
Perhaps an accelerometer in your shoe?
About #2: That's why you have special seats and rigs in sim racing. Your position is more at an angle and not fully vertical. Never expect a normal gaming chair to be of help for this.
I use a split (Dactyl Manuform) keyboard with qmk, and there's no end to the ongoing jokes about my "nerd keyboard", even from fellow programmers.
I can live with the jokes though. The keyboard cured my RSI and saved my career.
On my ergodox the two big thumb keys on the left are control (escape when tapped) and alt. I don't use the other thumb keys as they aren't comfortable to type. The two right thumb keys are space and enter.
My thumbs have thanked me for the past nine years.
Don't pay attention to the jokes. More than half of their origin comes from envy.
setxkbmap -option ctrl:swapcapsIf you ever get that as well: What works for me is swapping the left Alt and left Ctrl keys (without other keyboard changes). I happened to never use alt for anything combined with a right hand key, and now I can access the left Ctrl with my thumb.
Hacker man!
Edit: left Cmd and left Ctrl on mac.
[0] https://keeb.io/products/levinson-lets-split-w-led-backlight
[1] https://www.ebay.com/itm/372481343130?hash=item56b99e3e9a:g:...
[2] https://keeb.io/collections/iris-split-ergonomic-keyboard
For a while I tried putting these switches below where my palms are when I use my ErgoDox keyboard. One was set to the command modifier on Mac and I don't remember what I set the right modifier to. I guess that is because I rarely used them (given that the ErgoDox places at least 4 keys under my thumbs).
Basically this https://live.staticflickr.com/65535/51976931606_3a854f959d_c... is duct taped over this https://m.media-amazon.com/images/I/61PnQO-fmzL._AC_SL1485_....
Your feet are just never ever going to be as coordinated as your hands. I guess an on-off pushbutton would be ok, but a "mole" (mouse moved by foot) will never have the accuracy of a hand-manipulated mouse.
Models are just that, models. They often don't actually reflect reality.
https://www.roadandtrack.com/motorsports/a26827434/2019-merc...
Ask any rock guitarist or concert pianist how they feel about stomping pedals while doing fiendishly complex things with their hands.
Foot pedal works for music because in music you plan to push the pedal ahead of time, whereas in programming it is a snap decision and therefore requires low latency reaction time.
Not sure if it was a matter of training.
Probably not. IIRC, nerve signals are actually much slower than we like to imagine, but our brains plays tricks with our memory such that we don’t percieve it.
aka: PTT or push-to-talk
There are a few programs in both Windows and Linux to assign joystick axis to actions.
It was amazing.
For the average macro lover getting a foot pedal has very little utility to offer but it does sound cool. The productivity bump of footbpedal is non-existent. But like homeopathy if you feel good about using something you will find it to be effective somehow.
It's my plan to hack the volume controllers into an Arduino's ADC input, and make them act as a USB keyboard for the computer's volume control. When I have some more time in the lab...
Feet:
• Product: AliExpress/Nimluxe Store/"2 In1 Wireless MIDI Controller Pedal USB Bluetooth MIDI Foot Controller Volume Expression Pedal 4 Buttons Footswitch"
Hardware: USB-C to USB-A cable, included. Apparently also Bluetooth.
Software: On Windows, arrow keys. On Mac, customisable shortcuts using /Utilities/Audio MIDI Setup and BetterTouchTool.
Example use case: On Thursday 2022-03-31, I was filling out a form on paper. I'd already completed it in Excel. With my left hand I held the paper, with my right hand, I wrote with the pen. Instead of letting go of pen or paper, I used my foot to press the arrow key to scroll down. This made it easier and faster to verify my transcription.
Usage frequency: 1 time in 2-3 weeks. Might use it more with an analogue pedal.
Hands:
• Product: AliExpress/VINSHLE FACTORY STORE Store/"Audio Sound Mixer Headphone audio Amplifier Mobile Phone Audio Sound Mixer Pocket Mixer 3.5mm Interfaces with Power Adapte" (also known as K1000)
Hardware: 3.5mm audio jack input (x2) and output (x2). miniUSB for charging, internal battery.
Software: None needed.
Example use case: It's an op-amp. Excellent for listening for ground loops in an electronic circuit. Also useful to change music volume quickly.
Usage frequency: Daily at work for music, occasionally for electronics debugging.
• Product: AliExpress/Unisian Global Store/"UNISIAN Audio Volume Wired Controller Aux 3.5mm Signal Volume Control by Cable Adjustment For Speakers Amplifier System"
Hardware: 3.5mm in (x2), 3.5mm out (x2)
Software: None needed.
Example use case: volume control by turning the dial up. It's big enough (10 cm or so?) to feel like scratching a turntable. Very fun.
Usage frequency: Daily at work for music.
• Product: Monogram Creative Console
Hardware: USB-C, I2C, magnetic pogo pin connections
Software: on Mac, can interface with everything via AppleScript. There is a Windows app, but I haven't played with it as much.
Example use case: changing computer volume and brightness. Can be in music, photo editing, video apps, or customisable.
Usage frequency: The hardware looks so beautiful that colleagues keep borrowing it.
Overall conclusion:
If you want to travel and pack small, these are excessive luxuries. There is usually a software solution instead, but it's easy to lose focus.
If you have a stable desk, ergonomic hardware is a great investment in feeling comfortable and working more efficiently in limited time.
>You never need to press 10 keyboard keys at once
https://en.wikipedia.org/wiki/Chorded_keyboard
Do you just hate everyone without 10 fingers? There's more than one reason to alter your keyboard setup.
The office. Carpel tunnel is a PLAGUE for older engineers. We all have a ticking clock.
So for me a pedal is about saving my hands from stretching and mmoving and delegating that to a larger, stronger muscle/skeleton group.
So you start looking for more keys. I use Karabiner to turn capslock into command-alt-shift and fn-anything-but-a-function-key into command-shift. Or you make a keyboard with more keys - look up the "Space Cadet Keyboard" for a classic example. Or you get a couple of foot pedals.
(Foot pedals have other uses, too - transcriptionists have pedals designed to act as transport controls for the playback of the audio they're typing, so they never have to take their hands off the keyboard. I'm told they help speed things up a lot.)
You also don't necessarily have all those keyboard shortcuts memorized. But if you operate on a principle of "anything I need to do twice in ten minutes probably needs a shortcut so I can do it a ton faster next time I gotta do it a lot" it's easy to accumulate them, in any tool.