From 0eeded8bc013857a5e8a2efbc20002a22502897e Mon Sep 17 00:00:00 2001 From: Scott Tincman Date: Tue, 13 Nov 2012 20:29:55 -0500 Subject: DragonFlyBSD support added --- include/i3status.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/i3status.h') 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" -- cgit v1.2.3