diff options
author | Arnaud Degroote <degroote@NetBSD.org> | 2013-10-06 21:18:53 +0000 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-10-07 19:32:50 +0200 |
commit | c6e9fc84c6a7213b31d9e2790ea36d42ee10e809 (patch) | |
tree | 9d9145bbd3c8c6521937ecfdc62c5f16d722781b /include/i3status.h | |
parent | 32551729e886a7a6bae4cf53cadceb3079c6cac2 (diff) |
Add support for cpu temperature on NetBSD (using envsys(4))
Diffstat (limited to 'include/i3status.h')
-rw-r--r-- | include/i3status.h | 3 |
1 files changed, 3 insertions, 0 deletions
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__) |