Go to file
Alexander Vasarab b26b118d76 Fix NetBSD CPU temp gauge bug
This patch fixes a bug in which multiple (conflicting) CPU temps may be
included in the output for the "cpu temperature" module.

The bug is due to the way that the code parsed the envsys(4)-returned data,
and would manifest itself on x86-based NetBSD machines, since those use
cputemp(4) as well as acpitz(4), thereby creating multiple envsys(4) entries
with identical descriptions but which refer to different physical sensors.

Instead of matching the description attribute of each device returned by
envsys(4) against the target format, this patch throws away non-matching keys
in the first instruction inside the dict walk. This has the benefit of sparing
unnecessary CPU cycles, and preventing other sensors from being included
erroneously.

Additionally, the THERMAL_ZONE format is now joined with OpenBSD in that it
uses acpitz(4) explicitly. This is prefered since it is much older (dating
back to NetBSD 2.0), and does not exclude x86-based users (as with cputemp(4)).
2014-04-30 09:28:09 +02:00
contrib contrib: fix premature insetion of status message into JSON 2013-02-27 01:20:56 +01:00
include Fix NetBSD CPU temp gauge bug 2014-04-30 09:28:09 +02:00
man disk: Colorize output when below given threshold 2014-03-09 22:57:19 +01:00
src Fix NetBSD CPU temp gauge bug 2014-04-30 09:28:09 +02:00
yajl-fallback/yajl add yajl compat code 2012-04-08 14:05:47 +02:00
.gitignore Breaks configfiles! Major refactoring of i3status, see below 2009-10-11 22:14:29 +02:00
CHANGELOG update CHANGELOG 2014-01-05 12:17:18 +01:00
i3status.c Avoid unnecessary string duplication 2014-03-15 18:00:54 +01:00
i3status.conf default config: show %avail disk space instead of %free 2013-11-16 10:11:25 +01:00
LICENSE Separate license into file LICENSE 2009-10-15 20:44:24 +02:00
Makefile make release: install the README file (Thanks myou) 2014-02-19 22:58:30 +01:00
README README: refer to cr.i3wm.org for patches 2013-02-10 15:17:15 +01:00

 ┌────────────────────────────┐
 │ Description                │
 └────────────────────────────┘

i3status is a small program (about 1500 SLOC) for generating a status bar for
i3bar, dzen2, xmobar or similar programs. It is designed to be very efficient by
issuing a very small number of system calls, as one generally wants to update
such a status line every second. This ensures that even under high load, your
status bar is updated correctly. Also, it saves a bit of energy by not hogging
your CPU as much as spawning the corresponding amount of shell commands would.

 ┌────────────────────────────┐
 │ Development                │
 └────────────────────────────┘

i3status has the following dependencies:
 • libconfuse-dev
 • libyajl-dev
 • libasound2-dev
 • libiw-dev
 • libcap2-bin (for getting network status without root permissions)
 • asciidoc (only for the documentation)

On debian-based systems, the following line will install all requirements:
apt-get install libconfuse-dev libyajl-dev libasound2-dev libiw-dev asciidoc libcap2-bin

 ┌────────────────────────────┐
 │ Upstream                   │
 └────────────────────────────┘

i3status is developed at
  http://code.i3wm.org/i3status

You may clone the git-repository using
  git clone git://code.i3wm.org/i3status

Please submit patches at
  http://cr.i3wm.org/

 ┌────────────────────────────┐
 │ Compilation                │
 └────────────────────────────┘

Compiling is done with the usual make-line
  make && sudo make install