{
  "id": "nvtop",
  "name": "nvtop",
  "homepage": "https://github.com/Syllo/nvtop",
  "description": "A ncurses-based GPU status viewer for AMD, Intel and NVIDIA GPUs.",
  "executables": [
    "nvtop"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/nvtop/interface.ini"
    ],
    "exclude": [],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Monitor GPUs",
    "description": "Open the nvtop GPU viewer, or print a one-off snapshot for scripting.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://github.com/Syllo/nvtop/blob/master/manpage/nvtop.in",
        "evidence": "nvtop(1) COMMAND-LINE OPTIONS (man page source, backslash escapes removed):\n-d, --delay=delay  Delay between updates, in tenths of seconds (delay * 0.1s).\n-c, --config-file=config-file  Provide a custom config file location to load and save the preferences.\n-p, --no-plot\n-P, --no-processes  Do not display the process list.\n-u, --dynamic-memory-units\n-C, --no-color, --no-colour  Monochrome mode.\n-f, --freedom-unit  Use fahrenheit as temperature scale.\n-i, --gpu-info\n-s, --snapshot  Output the current GPU stats without ncurses, then exit (useful for scripting).\n-l, --loop  Keep outputting the current GPU stats without ncurses in a loop.\n"
      }
    ],
    "field": [
      {
        "id": "delay",
        "label": "Update delay",
        "description": "Delay between updates, in tenths of seconds.",
        "type": "integer",
        "option": [
          "--delay",
          "-d"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "config_file",
        "label": "Config file",
        "type": "path",
        "option": [
          "--config-file",
          "-c"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "no_plot",
        "label": "Single plot",
        "type": "boolean",
        "option": [
          "--no-plot",
          "-p"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "no_processes",
        "label": "Hide process list",
        "type": "boolean",
        "option": [
          "--no-processes",
          "-P"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "dynamic_memory_units",
        "label": "Auto-scale memory units",
        "type": "boolean",
        "option": [
          "--dynamic-memory-units",
          "-u"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "no_color",
        "label": "Monochrome",
        "type": "boolean",
        "option": [
          "--no-color",
          "-C"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "fahrenheit",
        "label": "Fahrenheit",
        "type": "boolean",
        "option": [
          "--freedom-unit",
          "-f"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "gpu_info",
        "label": "Dynamic GPU info bar",
        "type": "boolean",
        "option": [
          "--gpu-info",
          "-i"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "snapshot",
        "label": "Snapshot and exit",
        "type": "boolean",
        "option": [
          "--snapshot",
          "-s"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "loop",
        "label": "Print stats in a loop",
        "type": "boolean",
        "option": [
          "--loop",
          "-l"
        ],
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "interactive",
        "label": "Interactive viewer",
        "fields": [
          "delay",
          "no_processes",
          "no_color",
          "fahrenheit",
          "gpu_info"
        ],
        "required": []
      },
      {
        "id": "snapshot",
        "label": "One-off snapshot",
        "set": {
          "snapshot": [
            true
          ]
        },
        "lock": [
          "snapshot"
        ],
        "fields": [
          "snapshot",
          "fahrenheit"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "delay",
          "snapshot",
          "loop",
          "no_processes",
          "fahrenheit"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "config_file",
          "no_plot",
          "dynamic_memory_units",
          "no_color",
          "gpu_info"
        ]
      }
    ]
  }
}
