summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@humppa.nl>2012-04-29 16:59:39 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-04-30 13:00:46 +0200
commit1c3fb04fb9c8d31a627ce0ad1b6ee4782e4ee610 (patch)
tree3304f29a28dbac26ea3529460b3a45433e1b79ca /include
parenta6cd2077419b28db905315ac0abe5705315d52c0 (diff)
Implement basic fetching of cpu temperature on OpenBSD.
Diffstat (limited to 'include')
-rw-r--r--include/i3status.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/i3status.h b/include/i3status.h
index ad54a14..a6d5fc6 100644
--- a/include/i3status.h
+++ b/include/i3status.h
@@ -26,6 +26,15 @@ enum { O_DZEN2, O_XMOBAR, O_I3BAR, O_NONE } output_format;
#define BATT_TIME "hw.acpi.battery.time"
#define BATT_STATE "hw.acpi.battery.state"
+#elif defined(__OpenBSD__)
+/*
+ * Due to the fact there are various ways to obtain a temperature reading, THERMAL_ZONE will need
+ * to be adjustable enough for those situations. As it can either be hw.sensors.cpu%d.temp0, or
+ * hw.sensors.acpitz%d.temp0 or even something different entirely within hw.sensors.%s.temp0.
+ * XXX: For now just check cpu%d.temp0. Adjust this later.
+ */
+#define THERMAL_ZONE "cpu%d"
+
#endif
#if defined(__FreeBSD_kernel__) && defined(__GLIBC__)