Michael Stapelberg
3eec92d504
Colorize ethernet output (patch by Peter Johnson)
2010-02-14 12:49:03 +01:00
Michael Stapelberg
9c14b7a527
wireless: display no IP instead of (null)
2010-01-26 14:25:37 +01:00
Michael Stapelberg
c166d2e2d3
get_ip_address: return NULL instead of down
2010-01-26 14:25:21 +01:00
Axel Beckert
a820cf4ce0
Fix FTBFS on kFreeBSD and Hurd: libiw is Linux-only
2010-01-11 23:07:30 +01:00
Michael Stapelberg
6823fbf055
disk: also round when printing TB (Thanks Merovius)
2010-01-10 11:07:21 +01:00
Michael Stapelberg
ced822f461
ipv6: cache the result of the DNS query only, the socket needs to be re-created every time
2010-01-04 11:16:59 +01:00
Michael Stapelberg
37882cee88
ipv6: reuse the existing socket for further lookups
...
This reduces network overhead if you do not run a local caching
nameserver.
2010-01-01 22:01:57 +01:00
Michael Stapelberg
998109a653
Remove trailing whitespace
2009-12-20 18:48:01 +01:00
André-Patrick Bubel
a5594ee17f
Implemented showing the time when battery is empty
2009-12-20 18:48:01 +01:00
Michael Stapelberg
9307ff9d13
The load values represent 1,5,15 min, not 5,10,15 min (Thanks Chris)
2009-12-13 13:59:59 +01:00
Michael Stapelberg
013fdece8d
Change output format to be a config option instead of a compile time define
2009-10-24 13:27:02 +02:00
Michael Stapelberg
e4bd4bd2a3
battery: split up %remaining into %percentage and %remaining (Thanks shatter)
2009-10-16 22:21:05 +02:00
Michael Stapelberg
5fc2a8a38e
Actually use the format string for the battery (Thanks shatter)
2009-10-16 22:07:42 +02:00
Michael Stapelberg
da8cb9ebfc
Implement option to use the last full capacity instead of the design capacity
2009-10-16 20:37:41 +02:00
Michael Stapelberg
8a66289702
Obey format for run_watches
2009-10-16 20:31:20 +02:00
Michael Stapelberg
b88a55ffa6
Implement format_up/format_down for ethernet
2009-10-16 20:14:40 +02:00
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