summaryrefslogtreecommitdiff
path: root/config.def.h
AgeCommit message (Collapse)Author
2019-02-05Add FreeBSD support for temperature and battery componentsMichael Buch
2018-07-08Consistency with 80 char limit and breaksAaron Marcher
2018-06-04Add flexible formatting to keyboard_indicators.Ian Remmler
Updated for style.
2018-05-27Revert "Add basic backlight percentage support"Aaron Marcher
On OpenBSD the backlight percentage cannot be retrieved in a simple way. The only two solutions we are aware of for now are: - reading from /dev/ttyC0: which isn't possible without changing permissions or running slstatus as root - linking against xcb-xrandr: which is bloat and does not work in every case appearently This reverts commit 37724ac2c3f496f4736223d0d8e5d8fecb933590 for now.
2018-05-23Add keymap componentMichael Buch
Adding a new keymap component that will indicate the current keyboard layout (language) and variant if any was set. I use the standard X11 XKB APIs to retrieve and parse the xkb_symbols set with setxkbmap.
2018-05-22Add basic backlight percentage supportDavid Demelier
At the moment linux only, but will add support for OpenBSD as well.
2018-05-21Remove fmt from load_avgs for consistencyAaron Marcher
In a later commit something like that will be enabled for every component
2018-05-19implemented openbsd netspeed functionsTobias Tschinkowitz
implemented the netspeed functionality for openbsd. furthermore the static keyword was removed of the interval variable in config.def.h for usage as extern variable.
2018-05-19Add netspeeds to config.def.hAaron Marcher
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)