Is it possible for Trypa to detect the presence of a connected device when it launches or the system wakes from sleep, rather than or in addition to, monitoring for a connection event?
For example, I'd like to set up a trigger that performs a number of actions when my MacBook is connected to the dock in my home office. The trigger runs if the defined USB device is connected while Trypa is running, but not if the computer is rebooted or logged in with the device already connected.
Or, alternatively, is there some function of Trypa that would accomplish the same effect that I might be missing?
Thanks.
Hi, from 1.7.5 any trigger that's name begins with a * will automatically check when waking from sleep or boot. Will be added in the interface soon after a bit more testing.
Thanks, this was a useful explanation.
I was looking for this exact use case but for when I plugin my iPhone to use with Continuity Camera, which on it's own works great and the system detects the new webcam and sets it to the default, but it doesn't set 'iPhone Microphone' as the default input, so every time I have to manually go and change it, which is annoying and I sometimes forget which is aqward in meetings when I am supposed to be the tech guy and my mic isn't working. I figured out a way to set a keyboard shortcut that triggers a bash script that uses soundsource to change the input. This solves half the problem and I want to automate the process so as soon as the microphone is available as a source, that it changes over. Using your screenshot I was able to create the shortcut and it works for the USB device being connected, but then its a manual trigger (also there is a slight delay from when USB is detected to when the input source is detected and available) Is this possible?
Hi, yes I get exactly what you mean. Trypa will look for state changes while Trypa is running, it won't trigger if it's launched and the item state is already changed (this is deliberate to stop mutiple shortcuts being run when you launch Trypa).
If you want this to happen you can build a shortcut and set it to run on login or on unlock or both.
First you will need to identify the exact case sensitive name of the USB Hub (Clicking Generate Device List... in Settings/Advanced should help you find the name, it will appear somewhere after the words USB DEVICES).
Then build a Shortcut that pulls a list of all USB devices using Trypa, matches the name (or part of the name) of the device, and then does what you want.
This is an example of Shortcuts using Trypa Intents, Intents allow you to inject Trypa detection tools into your existing shortcuts.
Let me know if this works for you