Commit Graph

450 Commits

Author SHA1 Message Date
Jasper Lievisse Adriaanse
e91891729e Use the maximum rssi, not the scaled percentage for the signal level.
This makes the value for %signal match ifconfig(8) in all cases.
2015-04-04 10:56:58 +02:00
Michael Stapelberg
9abe0a9d59 Merge pull request #7 from Watcom/master
PulseAudio support for volume input
2015-04-03 14:45:40 -07:00
Watcom Hecht
1710c206cf PulseAudio support for volume input 2015-04-03 17:57:40 -03:00
Michael Stapelberg
d00a0e087c Merge pull request #17 from chrko/format_down
Adding format_down option to path_exists and run_watch
2015-04-02 13:42:47 -07:00
Christian Kohlstedde
5c094a5493 Adding the option "format_down" to path_exists and run_watch.
This fixes #1.
2015-04-02 22:31:06 +02:00
Michael Stapelberg
f3ccd8ac7d Merge pull request #16 from He-Ro/patch-1
Fix spacing
2015-04-02 13:14:36 -07:00
Michael Stapelberg
e58cf99d85 Merge pull request #18 from jasperla/sched_h
sys/dkstat.h has been removed from OpenBSD and it's functionality actual...
2015-04-02 13:13:34 -07:00
Jasper Lievisse Adriaanse
ae50bbe257 sys/dkstat.h has been removed from OpenBSD and it's functionality actually lived/lives in sys/sched.h 2015-04-02 20:31:17 +02:00
Hendrik R
e192090f4c Fix spacing 2015-04-02 11:56:47 +02:00
Michael Stapelberg
018702e01e fix invalid forward declaration 2015-04-02 09:06:07 +02:00
Michael Stapelberg
40d29483c0 Merge pull request #15 from Watcom/refactor
refactoring to avoid code duplication
2015-03-29 22:56:50 +02:00
Watcom Hecht
b12e11237b refactoring to avoid code duplication 2015-03-29 17:05:26 -03:00
Michael Stapelberg
be583ea739 Merge pull request #13 from bapt/master
Fixes for FreeBSD
2015-03-25 08:56:00 +01:00
Baptiste Daroussin
c9dc67e054 print_cpu_usage: Fix warnings on non linux
Move linux variable under LINUX boundaries
2015-03-25 08:19:13 +01:00
Baptiste Daroussin
0b882f36b5 print_eth_info: fix warnings on FreeBSD 2015-03-25 08:18:23 +01:00
Baptiste Daroussin
eaf5d6bf80 print_volume: don’t return, complete the buffer first
Follow the changed done for Linux on f0cd726b
2015-03-25 08:13:47 +01:00
Baptiste Daroussin
e9fc4c1c06 Fix build on FreeBSD 2015-03-25 08:03:23 +01:00
Michael Stapelberg
bf223d9b61 Merge pull request #12 from Airblader/feature-tztime-instance
Pass the "instance" JSON property key for tztime blocks
2015-03-23 22:12:21 +01:00
Ingo Bürk
0a84bcb74a Pass the "instance" JSON property key for tztime blocks
fixes #10
2015-03-23 21:42:52 +01:00
Michael Stapelberg
3f9d4c6d89 Merge pull request #11 from AloisMahdal/man_bat_typo
Fix typo in battery example
2015-03-23 19:24:27 +01:00
Alois Mahdal
68623ee0a4 Fix typo in battery example 2015-03-23 19:12:44 +01:00
Michael Stapelberg
523f7b269b release v2.9 2015-03-22 17:58:40 +01:00
Michael Stapelberg
5cdbb3045b Merge pull request #8 from azuwis/master
Add contrib/net-speed, a reimplementation of contrib/measure-net-speed.bash
2015-03-16 22:47:51 +01:00
Michael Stapelberg
eb13374063 add .travis.yml 2015-03-16 19:35:22 +01:00
Michael Stapelberg
320a0522a3 add CONTRIBUTING file 2015-03-16 10:02:22 +01:00
Michael Stapelberg
d74e904bf4 clang-format-3.5 -i **/*.[ch], update modeline
From here on, we’ll use clang-format to automatically format the source.

This has worked well in i3, so we are introducing it for i3status.
2015-03-16 10:01:07 +01:00
Zhong Jianxin
519d7f6d63 Add contrib/net-speed
A reimplementation of contrib/measure-net-speed.bash.

- Single script
- Compatible with most POSIX shells, tested with bash, dash, busybox ash
- Auto detect interfaces
- Does not write temp files
2015-03-16 11:31:33 +08:00
Michael Stapelberg
6996f0a4a3 Merge pull request #3 from chrko/master
Modify print_disk_info. Now there is no output if the path is no mountpoint.
2015-03-01 07:42:59 -08:00
Christian Kohlstedde
562a879f7c removing Yoda-Style
adding some words in the manpage
2015-02-22 18:25:12 +01:00
Christian Kohlstedde
85bb373095 Adding optional configuration option to "print_disk_info". 2015-02-18 23:43:25 +01:00
Christian Kohlstedde
f7b25a15dd Excluding the code on BSD systems. 2015-02-18 22:11:57 +01:00
Christian Kohlstedde
014e66563f Make the code more readable. 2015-02-18 22:11:16 +01:00
Christian Kohlstedde
e70ea4247f Modify print_disk_info. Now there is no output if the path is no mountpoint. 2015-02-18 16:53:24 +01:00
Michael Stapelberg
df8d69a995 Merge pull request #2 from pfsmorigo/master
Add i3status and man/i3status.1 to ignore list.
2015-02-08 13:04:34 +00:00
Paulo Flabiano Smorigo
1513b230a0 Add i3status and man/i3status.1 to ignore list. 2015-02-07 22:17:59 -02:00
Michael Stapelberg
938e25e4ba make github the canonical i3status repository 2014-12-26 21:13:52 +01:00
Alexander Monakov
05273b03fd Avoid use of uninitialized variable in print_battery_info
The boolean flag 'watt_as_unit' may be used without being initialized if the
configured battery path does not contain expected statistics (for example if
it is misconfigured and points to AC adapter info or simply an unrelated file).

Even though it does not cause ill effects, it causes a warning (true positive)
when running i3status under Valgrind.  Initialize the variable to make code
well-defined.
2014-12-22 09:19:40 +01:00
Alexander Monakov
3818dabceb Allocate and expose per-instance pointers for plugins 2014-12-10 19:58:54 +01:00
Michael Stapelberg
b219f47f39 support the special interface name _first_ for ethernet/wireless
Since we have deterministic device names in Linux, these strings are a
much better default in the i3status config than "eth0" and "wlan0" (what
we used before).
2014-12-07 15:17:31 +01:00
Tuomas Tynkkynen
7bdfb5b72e i3status: Support %frequency for wireless interfaces
In many public WiFis, the 2.4 GHz wireless band is slow due to
congestion, while there is still plenty of bandwidth available on the
5 GHz area. So when debugging wireless issues it's convenient to have
i3status display the frequency of the access point that the interface is
connected to.

This patch adds support for the %frequency tag for wireless interfaces,
so for example:
    format_up = "WLAN: %essid - %quality / %frequency"
would result in:
    "WLAN: eduroam - 074% / 2.4 GHz"
2014-12-03 08:14:21 +01:00
Cyril Andreatta
f817e3b4c0 Updated the man page for i3status with information about the new individual strings that can be used for each battery status. 2014-10-07 18:52:02 +02:00
Cyril Andreatta
8e22f3839d Created three individual Strings for each battery status (charging, dicharching, full)
Replaced hard coded status strings (CHR, BAT, FULL) in
print_battery_info.c with user defined strings. The new strings are
'status_chr', 'status_bat' and 'status_full' and can be set in i3status.conf.
e.g.
status_chr = " CHR"

If any of the new status strings is omitted the standard strings (CHR,
BAT, FULL) are used.
2014-10-07 18:52:01 +02:00
Michael Stapelberg
8a57208b1d Bugfix: fix wrong color tags with xmobar
fixes #1353
2014-08-26 20:54:04 +02:00
Klemen Košir
fcd95c2408 Fix battery indicator on systems without POWER_SUPPLY_VOLTAGE_NOW.
In my case, the voltage variable would stay initialized as -1,
which caused the calculation of battery charge percentage to be
incorrect (I would get the message that there is no battery present
or even -0% charge).

I have no idea how this would affect other systems, since I don't
have a chance to test this.
2014-08-25 19:36:02 +02:00
Robin Hahling
d73ca2fa82 Fix Dragonfly BSD CPU temperature gauge
This patch fixes CPU temperature gauge for DragonFly BSD.
Commit 0eeded8 assumed that fetching CPU temperature for DragonFly
BSD was similar to that of FreeBSD but this assumption is false.
2014-08-08 11:57:01 +02:00
Robin Hahling
a85bd9b930 Fix CFLAGS and LDFLAGS for DragonFly and FreeBSD 2014-08-01 13:01:05 +02:00
Bas Pape
e4b854543a Clarify color_separator relation to output_format 2014-06-08 13:56:24 +02:00
Michael Stapelberg
2158128ea0 Use the absolute values for (dis)charging rates
Apparently some notebooks report a negative current, whereas most don’t.

fixes #1249
2014-05-31 14:01:18 +02:00
Michael Stapelberg
653505a3bb run_watch: check all matching pid files (until first valid one) (Thanks brotbart)
fixes #1245
2014-05-15 21:51:01 +02:00
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