aboutsummaryrefslogtreecommitdiff
path: root/i3status.c
AgeCommit message (Collapse)AuthorFilesLines
2019-11-16Introduce format_percentage for battery (#371)grmat1-1/+15
Allow custom output, backwards-compatible to integer_battery_capacity
2019-10-26Introduce memory options 'unit' and 'decimals'MK131-1/+3
Previously the format placeholders were auto-converted to the maximum possible unit, e.g. /proc/meminfo reports MemTotal of 16307104kB which will get converted to 15.6GiB. It is now possible to specifiy the target unit, e.g. Mi, which will be used for the conversion - in the example it would lead to 15924.9MiB. The resulting number can now be further formatted via the decimal option. It allows to specify the number of decimals to use, e.g. 15.6GiB vs. 15GiB or 15924.9MiB vs. 15925MiB.
2019-07-29make pulseaudio an optional dependency, follow best practicesMichael Stapelberg1-1/+7
For my thoughts about optional dependencies, see https://michael.stapelberg.ch/posts/2019-05-23-optional-dependencies/ This commit follows the best practices outlined in that article: 1. The travis config was modified to verify both code paths build and link/don’t link against pulseaudio. 2. If pulseaudio is missing, the build fails until packagers explicitly pass a --disable flag. In practice, I think the only situation when this flag should be set is in source-based linux distributions where users can express package-level compilation preferences (e.g. Gentoo USE flags). 3. The --version output now reflects the status of the optional dependency. fixes #359
2019-02-21Added function to print content from file (#331)Dennis Vesterlund1-0/+19
Added a function to print file contents to status bar without newlines. Added tests for print file contents function Added manpage entry for file contents
2019-01-27fix: use SYSCONFDIR in error messageMichael Stapelberg1-2/+1
2019-01-23Switch to autotools (#316)Michael Stapelberg1-0/+1
2018-11-15Corrections according to PR revieweplanet1-2/+2
2018-11-10Add timezone switcheplanet1-2/+3
2018-11-07Fix error messageseplanet1-1/+1
2018-10-07strncpy + strlen is pointless (#312)Orestis1-3/+4
strlen already assumes that the string is NULL-terminated. Fixes -Wstringop-overflow warning
2018-07-13clang-format-3.8 fix travis errorFelix Buehler1-1/+2
2018-06-29Merge pull request #292 from Stunkymonkey/format_qualityIngo Bürk1-1/+2
add format_quality option in wireless
2018-06-29add format_quality option in wirelessFelix Buehler1-1/+2
2018-06-29hide seconds in battery by defaultFelix Buehler1-1/+1
2018-06-20Make sure the arguments passed to printf/die(...) match the formatOlivier Gayot1-2/+2
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2018-05-04Simplify the memory thresholdsBenedikt Heine1-8/+5
2018-04-11Implement support for memory-usage on LinuxFelix Buehler1-0/+23
2018-02-06Add check for interval valuefoutaise1-0/+5
2017-12-11Add IPv6 address when IPv4 isn't available (#247)Emeric Planet1-0/+3
2017-03-26Multiple CPU support for cpu_usage (#209)eplanet1-1/+2
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-0/+5
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/+9
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-11-14Unit testing in Travis (#170)eplanet1-12/+28
2016-10-24Setting of custom locale in tztime configuration. (#168)Björn Lindström1-2/+3
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-1/+1
2016-08-28Implement aggregates for batteries.Tommie Gannert1-1/+1
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-07-30Merge pull request #139 from Gjum/wb-colored-cpu-usageMichael Stapelberg1-1/+4
Add CPU usage color thresholds
2016-07-27change default cpu_usage thresholds to 90 and 95Gjum1-2/+2
2016-06-15Default configuration paths ordered the same way as i3. Fixes #129 (#130)eplanet1-12/+11
2016-04-13Add CPU usage color thresholdsMark Schreiber1-1/+4
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-0/+34
fixes #104
2016-01-12revert back to using nanosleepWatcom Hecht1-19/+9
Fixes #93
2016-01-11Forgotten wakeup call from USR1 handlerRichard Petri1-0/+1
Fixes #93
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