aboutsummaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2018-11-10Add timezone switcheplanet1-1/+1
2018-07-13fix clang errorsFelix Buehler2-77/+80
2018-06-29add format_quality option in wirelessFelix Buehler1-1/+1
2018-06-20Make sure the arguments passed to printf/die(...) match the formatOlivier Gayot1-1/+2
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-05-04Simplify the memory thresholdsBenedikt Heine1-1/+1
2018-04-11Implement support for memory-usage on LinuxFelix Buehler1-0/+1
2017-12-11Add IPv6 address when IPv4 isn't available (#247)Emeric Planet1-1/+1
2017-03-26Multiple CPU support for cpu_usage (#209)eplanet1-1/+1
This change addresses the issue #199 asking for multiple CPU support. It takes an arbitrary CPU number and outputs its usage using the same arithmetics as for CPU aggregation. It currently doesn't support FreeBSD.
2016-12-13Fix i3status to compile with -fno-common (#185)Samuel Holland1-9/+15
This avoids multiple declarations of the same global variable in different source files.
2016-11-15Add 'format_below_threshold' option for 'disk' moduleMihai Coman1-4/+4
Add 'format_above_threshold' option for 'cpu_temperature' module Add 'format_above_threshold' option for 'cpu_usage' module Add 'format_above_threshold' option for 'load' module
2016-10-24Setting of custom locale in tztime configuration. (#168)Björn Lindström1-1/+1
To be able to show my birth country's time zone in that country's locale, and my local time in my current locale.
2016-10-23Detect batteries using glob (#163)Stu Zhao1-0/+2
2016-09-14pulse device may be specified by name (#126) (#162)Watcom1-1/+1
2016-08-28Implement aggregates for batteries.Tommie Gannert1-5/+0
Using title number all, this enables aggregates. Note that FreeBSD and OpenBSD previously only reported aggregates, so this is bringing Linux and NetBSD that functionality. Changes the default battery reporting to the aggregate since most users probably don't care about individual batteries. For single-battery systems there should be no change. Fixes one obvious memory leak in NetBSD.
2016-08-22Parse uevent file to detect network device type (#153)Cihangir Akturk1-1/+2
Currently i3status differentiates wireless and wired devices based on the existence of wireless directory inside the device's sysfs directory. This approach seems to cause 3g modems to be incorrectly identified as the first ethernet device. This commit solves this problem by using DEVTYPE variable from uevent file. Signed-off-by: Cihangir Akturk <cakturk@gmail.com>
2016-04-13Add CPU usage color thresholdsMark Schreiber1-1/+1
CPU usage had previously not supported the color option. Add support for a "degraded" state above which the degraded color is used, and a higher "bad" state above which the "bad" color is used. One possible use for these might be indicating whether one or all cores are saturated. Unlike the color settings for other, these are set high enough to be disabled by default. This is done because i3status determines CPU usage over only the last display interval, which means that, a user with a low refresh rate might see frequent, potentially-annoying color changes.
2016-03-21Added status_unk to battery_infoeoin1-1/+2
2016-01-31add separator and separator_block_width as universal module optionsjohannes karoff1-26/+34
fixes #104
2016-01-12revert back to using nanosleepWatcom Hecht1-3/+1
Fixes #93
2015-12-04Added support for Pango markup.Kenneth Lyons1-1/+8
2015-10-04Added support for lemonbarBrendan Van Hook1-0/+3
2015-09-20Resolved potential bugJSmith-BitFlipper1-1/+1
This pull request is in response to #61
2015-04-19PulseAudio muted volume support (fixes #27)Watcom Hecht1-0/+3
2015-04-03Merge pull request #7 from Watcom/masterMichael Stapelberg1-0/+9
PulseAudio support for volume input
2015-04-03PulseAudio support for volume inputWatcom Hecht1-0/+9
2015-04-02Adding the option "format_down" to path_exists and run_watch.Christian Kohlstedde1-2/+2
This fixes #1.
2015-04-02fix invalid forward declarationMichael Stapelberg1-1/+1
2015-03-23Pass the "instance" JSON property key for tztime blocksIngo Bürk1-1/+1
fixes #10
2015-03-16clang-format-3.5 -i **/*.[ch], update modelineMichael Stapelberg2-461/+483
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/+1
2014-12-10Allocate and expose per-instance pointers for pluginsAlexander Monakov1-0/+2
2014-12-07support the special interface name _first_ for ethernet/wirelessMichael Stapelberg1-0/+7
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/+1
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 Vasarab1-4/+1
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 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