diff --git a/battery.c b/battery.c index 4bcaac4..2b2fc83 100644 --- a/battery.c +++ b/battery.c @@ -2,10 +2,25 @@ #include #include #include +#if defined(__FreeBSD__) +#include +#endif // maximum number of batteries supported #define MAXBAT 2 +// const char *icon[] = { FIXME: sometimes do now show up on freebsd kitty +// "\uf58d", /* 0% */ +// "\uf579", "\uf57a", "\uf57b", "\uf57c", "\uf57d", /* 50% */ +// "\uf57e", "\uf57f", "\uf580", "\uf581", "\uf578", /* 100% */ +// }; + +const char *icon[] = { + "󰂎", /* 0% */ + "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", /* 50% */ + "󰁿", "󰂀", "󰂁", "󰂂", "󰁹", /* 100% */ +}; + typedef enum { CHARGED = 0, DISCHARGING = 1, @@ -14,11 +29,6 @@ typedef enum { UNKNOWN = -1 } State; -const char *icon[] = { - "\uf58d", /* 0% */ - "\uf579", "\uf57a", "\uf57b", "\uf57c", "\uf57d", /* 50% */ - "\uf57e", "\uf57f", "\uf580", "\uf581", "\uf578", /* 100% */ -}; const char separator[] = " "; // space between battery indicators void battery_state(int *nbats, int bat[], State state[]) { -- libgit2 0.21.2