Commit Graph

68 Commits

Author SHA1 Message Date
Michael Stapelberg
0b299f740d Fix trailing whitespaces, document cpu_usage in manpage 2011-05-06 13:17:26 +02:00
Peter Bui
8b18e8e33c Add print_cpu_usage 2011-05-06 13:13:11 +02:00
Michael Stapelberg
0a13d30465 Also use the correct time for the ddate module 2011-04-22 01:10:40 +02:00
Michael Stapelberg
4fa8a4e0ab get time at the beginning of the loop 2011-04-21 20:50:14 +02:00
Michael Stapelberg
4ec02bea7b implement the 'path' option for cpu temperature 2011-01-06 18:22:46 +01:00
Michael Stapelberg
39feebea4d Cache the result of the DNS query also if there is no IPv6 connectivity (Thanks dothebart) 2011-01-03 15:00:42 +01:00
Michael Stapelberg
cf09102433 Use kill(pid, 0) to check if the process is alive 2010-11-28 16:45:34 +01:00
Michael Stapelberg
75670ba64a battery: use POWER_NOW if CURRENT_NOW is not available
CURRENT_NOW was deprecated for some battery types in recent linux kernels
(2.6.36)
2010-11-03 14:08:22 +01:00
Michael Stapelberg
af5fd7b77e Implement displaying the wireless connection speed (Thanks Felicitus)
Based on a patch by Felicitus.
2010-09-22 19:59:48 +02:00
Michael Stapelberg
fac05bf4e8 Bugfix: Correctly check for interface up/down-status (Thanks docsteel) 2010-07-21 11:01:37 +02:00
Michael Stapelberg
eb46963d4c Implement ALSA volume support 2010-07-20 19:33:41 +02:00
Axel Wagner
d8b6f03144 print_ddate(): Correctly seperate the St. Tibs String from the rest 2010-07-15 15:12:48 +02:00
Fernando Tarlá Cardoso Lemos
38337511e9 Support customized colors. 2010-07-04 21:52:43 +02:00
Fernando Tarlá Cardoso Lemos
570bc669b4 Don't leak skfd on errors. Don't spam stderr if the iface isn't present. 2010-06-30 10:49:40 +02:00
Fernando Tarlá Cardoso Lemos
1e0ad8d251 Evaluate wireless quality average. Fix dBm calculations. 2010-06-25 11:02:27 +02:00
Mirko Augsburger
28ba2ae892 disk_info: implement %avail 2010-06-25 01:24:26 +02:00
Michael Stapelberg
71f7166032 wireless: fix formats 2010-06-25 00:04:11 +02:00
Michael Stapelberg
506b17de6e Display wireless quality as percentage 2010-06-24 23:59:44 +02:00
Fernando Tarlá Cardoso Lemos
29e9a99f06 Take into account the wireless quality maximum. 2010-06-24 23:57:36 +02:00
Michael Stapelberg
93ea987f84 ddate: Use static memory / only allocate format copy memory once 2010-06-19 12:50:03 +02:00
Axel Wagner
6298377bd4 Implemented a ddate-module 2010-06-19 12:44:43 +02:00
Axel Wagner
da595ee9f7 Do proper error handling in print_time() 2010-06-19 12:44:19 +02:00
Michael Stapelberg
01210258d0 Treat the interface as 'down' when it cannot be found in /proc/net/wireless (Thanks to Fabio Zanini) 2010-04-19 13:29:52 +02:00
Michael Stapelberg
c645340b1d Little style fixes for the last commit 2010-04-06 14:55:22 +02:00
Christian Dietrich
8edce05764 ipv6: provide format strings for ipv6 up and ipv6 down 2010-04-06 14:54:25 +02:00
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