diff options
author | Scott Tincman <sctincman@gmail.com> | 2012-11-13 20:29:55 -0500 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2012-11-15 12:31:17 +0100 |
commit | 0eeded8bc013857a5e8a2efbc20002a22502897e (patch) | |
tree | 340c1c11296923acbf2cc3b28c3299e8cb7730fb /include | |
parent | 2f20400d7af06d1a283bf727ce7af27f68f255f5 (diff) |
DragonFlyBSD support added
Diffstat (limited to 'include')
-rw-r--r-- | include/i3status.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/i3status.h b/include/i3status.h index 559df9e..09394bd 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -18,10 +18,14 @@ enum { O_DZEN2, O_XMOBAR, O_I3BAR, O_NONE } output_format; #define THERMAL_ZONE "/sys/class/thermal/thermal_zone%d/temp" -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__) /* this needs the coretemp module to be loaded */ +#if defined(__DragonFly__) +#define THERMAL_ZONE "hw.sensors.cpu%d.temp0" +#else #define THERMAL_ZONE "dev.cpu.%d.temperature" +#endif #define BATT_LIFE "hw.acpi.battery.life" #define BATT_TIME "hw.acpi.battery.time" #define BATT_STATE "hw.acpi.battery.state" |