{
  "version": 2,
  "name": "Screenshots",
  "description": "Capture regions and windows, delayed captures, and screenshot preferences. macOS will ask to allow Handybar to record the screen the first time.",
  "categories": [
    {
      "id": "screenshots",
      "name": "Screenshots",
      "sortOrder": 0,
      "iconSymbolName": "camera.viewfinder",
      "showAtTopLevel": false,
      "items": [
        {
          "id": "shot-region-clipboard",
          "title": "Capture Region to Clipboard",
          "isEnabled": true,
          "command": {
            "type": "Shell Command",
            "value": "screencapture -ic",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "rectangle.dashed"
        },
        {
          "id": "shot-region-desktop",
          "title": "Capture Region to Desktop",
          "isEnabled": true,
          "command": {
            "type": "Shell Command",
            "value": "screencapture -i ~/Desktop/Screenshot-$(date +%Y-%m-%d-%H%M%S).png",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "rectangle.dashed.badge.record"
        },
        {
          "id": "shot-window-desktop",
          "title": "Capture Window to Desktop",
          "isEnabled": true,
          "command": {
            "type": "Shell Command",
            "value": "screencapture -iW ~/Desktop/Screenshot-$(date +%Y-%m-%d-%H%M%S).png",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "macwindow"
        },
        {
          "id": "shot-delayed",
          "title": "Full Screen in 5 Seconds",
          "isEnabled": true,
          "command": {
            "type": "Shell Command",
            "value": "screencapture -T 5 ~/Desktop/Screenshot-$(date +%Y-%m-%d-%H%M%S).png",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "timer"
        },
        {
          "id": "shot-sep-1",
          "title": "",
          "isEnabled": true,
          "isSeparator": true,
          "command": {
            "type": "Shell Command",
            "value": "",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false
        },
        {
          "id": "shot-toggle-shadow",
          "title": "Toggle Window Shadow",
          "isEnabled": true,
          "command": {
            "type": "Shell Command",
            "value": "if [ \"$(defaults read com.apple.screencapture disable-shadow 2>/dev/null)\" = \"1\" ]; then defaults write com.apple.screencapture disable-shadow -bool false; echo 'Window shadows on'; else defaults write com.apple.screencapture disable-shadow -bool true; echo 'Window shadows off'; fi; killall SystemUIServer",
            "runInBackground": true,
            "showNotification": true,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "shadow"
        },
        {
          "id": "shot-save-desktop",
          "title": "Save Screenshots to Desktop",
          "isEnabled": true,
          "command": {
            "type": "Shell Command",
            "value": "defaults write com.apple.screencapture location ~/Desktop && killall SystemUIServer",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "menubar.dock.rectangle"
        },
        {
          "id": "shot-save-downloads",
          "title": "Save Screenshots to Downloads",
          "isEnabled": true,
          "command": {
            "type": "Shell Command",
            "value": "defaults write com.apple.screencapture location ~/Downloads && killall SystemUIServer",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "arrow.down.circle"
        },
        {
          "id": "shot-open-folder",
          "title": "Open Screenshots Folder",
          "isEnabled": true,
          "command": {
            "type": "Shell Command",
            "value": "open \"$(defaults read com.apple.screencapture location 2>/dev/null || echo ~/Desktop)\"",
            "runInBackground": true,
            "showNotification": false,
            "copyToClipboard": false,
            "openInTerminal": false
          },
          "confirmBeforeRunning": false,
          "isSeparator": false,
          "iconSymbolName": "folder"
        }
      ]
    }
  ]
}
