diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2009-07-23 18:40:49 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2009-07-23 18:40:49 +0200 |
commit | a86361510c10ac5f19e2959d33e9ffb7f6c5099e (patch) | |
tree | 4b606ef03e6065f4d0eacdeed8ecac165d3f7ee1 /i3status.h | |
parent | 3de290742744de5f08be17d14f1dce377815e3f4 (diff) |
Implement battery status and thermal zones for FreeBSD (patch by Baptiste Daroussin)
Diffstat (limited to 'i3status.h')
-rw-r--r-- | i3status.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 }; |