From c6cc1db4d905972f1fab87a7febb91d1af544547 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Sat, 17 Jun 2023 05:22:04 -0400 Subject: [PATCH] Update temperature module with hwmon paths --- dot_config/waybar/config.tmpl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dot_config/waybar/config.tmpl b/dot_config/waybar/config.tmpl index c476c63..b9a2b5c 100644 --- a/dot_config/waybar/config.tmpl +++ b/dot_config/waybar/config.tmpl @@ -93,9 +93,11 @@ "temperature": { {{- if eq .chezmoi.hostname "helix" }} - "thermal-zone": 0, "hwmon-path": "/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon4/temp1_input", "critical-threshold": 90, +{{- else if eq .chezmoi.hostname "hydrus" }} + "hwmon-path": "/sys/devices/platform/nct6775.656/hwmon/hwmon1/temp2_input", + "critical-threshold": 90, {{- else }} // "thermal-zone": 2, // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", @@ -185,7 +187,6 @@ ], "modules-right": [ - "backlight", "network", "cpu", "memory", @@ -241,9 +242,17 @@ }, "temperature": { +{{- if eq .chezmoi.hostname "helix" }} + "hwmon-path": "/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon4/temp1_input", + "critical-threshold": 90, +{{- else if eq .chezmoi.hostname "hydrus" }} + "hwmon-path": "/sys/devices/platform/nct6775.656/hwmon/hwmon1/temp2_input", + "critical-threshold": 90, +{{- else }} // "thermal-zone": 2, // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input", // "critical-threshold": 80, +{{- end }} // "format-critical": "{temperatureC}°C {icon}", "format": "{temperatureC}°C {icon}", "format-icons": ["", "", ""]