diff --git a/resources/config b/resources/config index 70c1679..312a265 100644 --- a/resources/config +++ b/resources/config @@ -48,7 +48,7 @@ "format": "{}% " }, "temperature": { - "thermal-zone": 2, + // "thermal-zone": 2, // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", "critical-threshold": 80, // "format-critical": "{temperatureC}°C ", diff --git a/src/modules/temperature.cpp b/src/modules/temperature.cpp index 3fc66b9..8311f5c 100644 --- a/src/modules/temperature.cpp +++ b/src/modules/temperature.cpp @@ -7,7 +7,7 @@ waybar::modules::Temperature::Temperature(const std::string& id, const Json::Val file_path_ = config_["hwmon-path"].asString(); } else { auto zone = - config_["thermal-zone"].isInt() ? config_["thermal-zone"].asInt() : 1; + config_["thermal-zone"].isInt() ? config_["thermal-zone"].asInt() : 0; file_path_ = fmt::format("/sys/class/thermal/thermal_zone{}/temp", zone); }