summaryrefslogtreecommitdiff
path: root/config.def.h
AgeCommit message (Collapse)Author
2018-05-18Fix indentationAaron Marcher
Tabs for indentation, spaces for alignment
2018-05-18Add battery_remaining function on OpenBSDTobias Tschinkowitz
Implementation of a battery_remaining function which returns the remaining battery time in HH:MM format. Linux function still needs implementation. Move common code to load_apm_power_info
2018-05-17Change interval to unsigned intAaron Marcher
2018-05-17Add comments for battery_* functions on OpenBSDAaron Marcher
2018-05-17added comment for temp function (openbsd)Tobias Tschinkowitz
2018-05-06Remove cpu_iowaitAaron Marcher
The third value from load_avg (idle) gives us almost the same information as cpu_iowait. Plus OpenBSD does not offer an iowait value as Linux and thus the corresponding function would not be portable.
2018-05-02Add examples to config.def.hAaron Marcher
2018-05-01Remove battery_power for various reasonsAaron Marcher
- Battery power cannot be easily gatherable via apm(4) - IMHO it does not represent essential information
2018-04-16Remove non-portable functions from config.def.hAaron Marcher
2017-09-16slstatus: add cpu_iowaitKurt Van Dijck
This commit introduces the cpu_iowait item, this is the percentage of cpu time spent waiting on disks. High numbers typically indicate that your system is not responsive due to disk IO. This commit also avoid sleeping inside the cpu_perc and cpu_iowait functions: waiting in either one implies lost info for the other. Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
2017-09-10slstatus load_avg format stringKamil Cholewiński
2017-08-14Added IPv6 address functionAaron Marcher
- Renamed "ip" function to "ipv4" - Added "ipv6" function - Adjusted README and config.def.h accordingly
2017-08-14sexy config.def.h tableAaron Marcher
2017-08-13Refactor main()Laslo Hunhold
We remove the hack with the sleep and global "delay"-variable and use a monotonic clock to derive the desired monotonic properties of the tool. Inside each function that demands a personal delay we can then just do a nanosleep() and be done with it. It's a shame that timespec is so ugly to work with, but there's really no way to make it more beautiful. However, at this cost though we finally can set the interval times in milliseconds and not only just seconds. We remove setlocale(), because nothing good ever came out of this function. Besides that we have some more code refactoring, especially in the argument loop which saves us a bit of complexity.
2017-08-12Removed #define for unknown_strAaron Marcher
Debugging #define is very difficult. The performance overhead of static const char is negligible.
2017-08-12Removed #define for update intervalAaron Marcher
Debugging #define, especially in mathematical constructs is very difficult. The performance overhead of static const int is negligible.
2017-08-06add num_files() function for maildirs ;)aaron marcher
2017-06-13use a static buffer instead of dynamic memoryAaron Marcher
2017-06-12remove format characters from stat functionsAaron Marcher
2017-06-12add cpu_freq functionAaron Marcher
2017-06-12add battery_power functionAaron Marcher
2017-01-16Added keyboard_indicators (Fixes #31)Aaron Marcher
2016-12-30add vol_perc notes, add braces to singleline statementsparazyd
2016-12-28refactor vol_perc to not depend on alsa librariesparazyd
2016-11-16Add "uname -r" functionalityMike Coddington
2016-10-15Edit config.def.h function descriptionsJody Leonard
2016-10-05better default config.hAaron Marcher
2016-09-13battery_state() function addedAaron Marcher
2016-09-13simplified vol_perc() (and with that config.def.h is super clean)Aaron Marcher
2016-09-13simplified battery_perc() a lot and removed useless options from config.def.hAaron Marcher
2016-09-09brought back update intervalAaron Marcher
2016-09-09coding style fixesAaron Marcher
2016-09-03removed UPDATE_INTERVAL, it is neat to have it but removing it is a tradeoff ↵Ali H. Fardan
worth making, because the clock would act weird if this used to work with cpu_perc().
2016-08-31removed vol function from the default config fileAli H. Fardan
2016-08-28removed a misplaced ';'Ali H. Fardan
2016-08-28used constant string literals && remote initialization to in battery_perc() ↵Ali H. Fardan
&& trying to fix possible buffer overflow
2016-08-21corrected the time formatAli H. Fardan
2016-08-18added uptime functionAaron Marcher
2016-08-18load avgAaron Marcher
2016-08-18added configuration option for n/a textAaron Marcher
2016-08-16Formatting commit :(Aaron Marcher
I know formatting commits suck... And I try to avoid them. But this commit was absolutely necessary... The coding style in this program was not ok and not the same over the whole program. The commit is hard to read, but this is what I changed: - Tabs for indentation instead of spaces - Same style over the whole program (suckless style)
2016-08-15added wifi essidAaron Marcher
2016-08-15Added shell command functionAaron Marcher
2016-06-13added, username, gid, uidAaron Marcher
2016-06-10added disk functions for detailsAaron Marcher
2016-06-10hostname functionAaron Marcher
2016-06-08added ip address functionAaron Marcher
2016-06-03added entropyAaron Marcher
2016-03-20Changes to documentation and new screenshot.Aaron Marcher
- Better README.md - Headlines in all files - CONTRIBUTING.md - New screenshot
2016-03-18Easier info function namesAaron Marcher
All the info function names started with "get_", which I removed to make it easier for the user to configure the program to its needs. Additionally I renamed some functions (e.g. get_ram_usage) to better names, making it easier to extend the program with ram usage / total functions.