aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-03-15Avoid unnecessary string duplicationMarco Hunsicker1-2/+2
This patch removes an unnecessary string duplication that was only used to avoid a compiler warning.
2014-03-15Remove custom color options from order arrayMarco Hunsicker1-1/+0
2014-03-12Unify use of string comparisonsMats8-25/+25
* strncmp(s1, s2, strlen(s2)) → BEGINS_WITH(s1, s2) * strncmp(s1, s2, strlen(s1)) → strcmp(s1, s2) * Prefer case-insensitive comparison for options
2014-03-12For the %percentage display of batteries, drop the leading '0' for values < 10.Jasper Lievisse Adriaanse1-1/+2
2014-03-09disk: Colorize output when below given thresholdMats4-3/+78
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 Hunsicker3-0/+136
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 Hunsicker3-3/+3
Fixes the typo in print_seperator()
2014-03-01i3status: Allow customization of module separatorMarco Hunsicker4-9/+63
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-26i3status: Bugfix: Reading multiple temperature sensors not possibleMarco Hunsicker1-16/+17
This patch inlines the creation of the thermal zone string in order to force computation on each invocation. This is necessary to be able to read the values of several temperature sensors.
2014-02-19make release: install the README file (Thanks myou)Michael Stapelberg1-1/+1
2014-02-08Add hide_seconds optionIakov Davydov4-8/+18
fixes: #1134
2014-01-06Add a format_down example for batteryWieland Hoffmann1-0/+2
2014-01-06man: Add a missing colonWieland Hoffmann1-1/+1
2014-01-05manpage: update version numberMichael Stapelberg2-2/+2
2014-01-05update CHANGELOGMichael Stapelberg1-0/+28
2013-12-10disk: Distinguish between IEC, SI and custom prefixesMats4-22/+51
* 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 AB5-2/+69
2013-11-18document format_muted in the manpageMichael Stapelberg1-0/+2
2013-11-18Added different format string for volume in case it is muted.Gereon Kremer3-3/+13
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-11-16default config: show %avail disk space instead of %freeSebastian Ullrich1-1/+1
The former property is generally more relevant to end users
2013-11-09format detection: simplify code, handle "sh" processes in the hierarchyMichael Stapelberg1-63/+61
i3 starts processes using /bin/sh now, not $SHELL. This increases the likelihood with which we are started by dash, which tends to leave its processes in the hierarchy, e.g.: michael 1524 i3bar --bar_id=bar-0 --socket=/run/user/1000/i3/ipc-s michael 1525 \_ /bin/sh -c i3status michael 1526 \_ i3status This case is now handled correctly — when the parent is “sh”, the parent of sh will be used instead.
2013-11-09fix slurp(), it needs to read size-1 for the trailing NULMichael Stapelberg1-1/+2
2013-10-24print_cpu_temperature: fix memory leak (Thanks kuba)Michael Stapelberg1-4/+6
2013-10-07Add support for cpu temperature on NetBSD (using envsys(4))Arnaud Degroote3-0/+97
2013-10-07Allow to print cpu usage on NetBSDArnaud Degroote1-2/+9
2013-10-07Allow to print eth information on NetBSDArnaud Degroote1-2/+2
2013-10-07Fix the build on NetBSDArnaud Degroote1-4/+6
2013-07-19Add example path for CPU temperatureJan-Erik Rediger1-0/+2
2013-07-09manpage: update example for load’s max_thresholdMichael Stapelberg1-1/+1
2013-07-09allow load to be a floatM. Kory Woods3-4/+4
2013-06-18Makefile: use .SILENT and support V=1 for verbose buildsMichael Stapelberg1-3/+8
2013-06-11Bugfix: In term-output, clear line before drawing new oneAxel Wagner1-2/+2
If we don't do this, the output of i3status will remain on the terminal, which is really ugly if the statusline becomes shorter after a while (for example a connection get's lost), because there will be garbage.
2013-05-19signal handler: set flag because directly calling fprintf() is unsafeMichael Stapelberg1-7/+16
2013-05-19Implement term-output-formatAxel Wagner5-7/+58
2013-05-19print_volume(linux): Open a new mixer every time.oblique1-103/+52
This fix the following bug: If you switch your sound card on-the-fly, print_volume continued to use the old sound card.
2013-05-04fix #1017: i3status uses generic battery instanceJonas Cleve1-3/+3
2013-05-04manpage: be more explicit about the path optionMichael Stapelberg1-2/+5
2013-03-20Support colored output for CPU temperature on FreeBSDBaptiste Daroussin1-0/+10
2013-03-19man: mention i3bar in the description (Thanks andi)Michael Stapelberg1-2/+2
2013-03-19print_volume: don’t return, complete the buffer firstMichael Stapelberg1-9/+10
Otherwise, i3bar will display “SPEC VIOLATION” because full_text is missing in the block.
2013-03-19Enable colored output for battery on FreeBSDBaptiste Daroussin1-0/+9
2013-03-19Support mixer_idx with OSSBaptiste Daroussin2-3/+14
make mixer_idx load the default mixer
2013-03-19Show degraded colors in case volume is muted with OSSBaptiste Daroussin1-0/+6
2013-03-09Added format_down option for battery if no battery is available.Christoph Göttschkes4-9/+11
2013-03-02Fix FTBFS on HurdJakob Haufe1-1/+1
On GNU/Hurd, THERMAL_ZONE is undefined. This makes compilation fail as outwalk is declared inside of #ifdef THERMAL_ZONE, but it's used outside of it (by OUTPUT_FULL_TEXT). This moves the declaration outside the #ifdef to allow for successful compilation on Hurd again.
2013-02-27update CHANGELOGMichael Stapelberg1-0/+27
2013-02-27contrib: fix premature insetion of status message into JSONJiri Pinkava1-1/+1
Pass first 2 lines of JSON unmodified. It contains protocol version and start of block of blocks of status messages.
2013-02-26wireless: call START_COLOR only once (Thanks XTaran)Michael Stapelberg1-4/+3
2013-02-23battery: initialize colorful_output to falseMichael Stapelberg1-1/+1
2013-02-23ipv6: properly handle colors for output_format == xmobarMichael Stapelberg1-3/+4