Marcelo Cerri
dbf3adc81d
add good, degraded and bad colors per module
...
This commit adds support for color_good, color_degraded and color_bad
directives per module section in the config file.
2012-10-24 18:59:46 +02:00
Jasper Lievisse Adriaanse
ae4873bac7
i3status - More temperature related fixes for OpenBSD, and a general feature
...
- Temperature sensors can now set a 'max_threshold' value to color the output red if exceeded.
- Allow for arbitrary temperature sensors nodes to be selected with 'path' on OpenBSD.
2012-10-16 10:51:15 +02:00
Jasper Lievisse Adriaanse
1c2517a399
i3status - Default to acpitz(4) instead of cpu(4) for OpenBSD temperature readings
...
The acpitz(4) values are eventually used by the kernel to determine if the machine
is getting too hot.
2012-10-16 10:48:44 +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
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
Michael Stapelberg
cfaeba4df1
Bugfix: non-i3bar formats always used color_bad (Thanks hongy19)
...
fixes #772
2012-08-13 01:35:07 +02:00
Simon Elsbrock
7c02c10b72
colorize battery output if remaining time below threshold
2012-05-25 09:53:49 +02:00
Jasper Lievisse Adriaanse
1c3fb04fb9
Implement basic fetching of cpu temperature on OpenBSD.
2012-04-30 13:00:46 +02:00
Michael Stapelberg
1b3aa40485
add yajl compat code
2012-04-08 14:05:47 +02:00
Michael Stapelberg
0686906b89
use printf instead of write to not mix two ways of outputting data
...
Otherwise, the separator is not properly interleaved with output.
2012-03-25 22:07:43 +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
7148eb5279
FreeBSD: switch from acpi to coretemp to get the cpu temperature
2011-12-09 23:38:59 +00:00
Michael Stapelberg
3471ff39f8
battery: implement "path" option for batteries with non-standard paths
2011-11-26 18:26:38 +00:00
Michael Stapelberg
7ab9167536
magic: try to auto-detect output_format by default (dzen2/i3bar/xmobar)
2011-07-13 03:27:57 +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
cf09102433
Use kill(pid, 0) to check if the process is alive
2010-11-28 16:45:34 +01:00
Michael Stapelberg
eb46963d4c
Implement ALSA volume support
2010-07-20 19:33:41 +02:00