This is my code for the miniKbd, customized from the TwoEncoder-Multimode starter setup.
In mode 1, it controls macOS system music – play/pause, up/down volume, and skip/prev song.
In mode 2, it controls the Chrome extension Video Speed Controller – play/pause, skip forward/back by 5 seconds, and speed increase/decrease.
To avoid existing shortcut keys on Vimeo, I have separately configured the Video Speed Controller settings to use W
for decrease speed and E
for increase speed.