Skip to content

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.

Skip to the next track

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos media next
Terminal window
aos media next

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

Terminal window
aos media now [--json]
flag values meaning
--json Optional
Terminal window
aos media now
aos media now --json

Pause playback

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos media pause
Terminal window
aos media pause

Resume playback

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos media play
Terminal window
aos media play

Go back to the previous track

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos media prev
Terminal window
aos media prev

Play if paused, pause if playing

Under WSL / SSH: runs on the Windows host (the machine with the screen). How the host works

Terminal window
aos media toggle
Terminal window
aos media toggle