From c6e9fc84c6a7213b31d9e2790ea36d42ee10e809 Mon Sep 17 00:00:00 2001 From: Arnaud Degroote Date: Sun, 6 Oct 2013 21:18:53 +0000 Subject: Add support for cpu temperature on NetBSD (using envsys(4)) --- include/i3status.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/i3status.h b/include/i3status.h index 5d8d27b..d0361d1 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -33,6 +33,9 @@ enum { O_DZEN2, O_XMOBAR, O_I3BAR, O_TERM, O_NONE } output_format; #elif defined(__OpenBSD__) /* Default to acpitz(4) if no path is set. */ #define THERMAL_ZONE "acpitz%d" +#elif defined(__NetBSD__) +/* Rely on envsys(4). The key of the sensor is generally cpu%d temperature */ +#define THERMAL_ZONE "cpu%d temperature" #endif #if defined(__FreeBSD_kernel__) && defined(__GLIBC__) -- cgit v1.2.3