X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3status.h;h=241307a2b73d3cf242b45cc2bfcfc2915839ed02;hb=a86361510c10ac5f19e2959d33e9ffb7f6c5099e;hp=5d42881182c8a1d7a21d639c5d2f479e2bbc15f3;hpb=3de290742744de5f08be17d14f1dce377815e3f4;p=i3%2Fi3status diff --git a/i3status.h b/i3status.h index 5d42881..241307a 100644 --- a/i3status.h +++ b/i3status.h @@ -20,6 +20,18 @@ generate(orderidx, name, function); \ } while (0) +#if defined(LINUX) + +#define THERMAL_ZONE "/sys/class/thermal/thermal_zone%d/temp" + +#elif defined(__FreeBSD__) + +#define THERMAL_ZONE "hw.acpi.thermal.tz%d.temperature" +#define BATT_LIFE "hw.acpi.battery.life" +#define BATT_TIME "hw.acpi.battery.time" +#define BATT_STATE "hw.acpi.battery.state" + +#endif typedef enum { CS_DISCHARGING, CS_CHARGING, CS_FULL } charging_status_t; enum { ORDER_RUN, ORDER_WLAN, ORDER_ETH, ORDER_BATTERY, ORDER_CPU_TEMPERATURE, ORDER_LOAD, ORDER_TIME, ORDER_IPV6, MAX_ORDER };