summaryrefslogtreecommitdiff
path: root/src/print_disk_info.c
AgeCommit message (Collapse)Author
2020-03-03use format_placeholder for disk.infoFelix Buehler
2019-01-23Switch to autotools (#316)Michael Stapelberg
2018-11-08Read /proc/mounts if /etc/mtab can't be readeplanet
2018-07-13able to print percentageFelix Buehler
its now possible to have percentage before and after a variable. except for the date. But percentage with dates does not make much sense to me, so i skipped it.
2018-06-20Fix use of undefined macro __OpenBSD__Olivier Gayot
Compiling on Linux with -Wundef produces the following warning: warning: "__OpenBSD__" is not defined, evaluates to 0 [-Wundef] Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
2017-03-10disk: don't remove trailing slash if path is a single characterKenneth Lyons
2017-03-08disk: sanitize trailing slashesMichael Stapelberg
fixes #200
2016-11-15Add 'format_below_threshold' option for 'disk' moduleMihai Coman
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-08-16Print empty string for not mounted disks. (#148)eplanet
An empty string becomes the default value for format_not_mounted parameter for any disk entry. This avoids printing erroneous values when a filesystem is not mounted.
2016-08-14Make print_disk_info, print_eth_info and print_wireless_info compile on ↵Tommie Gannert
NetBSD without warnings.
2016-01-12Bugfix: check that format_not_mounted is not NULL before using itMichael Stapelberg
This issue was introduced with commit 75a83574. fixes #92
2015-10-04Added support for lemonbarBrendan Van Hook
2015-07-06Add ifdef to compile print_disk_info on MacAlexis Hildebrandt
2015-05-29Use format_not_mounted if the directory for a disk_info block does not exist.Ingo Bürk
This is useful for dynamically mounted devices like thumb drives that get mounted into a directory such as '/media/$UID/$NAME'. fixes #33
2015-03-25Fix build on FreeBSDBaptiste Daroussin
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-22removing Yoda-StyleChristian Kohlstedde
adding some words in the manpage
2015-02-18Adding optional configuration option to "print_disk_info".Christian Kohlstedde
2015-02-18Excluding the code on BSD systems.Christian Kohlstedde
2015-02-18Make the code more readable.Christian Kohlstedde
2015-02-18Modify print_disk_info. Now there is no output if the path is no mountpoint.Christian Kohlstedde
2014-03-12Unify use of string comparisonsMats
* 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-09disk: Colorize output when below given thresholdMats
New disk module options: * threshold_type: ^(percentage|[kmgt]?bytes)_(free|avail)$ * low_threshold: <double> fixes #912
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)
2012-11-15DragonFlyBSD support addedScott Tincman
2012-08-31introduce percentages for all values, document themMichael Stapelberg
2012-08-31adding percentage format string for disk info modulegereon
explicit cast to double, changed format string to percentage
2012-04-29Fix disk usage on OpenBSD.Jasper Lievisse Adriaanse
2012-04-08add yajl compat codeMichael Stapelberg
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: fix disk usage printBaptiste Daroussin
2010-06-25disk_info: implement %availMirko Augsburger
2010-01-10disk: also round when printing TB (Thanks Merovius)Michael Stapelberg
2009-10-16Bugfix: Cast the integers to uint64_t *before* multiplying (Thanks msi)Michael Stapelberg
This fixes problems on 32-bit computers.
2009-10-12Cleanup disk "module"Michael Stapelberg
2009-10-11Implement disk info (%free/%used/%total)Michael Stapelberg