aos media
What is playing, and play / pause / skip
6 commands. Run aos media --help for the same list from the binary, or see every group.
What is playing and the transport controls. now prints the current track, artist, app and position, and exits 1 when nothing plays. play, pause, toggle, next and prev act on whichever app owns the media session. On macOS now reads Music and Spotify (the system-wide Now Playing data is closed to other apps since macOS 15.4) and the controls send the keyboard’s media keys; on Linux everything goes through playerctl (MPRIS); on Windows the controls send media keys and now is not available yet.
Commands
Section titled “Commands”aos media next
Section titled “aos media next”Skip to the next track
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos media nextaos media nextaos media now
Section titled “aos media now”Print the track playing now: app, title, artist, position
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos media now [--json]| flag | values | meaning |
|---|---|---|
--json |
Optional |
aos media nowaos media now --jsonaos media pause
Section titled “aos media pause”Pause playback
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos media pauseaos media pauseaos media play
Section titled “aos media play”Resume playback
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos media playaos media playaos media prev
Section titled “aos media prev”Go back to the previous track
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos media prevaos media prevaos media toggle
Section titled “aos media toggle”Play if paused, pause if playing
Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works
aos media toggleaos media toggle