summaryrefslogtreecommitdiffstats
path: root/config.def.h
AgeCommit message (Collapse)Author
2022-12-19config.def.h: Remove stray double quote in commentplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2022-11-24New component: catdrkhsh
Generically reads an arbitrary file natively. Saves a few layers of execution in comparison to using `run_command` with an argument like `cat ./file`.
2022-10-28separator: kill that useless thingdrkhsh
Just use the format strings dude. :)
2022-10-26Make volume component work on FreeBSDmichaelbuch12@gmail.com
- Edit compile instructions - Reuse OpenBSD sndio implementation
2020-11-30Use the sioctl_open(3) OpenBSD API to access volIngo Feinerer
Starting with OpenBSD 6.7 regular users cannot access raw audio devices anymore, for improved security. Instead use the sioctl_open(3) API to access and manipulate audio controls exposed by sndiod(8). On the first call a permanent connection is established with the running sndiod daemon, and call-back functions are registered which are triggered when audio controls are changed (e.g., a USB headset is attached) or when the volume is modified. On subsequent calls we poll for changes; if there are no volume changes this costs virtually nothing. Joint work with Alexandre Ratchov
2020-11-30Add separator moduleRyan Kes
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