summaryrefslogtreecommitdiff
path: root/include/i3status.h
AgeCommit message (Collapse)Author
2015-03-16clang-format-3.5 -i **/*.[ch], update modelineMichael Stapelberg
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-02-18Adding optional configuration option to "print_disk_info".Christian Kohlstedde
2014-12-10Allocate and expose per-instance pointers for pluginsAlexander Monakov
2014-12-07support the special interface name _first_ for ethernet/wirelessMichael Stapelberg
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-10-07Created three individual Strings for each battery status (charging, ↵Cyril Andreatta
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-04-30Fix NetBSD CPU temp gauge bugAlexander Vasarab
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-03-09disk: Colorize output when below given thresholdMats
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 Hunsicker
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 Hunsicker
Fixes the typo in print_seperator()
2014-03-01i3status: Allow customization of module separatorMarco Hunsicker
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 Davydov
fixes: #1134
2013-12-10disk: Distinguish between IEC, SI and custom prefixesMats
* 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 AB
2013-11-18Added different format string for volume in case it is muted.Gereon Kremer
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 Degroote
2013-07-09allow load to be a floatM. Kory Woods
2013-05-19Implement term-output-formatAxel Wagner
2013-03-09Added format_down option for battery if no battery is available.Christoph Göttschkes
2013-02-22Add colorized output for load avgRaphael Michel
2013-02-14Added option to show battery capacity without decimalsJulien Lequertier
2013-02-10s/\<timezone\>/tz/ in order to not shadow the timezone var from time.hMichael Stapelberg
2013-02-10Add tztime module to support multiple different timezones.Emil Mikulic
2012-11-15DragonFlyBSD support addedScott Tincman
2012-10-24add good, degraded and bad colors per moduleMarcelo Cerri
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 Adriaanse
- 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 Adriaanse
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 Elsbrock
Rename val to _val to prevent shadowing warnings due to its common naming.
2012-08-28add additional battery threshold type "percentage"Simon Elsbrock
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 Stapelberg
fixes #772
2012-05-25colorize battery output if remaining time below thresholdSimon Elsbrock
2012-04-30Implement basic fetching of cpu temperature on OpenBSD.Jasper Lievisse Adriaanse
2012-04-08add yajl compat codeMichael Stapelberg
2012-03-25use printf instead of write to not mix two ways of outputting dataMichael Stapelberg
Otherwise, the separator is not properly interleaved with output.
2012-03-25Properly output JSON with libyajlMichael Stapelberg
2012-02-16Implement the i3bar JSON protocolMichael Stapelberg
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 Daroussin
2011-11-26battery: implement "path" option for batteries with non-standard pathsMichael Stapelberg
2011-07-13magic: try to auto-detect output_format by default (dzen2/i3bar/xmobar)Michael Stapelberg
2011-05-06Add print_cpu_usagePeter Bui
2011-04-22Also use the correct time for the ddate moduleMichael Stapelberg
2011-04-21get time at the beginning of the loopMichael Stapelberg
2011-01-06implement the 'path' option for cpu temperatureMichael Stapelberg
2010-11-28Use kill(pid, 0) to check if the process is aliveMichael Stapelberg
2010-07-20Implement ALSA volume supportMichael Stapelberg