aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2014-03-09disk: Colorize output when below given thresholdMats1-1/+1
New disk module options: * threshold_type: ^(percentage|[kmgt]?bytes)_(free|avail)$ * low_threshold: <double> fixes #912
2014-03-07Support align and min_width module optionsMarco Hunsicker1-0/+24
This patch enables users to define "align" and "min_width" options right in the i3status module config sections. Specifically this patch: * Adds macros for the two new options that are used in the option definitions. As the min_width option can take either a string or a number, a custom type has been added along with a corresponding callback function that parses the provided value (and provides input validation). The align option also uses a callback for input validation * Expands all module config option definitions to include the new options * Extends the SEC_CLOSE_MAP() macro to generate the JSON for the new options as necessary * Updates the manpage to explain the new options
2014-03-01Typo in function nameMarco Hunsicker1-1/+1
Fixes the typo in print_seperator()
2014-03-01i3status: Allow customization of module separatorMarco Hunsicker1-1/+6
This patch adds the ability to customize the separator that is placed between modules. Specifically this patch: * adds the "separator" general directive * moves the definition of the default separator for the different output formats (excluding color formatting) to src/i3status.c * updates the SEC_CLOSE_MAP macro to disable the separator for the i3bar output format if the separator directive dictates so * changes print_seperator() in src/output.c to take a separator parameter in order to disable the output of the separator if the separator is empty and to use the provided separator otherwise * updates the manpage to explain the new directive
2014-02-08Add hide_seconds optionIakov Davydov1-1/+1
fixes: #1134
2013-12-10disk: Distinguish between IEC, SI and custom prefixesMats1-1/+1
* IEC: Ki, Mi, Gi, Ti (powers of 1024) * SI: k, M, G, T (powers of 1000) * custom: K, M, G, T (powers of 1024)
2013-11-22Add support for path_exists directive.Kinware AB1-0/+1
2013-11-18Added different format string for volume in case it is muted.Gereon Kremer1-1/+1
If the volume is muted, the volume level would simply be displayed as zero and the color changed to color_degraded. This patch lets the user define a custom format string for when the volume is muted. The default value is "♪: 0%" ("♪: %volume" being the usual format).
2013-10-07Add support for cpu temperature on NetBSD (using envsys(4))Arnaud Degroote1-0/+3
2013-07-09allow load to be a floatM. Kory Woods1-1/+1
2013-05-19Implement term-output-formatAxel Wagner1-1/+2
2013-03-09Added format_down option for battery if no battery is available.Christoph Göttschkes1-1/+1
2013-02-22Add colorized output for load avgRaphael Michel1-1/+1
2013-02-14Added option to show battery capacity without decimalsJulien Lequertier1-1/+1
2013-02-10s/\<timezone\>/tz/ in order to not shadow the timezone var from time.hMichael Stapelberg1-2/+2
2013-02-10Add tztime module to support multiple different timezones.Emil Mikulic1-2/+5
2012-11-15DragonFlyBSD support addedScott Tincman1-1/+5
2012-10-24add good, degraded and bad colors per moduleMarcelo Cerri1-4/+8
This commit adds support for color_good, color_degraded and color_bad directives per module section in the config file.
2012-10-16i3status - More temperature related fixes for OpenBSD, and a general featureJasper Lievisse Adriaanse1-10/+2
- 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-16i3status - Default to acpitz(4) instead of cpu(4) for OpenBSD temperature ↵Jasper Lievisse Adriaanse1-2/+4
readings The acpitz(4) values are eventually used by the kernel to determine if the machine is getting too hot.
2012-09-05modify START_COLOR macro variable namingSimon Elsbrock1-2/+2
Rename val to _val to prevent shadowing warnings due to its common naming.
2012-08-28add additional battery threshold type "percentage"Simon Elsbrock1-1/+1
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-13Bugfix: non-i3bar formats always used color_bad (Thanks hongy19)Michael Stapelberg1-1/+1
fixes #772
2012-05-25colorize battery output if remaining time below thresholdSimon Elsbrock1-1/+1
2012-04-30Implement basic fetching of cpu temperature on OpenBSD.Jasper Lievisse Adriaanse1-0/+9
2012-04-08add yajl compat codeMichael Stapelberg1-0/+1
2012-03-25use printf instead of write to not mix two ways of outputting dataMichael Stapelberg1-1/+1
Otherwise, the separator is not properly interleaved with output.
2012-03-25Properly output JSON with libyajlMichael Stapelberg1-12/+74
2012-02-16Implement the i3bar JSON protocolMichael Stapelberg1-1/+1
This hardcodes all the JSON parts. Strings are not properly escaped currently. The best/easiest way to fix this is by actually using libyajl.
2011-12-09FreeBSD: switch from acpi to coretemp to get the cpu temperatureBaptiste Daroussin1-1/+2
2011-11-26battery: implement "path" option for batteries with non-standard pathsMichael Stapelberg1-1/+1
2011-07-13magic: try to auto-detect output_format by default (dzen2/i3bar/xmobar)Michael Stapelberg1-0/+3
2011-05-06Add print_cpu_usagePeter Bui1-0/+1
2011-04-22Also use the correct time for the ddate moduleMichael Stapelberg1-1/+1
2011-04-21get time at the beginning of the loopMichael Stapelberg1-1/+2
2011-01-06implement the 'path' option for cpu temperatureMichael Stapelberg1-1/+1
2010-11-28Use kill(pid, 0) to check if the process is aliveMichael Stapelberg1-1/+1
2010-07-20Implement ALSA volume supportMichael Stapelberg2-0/+607