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
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
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
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
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
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
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
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
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
Jasper Lievisse Adriaanse
2847f83402
Implement displaying battery status on OpenBSD.
2012-04-30 13:00:49 +02:00
Jasper Lievisse Adriaanse
1c3fb04fb9
Implement basic fetching of cpu temperature on OpenBSD.
2012-04-30 13:00:46 +02:00
Jasper Lievisse Adriaanse
aabac78fd0
Print the volume on OpenBSD too. Add missing library to Makefile accordingly.
2012-04-29 11:13:29 +02:00
Jasper Lievisse Adriaanse
688d300646
Fix disk usage on OpenBSD.
2012-04-29 11:13:14 +02:00
Jasper Lievisse Adriaanse
75a741484e
Fix CPU usage on OpenBSD. Currently only takes the first cpu into account, but works fine otherwise.
2012-04-29 11:13:06 +02:00
Jasper Lievisse Adriaanse
6eac8bee58
Fix include order; fixes build on OpenBSD.
2012-04-28 10:08:37 +02:00
Michael Stapelberg
1b3aa40485
add yajl compat code
2012-04-08 14:05:47 +02:00
Michael Stapelberg
12b1bfa9b8
Properly output JSON with libyajl
2012-03-25 22:05:00 +02:00
Michael Stapelberg
d5b4c8e368
Implement the i3bar JSON protocol
...
This hardcodes all the JSON parts. Strings are not properly escaped currently.
The best/easiest way to fix this is by actually using libyajl.
2012-02-16 23:30:54 +00:00
Baptiste Daroussin
be61907ad5
FreeBSD: fix disk usage print
2011-12-09 23:39:01 +00:00
Michael Stapelberg
3471ff39f8
battery: implement "path" option for batteries with non-standard paths
2011-11-26 18:26:38 +00:00
Mateusz Poszwa
42e61c4f6e
fix parentheses in cc1457c4f0
2011-08-29 16:06:40 +02:00
Michael Stapelberg
7870fdae86
initialize variables to fix compiler warning
2011-08-26 00:33:56 +02:00
Connor Lane Smith
cc1457c4f0
make modules more resilient to failure
2011-08-25 23:27:10 +02:00
Michael Stapelberg
319664ce43
only compile print_cpu_temperature if THERMAL_ZONE is available
...
Fixes FTBFS on hurd-i386
2011-07-24 23:17:34 +02:00
Baptiste Daroussin
d87a735be5
Add simple volume support on FreeBSD
2011-07-24 02:12:23 +02:00
Baptiste Daroussin
f288fd2e4f
Add support for cpu usage on FreeBSD
2011-07-24 02:12:22 +02:00
Baptiste Daroussin
342f942f15
Support wifi on FreeBSD
2011-07-24 02:12:20 +02:00
Axel Beckert
5e276db583
Fix FTBFS on kFreeBSD
2011-07-21 22:02:34 +02:00
Michael Stapelberg
2e621680c4
slurp(): null-terminate buffer (Thanks mist)
2011-07-13 19:17:24 +02:00