From 6d2dcd8ac75944ed539d8ac5dd09237bf64fb532 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 14 Mar 2019 14:01:10 +0100 Subject: [PATCH] fix(temperature): default thermal zone --- resources/config | 2 +- src/modules/temperature.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/config b/resources/config index 70c16795..312a2657 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 3fc66b99..8311f5c7 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); }