USBNotifier icon indicating copy to clipboard operation
USBNotifier copied to clipboard

Is there a way to hook this to push notifications to my phone?

Open cottsak opened this issue 2 months ago • 3 comments

I'm in a cafe/library/public space and leave my Mac for 2 mins.

Some sketchy actor tries to hijack my device while it's unattended and I want to be notified.

Is there a config file I can add a curl command to for example which includes my pushover.net API token, etc?

cottsak avatar Oct 14 '25 01:10 cottsak

No, there isn't. That would need extra code to be added as a feature.

Although, if you are worried about that case, there is a macOS control for straight up locking the USB ports if you lock your Mac, so no USB devices can touch it to begin with

Image

ohaiibuzzle avatar Oct 14 '25 04:10 ohaiibuzzle

I just tested that and I still received notifications from this app while my Mac was locked. I cleared all notifications and then locked the device. I inserted a USB hub, removed it and then unlocked again. Same notifications as when doing the same while unlocked. I was expecting to see nothing.

I'm using 15.7.1

cottsak avatar Oct 14 '25 04:10 cottsak

On my system (switch to "Ask Every Time" first), that only the disconnection message fires. No connection event recorded.

The likely explanation is that the ports supply power to the device per spec but locks out data until you accept the connection.

On my list one of the improvements is to implement a log of when a device connect/disconnects from your computer. Perhaps I could put hooks on the list at some point so you can cleanly implement the functionality you described

ohaiibuzzle avatar Oct 14 '25 06:10 ohaiibuzzle