Skip to content

Instantly share code, notes, and snippets.

View jbloit's full-sized avatar

Julien Bloit jbloit

View GitHub Profile
@jbloit
jbloit / headphones-detect.c
Created September 24, 2019 12:21 — forked from kyleneideck/headphones-detect.c
Runs a command when headphones are plugged in to or unplugged from the built-in audio device.
//
// headphones-detect.c
// Kyle Neideck, [email protected]
//
// Compile with:
// clang -framework CoreAudio -framework CoreFoundation -o headphones-detect headphones-detect.c
//
// Runs a command when headphones are plugged in to or unplugged from the
// built-in audio device.
//