Commit Graph

323 Commits

Author SHA1 Message Date
Jasper Lievisse Adriaanse
ed03d2450c i3status - Handle down wireless interfaces just like ethernet interfaces (e.g. colors) 2012-10-16 10:48:29 +02:00
Deiz
04dc34f27d Skip a day in the Discordian calendar when St. Tib's Day has passed 2012-10-16 09:25:38 +02:00
Jasper Lievisse Adriaanse
794151cfe7 Implement %essid and %signal for wireless on OpenBSD. 2012-10-10 08:24:29 +02:00
Jasper Lievisse Adriaanse
11c4ab9870 Implement %speed for Ethernet on OpenBSD. 2012-10-10 08:24:04 +02:00
Jasper Lievisse Adriaanse
8da0452d2c Various fixes for the OpenBSD section of the battery backend.
- fix the battery status printing in %status.
- fix remaining time when we're charging.
- use colors to indicate battery status.
- small cleanups.
2012-10-10 08:23:14 +02:00
Michael Stapelberg
7dcc961fa2 Bugfix: Move the pbval definition outside the ifdef (Thanks XTaran)
This fixes compilation on !linux
2012-10-03 15:12:49 +02:00
Michael Stapelberg
266734418c remove debian/, packaging now lives on alioth 2012-10-03 14:13:33 +02:00
Michael Stapelberg
c705b11d44 include contrib/ in release tarballs 2012-10-03 13:44:34 +02:00
Michael Stapelberg
69cd4fe003 update changelog and manpage for 2.6 2012-10-03 13:42:01 +02:00
Michael Stapelberg
5c615f7074 Save the DNS lookup for K.root-servers.net (Thanks barfoos)
This avoids running into a timeout when there is no connectivity on
i3status startup.
2012-09-29 00:08:56 +02:00
Simon Elsbrock
59d52ad787 print_battery.c: do END_COLOR only if START_COLOR was used 2012-09-05 23:28:31 +02:00
Simon Elsbrock
1c4677a644 turn volume into red if muted
fixes #743
2012-09-05 23:28:27 +02:00
Simon Elsbrock
674d28e192 modify START_COLOR macro variable naming
Rename val to _val to prevent shadowing warnings due to its common
naming.
2012-09-05 23:28:17 +02:00
Michael Stapelberg
d6b8a4efc1 introduce percentages for all values, document them 2012-08-31 14:16:58 +02:00
gereon
50ad0334f6 adding percentage format string for disk info module
explicit cast to double, changed format string to percentage
2012-08-31 14:07:46 +02:00
Piotr Domagalski
fa4e9cdfb3 Eat unnecessary space from the battery format str.
If the battery is not discharging it may be not possible to give information on
remaining time or consumption. The resulting strings (%remaining, %consumption,
%emptytime) are empty then. But because they are in the format string, the
output string contains unnecessary spaces in this case.

This commit makes i3status strip these spaces.
2012-08-31 12:08:24 +02:00
Simon Elsbrock
68f438ec9e add additional battery threshold type "percentage"
The battery threshold can now be configured as type "time" or
"percentage", but defaults to "time" to prevent unexpected behavior.
Also, low_threshold was set to a more reasonable default of 30.
2012-08-28 18:05:11 +02:00
Philipp Schaefer
3baf27bf1d use correct units for battery calculation 2012-08-13 01:44:40 +02:00
Michael Stapelberg
cfaeba4df1 Bugfix: non-i3bar formats always used color_bad (Thanks hongy19)
fixes #772
2012-08-13 01:35:07 +02:00
Valentin Haenel
c69da4c4f5 contrib: python version of the wrapper 2012-08-12 17:59:07 +02:00
Michael Stapelberg
b61f70b05f Import measure-net-speed bash scripts to contrib/ 2012-08-04 21:31:06 +02:00
Michael Stapelberg
dea8703aba Bugfix: Properly skip "consumption", not "consumptionbuf" (Thanks mloskot)
Fixes #752
2012-07-12 08:16:40 +02:00
Michael Stapelberg
141f45e792 small style fix in src/print_battery_info.c (move comment) 2012-07-11 19:11:29 +02:00
Marcel Hellwig
1271ff2aa4 Calculate the consumption if POWER_SUPPLY_POWER_NOW does not exist in uevent 2012-07-11 19:11:08 +02:00
Lars Kumbier
f5c96008b0 colorful ipv6 status message 2012-07-10 20:37:54 +02:00
Michael Stapelberg
eec9629eb8 README: fix trailing whitespace, add libcap2-bin, more unicode 2012-07-10 20:36:40 +02:00
Lars Kumbier
3fef39d3f5 Some information on building i3status from source 2012-07-10 20:33:28 +02:00
Michael Stapelberg
7efb5f9103 clarify the unit of the power consumption and reformat that paragraph 2012-07-09 15:13:46 +02:00
Marcel Hellwig
0165709fc1 Added new feature - consumption - to documentation 2012-07-09 15:13:08 +02:00
Marcel Hellwig
c01e87b269 Added consumption to battery info 2012-07-09 15:13:05 +02:00
Marcel Hellwig
ccc31f0b80 Added condition, for red color, when battery-time is low, namely battery is discharging 2012-07-09 15:12:43 +02:00
Mateusz Poszwa
859a7690a6 Avoid division by zero when calculating CPU usage. 2012-06-28 12:05:01 +02:00
Mateusz Loskot
10ed9efff4 Moved translation of wireless status code to text from multiple places into single BATT_STATUS_NAME macro. It simplifies customisation of the hard-wired status text. 2012-06-11 12:00:24 +02:00
Michael Stapelberg
2e3490141d add a small perl example wrapper script for i3status’s JSON output 2012-06-10 19:42:53 +02:00
Michael Stapelberg
850f6720b5 rename threshold to low_threshold and document it properly 2012-05-25 09:57:03 +02:00
Simon Elsbrock
7c02c10b72 colorize battery output if remaining time below threshold 2012-05-25 09:53:49 +02:00
Michael Stapelberg
7a77472a81 battery info: output errors in JSON in every case
This hopefully fixes http://bugs.i3wm.org/707
2012-05-15 12:30:23 +02:00
Michael Stapelberg
1dfb3128b0 update changelog 2012-05-11 22:38:10 +02:00
Michael Stapelberg
296eb5e706 Error handling: Never output null as full_text (JSON), prefix messages with i3status (Thanks Artemis)
The former made i3bar crash, the latter is helpful for debugging.
2012-05-09 18:56:57 +02:00
Michael Stapelberg
88b157cc8a Remove cpu_temperature from the default config
It contradicts our philosophy and doesn’t work on many systems, so don’t use it
in the default config.
2012-05-09 18:39:59 +02:00
Michael Stapelberg
4ef47541b9 Improve error message when the cpu temperature cannot be read 2012-05-09 18:39:41 +02:00
Michael Stapelberg
4ddd115af8 Use (void) instead of () for functions without args (Thanks fernandotcl)
See also:
http://article.gmane.org/gmane.linux.kernel/1268792

The C compiler will handle (void) as "no arguments" and () as "variadic
function" (equivalent to (...)) which might lead to subtle errors.
2012-05-07 08:28:04 +02:00
Jasper Lievisse Adriaanse
6b447f7f1b - Remove some superfluous #ifdef clutter - If we're compiling on !(Linux or FreeBSD), just emit a '?'. 2012-05-04 16:10:19 +02:00
Jasper Lievisse Adriaanse
4d719ff81f Update wrt. recent OpenBSD changes. 2012-05-04 16:07:43 +02:00
Michael Stapelberg
dae6575392 add CHANGELOG to release tarball 2012-05-04 16:05:50 +02:00
Michael Stapelberg
a25eb4f5a6 makefile: include yajl-fallback in release tarballs 2012-05-04 12:31:28 +02:00
Ewgenij Starostin
b5f89c83cc Handle %d with non-default CPU temperature path. 2012-05-04 12:29:02 +02:00
Michael Stapelberg
7dc10f4205 Fix harmless format string mistake (Thanks loblik) 2012-05-02 17:42:51 +02:00
Michael Stapelberg
911ba1db7b add CHANGELOG file 2012-05-02 17:40:55 +02:00
Michael Stapelberg
47e2bc273d bump copyright 2012-05-02 17:29:28 +02:00