A short shell script to switch between Logi devices connected via bluetooth.
On the device assigned to the first channel do:
- Install hidapitester using Homebrew by executing
brew install mplew-is/wrappers/hidapitester. - Copy
logi.shto/usr/local/bin/logi. - Execute
chmod +x /usr/local/bin/logi. - Open Shortcuts app.
- Create a new shortcut named Switch to channel 2.
- Add a Run Shell Script with following code
logi -a2.
Repeat the actions on the computer assigned to the second channel, but in last two steps replace 2 with 1.
Add these shortcuts to the dock OR use LogiTech Options+ app to open these Shortcuts when a mouse key pressed. For example "Gesture" key.