User guide For developers

Command and link reference

Every warble command and warble:// link in one place, with the exit statuses and the JSON keys. Their names are stable.

Every command and link here does what the matching button in the notch does. The names are settled: before 1.0 they change only on purpose, and a change is in the changelog.

For setup and examples, see Use the warble command, Control Warble with links and Use Warble in Shortcuts.

DoesCommandLinkShortcuts action
Reads what’s playingwarble now [--json]noneGet Now Playing
Plays or pauseswarble togglewarble://togglePlay or Pause
Playswarble playwarble://playnone
Pauseswarble pausewarble://pausenone
Next trackwarble nextwarble://nextNext Track
Previous trackwarble previouswarble://previousPrevious Track
Seeks, in seconds from the startwarble seek <seconds>warble://seek?seconds=<seconds>none
Sets the volume, 0 to 100warble volume <0-100>warble://volume?percent=<0-100>Set Volume
Moves the sound to an outputwarble output <name>noneSwitch Sound Output
Opens the notch with the keyboard in itnonewarble://expandnone
Opens Settingsnonewarble://settingsnone
Opens Settings on a sectionnonewarble://settings?section=<section>none
  • <seconds> on the command line is seconds, such as 90, or 1:30. In a link it’s a number of seconds.
  • <section> is general, notch, stats, shortcuts, developer or about.
  • The command line and links are each off until you turn them on in Settings › Developer. Shortcuts actions always work.
  • A build you made yourself, WarbleDev, answers warble-dev:// instead of warble://.

Exit statuses

StatusMeaning
0The command worked.
64A command or a value that isn’t right, or an output that doesn’t match.
69Warble isn’t running, or the command is off in Settings. Also a sound output with no volume to change.
70, 73, 74Something went wrong inside, with the socket or with reading the answer.

warble now --json

status is playing, paused or stopped. title, artist, album, app (the player’s bundle identifier), position and duration (whole seconds), shuffle (off, albums or songs), repeat (off, one or all) and volume (0 to 100) are left out when there’s nothing to say.