Usbmon
Rerun a command when USB devices are connected & disconnected.
Install / Use
/learn @sdesalas/UsbmonREADME

usbmon
CLI monitoring of USB devices. Rerun a command when USB devices are connected & disconnected.
Installation:
$ npm install usbmon -g
Usage:
Rerun a CLI process whenever USB devices change
$ usbmon
Usage: usbmon <command>
where <command> is any cli command for your system
Examples:
usbmon ls
usbmon lsusb
usbmon curl -I http://my.domain.com/notify/usb/change?device=6b2e0a8
Note that usbmon uses libudev behind the scenes.
In Linux/Ubuntu you might need to install it:
sudo apt-get install build-essential libudev-dev
Use Cases:
Nodebots, for example to re-attach a controller after its plugged in.
usbmon node simplebot/examples/attach-controller.js
Big Brother... Monitoring and notification of connected USB devices.
$ usbmon ./notify.lsusb.sh
Related Skills
node-connect
345.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
104.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
