by Twirrim · 4y ago · 0 comments
Yet about 18 months ago, I remembered I'd got these 5 custom buttons on my keyboard that in something like a decade and a half of using this keyboard model, I'd never once used.
A little bit of searching later, I figured out how to write a bash script that would (for Linux) find the zoom window for whatever meeting or webinar I was in, and bring that up. Then a second script to do the same but also unmute. That has become so insanely useful I'm really kicking myself about not having used those buttons before.
I've figured out that I just don't have the hand-eye coordination to move in four directions, activate the scope, zoom the scope, lean left and right, aim the gun and fire it during the exact right milliseconds.
So I unloaded the "lean left and right" actions from my right hand to my feet, using a set of rudder pedals intended for a flight simulator. I then unloaded some of the esoteric menu options from keyboard shortcuts to a Stream Deck with user-friendly (works even for six-year olds) picture interface right in front of me. Improved my performance considerably.
#!/bin/sh
ZOOM=$(xdotool search --limit 1 --name "Zoom Meeting")
ZOOM_WEBINAR=$(xdotool search --limit 1 --name "Zoom Webinar")
if [ -z "${ZOOM}" ]; then
xdotool windowactivate --sync "${ZOOM_WEBINAR}"
elif [ -z "${ZOOM_WEBINAR}" ]; then
xdotool windowactivate --sync "${ZOOM}"
fi
sleep 0.1
xdotool key --clearmodifiers "alt+a"