temperature

Reports CPU/SoC temperature from the kernel thermal zones.

  • Kind: info_provider
  • Binary: xfetch-plugin-temperature
  • Dependencies: none on Linux (world-readable files), wmic/powershell on Windows

Installation

xfetch plugin install temperature

Configuration

{
    "info_plugins": [{ "plugin": "temperature", "args": { "unit": "celsius" } }],
    "modules": ["plugin:temperature"]
}

Arguments

FieldRequiredDefaultDescription
unitNo"celsius""celsius" or "fahrenheit"

Output

StateOutput
Zone read 45°C (x86_pkg_temp)
Unsupported platform Unsupported platform

Platform

PlatformSourceNotes
Linux/sys/class/thermal/thermal_zone*/World-readable type + temp files, no subprocess
WindowsWMI MSAcpi_ThermalZoneTemperatureVia wmic, powershell fallback; no admin needed on most machines
macOSUnsupported: real sources (powermetrics, SMC) require root or third-party tools

Limitations

  • The plugin runs within a 2 s with_timeout budget from the plugin API, responding with Temperature: timed out instead of hanging xfetch.