i3status (2.3-1) unstable; urgency=low
+ [ Michael Stapelberg ]
* config search order is now ~/.i3status.conf, ~/.config/i3status/config,
/etc/i3status/config, then /etc/xdg/i3status/config
* battery: use POWER_NOW if CURRENT_NOW is not available (linux >= 2.6.36)
* Bugfix: respect locale settings (for %c in date format)
* debian: use [linux-any] in dependencies (Closes: #634491)
- -- Michael Stapelberg <michael@stapelberg.de> Tue, 19 Jul 2011 15:35:30 +0200
+ [ Axel Beckert ]
+ * Fix FTBFS on kfreebsd.
+
+ -- Michael Stapelberg <michael@stapelberg.de> Thu, 21 Jul 2011 21:22:54 +0200
i3status (2.2-1) unstable; urgency=low
Priority: extra
Maintainer: Michael Stapelberg <michael@stapelberg.de>
DM-Upload-Allowed: yes
-Build-Depends: debhelper (>= 5), libiw-dev [linux-any], libconfuse-dev, asciidoc, xmlto, libcap2-bin, libasound2-dev
+Build-Depends: debhelper (>= 5), libiw-dev [linux-any], libconfuse-dev, asciidoc, xmlto, libcap2-bin [linux-any], libasound2-dev [linux-any]
Standards-Version: 3.9.2
Homepage: http://i3wm.org/i3status
};
TAILQ_HEAD(handles_head, mixer_hdl) cached = TAILQ_HEAD_INITIALIZER(cached);
-#endif
static void free_hdl(struct mixer_hdl *hdl) {
free(hdl->device);
free(hdl->mixer);
free(hdl);
}
+#endif
void print_volume(const char *fmt, const char *device, const char *mixer, int mixer_idx) {
/* Printing volume only works with ALSA at the moment */
-#ifndef LINUX
- return;
-#endif
+#ifdef LINUX
/* Check if we already opened the mixer and get the handle
* from cache if so */
bool found = false;
walk += strlen("volume");
}
}
+#endif
}
#ifdef LINUX
#include <iwlib.h>
+#else
+#define IW_ESSID_MAX_SIZE 32
#endif
#include "i3status.h"
close(skfd);
return 1;
#endif
+ return 0;
}
void print_wireless_info(const char *interface, const char *format_up, const char *format_down) {
walk += strlen("ip");
}
+#ifdef LINUX
if (BEGINS_WITH(walk+1, "bitrate")) {
char buffer[128];
printf("%s", buffer);
walk += strlen("bitrate");
}
+#endif
}
(void)printf("%s", endcolor());