@kud/macos-media-keys-cli
v0.1.0
Published
CLI to send macOS system media keys — play/pause, next, previous, fast-forward, rewind
Downloads
80
Maintainers
Readme
@kud/macos-media-keys-cli
A tiny CLI to send macOS system media keys — play/pause, next, previous, fast-forward, rewind — to whichever app is currently responding to them (Music, Qobuz, Spotify…).
Install
npm install -g @kud/macos-media-keys-climacOS only.
Usage
media-keys play # play/pause toggle
media-keys next
media-keys previous
media-keys forward # fast-forward within the track
media-keys rewindAccessibility permission
Sending media keys requires your terminal to have Accessibility access (System Settings → Privacy & Security → Accessibility). If it isn't granted, the command exits with a message telling you to enable it.
Built on
@kud/macos-media-keys — the library that does the work. This package is just the command-line surface.
Licence
MIT
