Commit Graph

427 Commits

Author SHA1 Message Date
Michael Stapelberg
cb9bab4255 Bugfix: Cast the integers to uint64_t *before* multiplying (Thanks msi)
This fixes problems on 32-bit computers.
2009-10-16 00:25:05 +02:00
Michael Stapelberg
c4c17294ad Cleanup disk "module" 2009-10-12 00:53:47 +02:00
Michael Stapelberg
783707906c Implement disk info (%free/%used/%total) 2009-10-11 23:27:26 +02:00
Michael Stapelberg
f947d0a446 Breaks configfiles! Major refactoring of i3status, see below
We finally switched to libconfuse for a configuration file format
which does not require much work for the programmer nor for the user.
Plus, it avoids the Not-Invented-Here syndrome of yet another config
file format.

Furthermore, as a consequence of providing format strings for every
"module" (ipv6, wireless, …), we directly print the output and thus
we needed to drop support for wmii. This allowed us to get rid of
quite some complexity.

Documentation about the new configuration file and options will
follow. This commit is the beginning of what will be i3status v2.0.
2009-10-11 22:14:29 +02:00
Michael Stapelberg
c4a3d64b38 Bugfix: close the filehandle when done 2009-10-01 18:18:46 +02:00
Michael Stapelberg
b2292e770e Implement getting the wireless ESSID
This adds a dependency for libiw
2009-10-01 17:43:32 +02:00
Michael Stapelberg
cdb450376e Bugfix: Don’t show colors in wireless info if colors are disabled (Thanks shatter) 2009-09-26 13:26:13 +02:00
Michael Stapelberg
89ad3dbaa2 Don’t display an error message if getaddrinfo() fails for getting the IPv6 addr (Thanks Atsutane) 2009-09-26 13:24:36 +02:00
Atsutane
48e033598b Small improvement regarding readability if one hasn't an IPv6 address. 2009-09-11 23:05:54 +02:00
Michael Stapelberg
112512c546 Initialize order array with -1 to avoid printing duplicate lines (Thanks XTaran) 2009-09-01 23:43:31 +02:00
Axel Beckert
e565e313f7 Support for (Debian) GNU/kFreeBSD 2009-09-01 12:39:49 +02:00
Michael Stapelberg
bb52b40c8e Add support for xmobar
Use i3status-xmobar | xmobar -o -t "%StdinReader%" -c "[Run StdinReader]"
You might need to copy the default configuration to ~/.xmobarrc
2009-08-18 21:29:44 +02:00
Michael Stapelberg
f8be2d1b81 Return "no battery" instead of dying if a battery wasn’t found (Thanks Mirko) 2009-07-25 21:32:38 +02:00
Michael Stapelberg
94911d4cc3 Don’t perror("connect") when there most likely is no IPv6 connectivity 2009-07-25 21:23:39 +02:00
Michael Stapelberg
dd88448709 Bugfix: Use interface instead of eth_interface in get_ip_addr() 2009-07-23 20:47:52 +02:00
Michael Stapelberg
a86361510c Implement battery status and thermal zones for FreeBSD (patch by Baptiste Daroussin) 2009-07-23 18:40:49 +02:00
Michael Stapelberg
3de2907427 Remove unneeded struct 2009-07-22 19:01:57 +02:00
Michael Stapelberg
072cee2808 little fixes for FreeBSD 2009-07-22 18:51:55 +02:00
Michael Stapelberg
329a8994f7 Use the highest order actually used, not MAX_ORDER, for checking whether to flush (Thanks Mirko) 2009-07-22 18:39:41 +02:00
Michael Stapelberg
c9ab465cbb Implement getting the interface speed on FreeBSD, patch by Baptiste Daroussin 2009-07-22 18:36:01 +02:00
Michael Stapelberg
e56213db28 Free the addresses correctly 2009-07-22 18:30:16 +02:00
Michael Stapelberg
4a6deddf7b Obtain IP address in a portable way, patch by Baptiste Daroussin 2009-07-22 18:27:55 +02:00
Michael Stapelberg
bb50e22fd3 Use getloadavg() instead of using /proc, patch by Baptiste Daroussin 2009-07-22 00:09:32 +02:00
Michael Stapelberg
a1eda7b209 get_ipv6_addr: more documentation, use SOCK_DGRAM, reformat 2009-07-21 20:35:19 +02:00
Michael Stapelberg
230f3167b7 Add modelines and retab! all files 2009-07-21 20:26:53 +02:00
Michael Stapelberg
34ba9fa908 Correctly handle the order of items 2009-07-21 20:23:08 +02:00
Michael Stapelberg
6fda988f36 Use own files for each function, add get_ipv6_addr.c 2009-07-21 19:07:30 +02:00