aboutsummaryrefslogtreecommitdiff
path: root/i3status.c
AgeCommit message (Collapse)AuthorFilesLines
2015-12-04Added support for Pango markup.Kenneth Lyons1-2/+12
2015-10-04Added support for lemonbarBrendan Van Hook1-3/+18
2015-07-06Use gettimeofday instead of clock_gettime on MacAlexis Hildebrandt1-0/+5
since the latter is not available.
2015-04-21Update copyright notices and get rid of rangesDeiz1-3/+3
The script used to make these changes can be found at: https://gist.github.com/Deiz/32322020f76d23e2bf8f
2015-04-03Merge pull request #7 from Watcom/masterMichael Stapelberg1-7/+14
PulseAudio support for volume input
2015-04-03PulseAudio support for volume inputWatcom Hecht1-7/+14
2015-04-02Adding the option "format_down" to path_exists and run_watch.Christian Kohlstedde1-2/+4
This fixes #1.
2015-03-23Pass the "instance" JSON property key for tztime blocksIngo Bürk1-2/+2
fixes #10
2015-03-16clang-format-3.5 -i **/*.[ch], update modelineMichael Stapelberg1-562/+555
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 Kohlstedde1-1/+2
2014-12-10Allocate and expose per-instance pointers for pluginsAlexander Monakov1-0/+5
2014-12-07support the special interface name _first_ for ethernet/wirelessMichael Stapelberg1-2/+12
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 Andreatta1-1/+4
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-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-09disk: Colorize output when below given thresholdMats1-1/+4
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/+83
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/+20
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/+2
fixes: #1134
2013-12-10disk: Distinguish between IEC, SI and custom prefixesMats1-1/+2
* 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/+14
2013-11-18Added different format string for volume in case it is muted.Gereon Kremer1-0/+2
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-07-09allow load to be a floatM. Kory Woods1-2/+2
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 Wagner1-5/+21
2013-03-09Added format_down option for battery if no battery is available.Christoph Göttschkes1-1/+2
2013-02-22Add colorized output for load avgRaphael Michel1-1/+3
2013-02-14Added option to show battery capacity without decimalsJulien Lequertier1-1/+2
2013-02-10Add tztime module to support multiple different timezones.Emil Mikulic1-10/+16
2013-01-08make refreshs align with minutesGereon Kremer1-2/+3
2012-12-05make SIGUSR1 do nothing, so that killall -USR1 i3status will force an updateMichael Stapelberg1-0/+12
Sending SIGUSR1 will interrupt the nanosleep() and thus force a new iteration of i3status’s output loop. The signal handler itself is empty. Based on the question by ttjjss at http://faq.i3wm.org/question/854/how-to-force-status-bar-update/
2012-11-10Bugfix: make custom colors configurable for battery (Thanks thomas)Michael Stapelberg1-0/+1
fixes #865
2012-11-07Bugfix: make custom colors configurable for cpu_temperature (Thanks thomas)Michael Stapelberg1-0/+1
fixes #865
2012-10-24add good, degraded and bad colors per moduleMarcelo Cerri1-4/+15
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-1/+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-08-28add additional battery threshold type "percentage"Simon Elsbrock1-2/+3
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-05-25rename threshold to low_threshold and document it properlyMichael Stapelberg1-2/+2
2012-05-25colorize battery output if remaining time below thresholdSimon Elsbrock1-1/+2
2012-05-07Use (void) instead of () for functions without args (Thanks fernandotcl)Michael Stapelberg1-1/+1
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-02bump copyrightMichael Stapelberg1-3/+3
2012-04-08add yajl compat codeMichael Stapelberg1-0/+9
2012-03-25Properly output JSON with libyajlMichael Stapelberg1-39/+98
2012-03-11Fix configuration paths in error messageMichael Stapelberg1-2/+2
2012-02-16Implement the i3bar JSON protocolMichael Stapelberg1-0/+12
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-11-26battery: implement "path" option for batteries with non-standard pathsMichael Stapelberg1-1/+2
2011-10-18make libconfuse handle config files case insensitiveMichael Stapelberg1-1/+1
2011-10-10Don’t use a default setting for 'order'Michael Stapelberg1-1/+4
This will make i3status depend on a useful configuration file (so /etc/i3status.conf has to be installed) to actually output anything. However, it fixes a very common error: people edit their i3status.conf and don’t get that the first order directive has to use =, not +=. Since order is now empty by default, you can use += everywhere.
2011-10-03Fix the default value for the load, also the manpage description (Thanks XTaran)Michael Stapelberg1-1/+1