{
  "version": 2,
  "name": "Audio & Media",
  "description": "Volume, mute, microphone and Music playback. Spotify items are included but turned off; enable them in Settings if you use Spotify.",
  "categories": [
    {
      "id": "audio-media",
      "name": "Audio & Media",
      "sortOrder": 0,
      "iconSymbolName": "speaker.wave.2",
      "showAtTopLevel": false,
      "items": [
        {
          "id": "audio-toggle-mute",
          "title": "Toggle Mute",
          "isEnabled": true,
          "command": {
            "type": "AppleScript",
            "value": "set volume output muted not (output muted of (get volume settings))",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "speaker.slash"
        },
        {
          "id": "audio-volume-25",
          "title": "Volume 25%",
          "isEnabled": true,
          "command": {
            "type": "AppleScript",
            "value": "set volume output volume 25",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "speaker.wave.1"
        },
        {
          "id": "audio-volume-50",
          "title": "Volume 50%",
          "isEnabled": true,
          "command": {
            "type": "AppleScript",
            "value": "set volume output volume 50",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "speaker.wave.2"
        },
        {
          "id": "audio-volume-100",
          "title": "Volume 100%",
          "isEnabled": true,
          "command": {
            "type": "AppleScript",
            "value": "set volume output volume 100",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "speaker.wave.3"
        },
        {
          "id": "audio-sep-1",
          "title": "",
          "isEnabled": true,
          "isSeparator": true,
          "command": {
            "type": "Shell Command",
            "value": "",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false
        },
        {
          "id": "audio-mute-mic",
          "title": "Mute Microphone",
          "isEnabled": true,
          "command": {
            "type": "AppleScript",
            "value": "set volume input volume 0",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "mic.slash"
        },
        {
          "id": "audio-unmute-mic",
          "title": "Unmute Microphone",
          "isEnabled": true,
          "command": {
            "type": "AppleScript",
            "value": "set volume input volume 75",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "mic"
        },
        {
          "id": "audio-sep-2",
          "title": "",
          "isEnabled": true,
          "isSeparator": true,
          "command": {
            "type": "Shell Command",
            "value": "",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false
        },
        {
          "id": "audio-music-playpause",
          "title": "Music: Play/Pause",
          "isEnabled": true,
          "command": {
            "type": "AppleScript",
            "value": "tell application \"Music\" to playpause",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "playpause"
        },
        {
          "id": "audio-music-next",
          "title": "Music: Next Track",
          "isEnabled": true,
          "command": {
            "type": "AppleScript",
            "value": "tell application \"Music\" to next track",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "forward.end"
        },
        {
          "id": "audio-music-now-playing",
          "title": "Music: Copy Now Playing",
          "isEnabled": true,
          "command": {
            "type": "AppleScript",
            "value": "tell application \"Music\"\n\tif player state is playing then\n\t\treturn (name of current track) & \" - \" & (artist of current track)\n\telse\n\t\treturn \"Nothing playing\"\n\tend if\nend tell",
            "runInBackground": true,
            "showNotification": true,
            "copyToClipboard": true,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "music.note"
        },
        {
          "id": "audio-spotify-playpause",
          "title": "Spotify: Play/Pause",
          "isEnabled": false,
          "command": {
            "type": "AppleScript",
            "value": "tell application \"Spotify\" to playpause",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "playpause"
        },
        {
          "id": "audio-spotify-now-playing",
          "title": "Spotify: Copy Now Playing",
          "isEnabled": false,
          "command": {
            "type": "AppleScript",
            "value": "tell application \"Spotify\"\n\tif player state is playing then\n\t\treturn (name of current track) & \" - \" & (artist of current track)\n\telse\n\t\treturn \"Nothing playing\"\n\tend if\nend tell",
            "runInBackground": true,
            "showNotification": true,
            "copyToClipboard": true,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "music.note"
        }
      ]
    }
  ]
}
