summaryrefslogtreecommitdiff
path: root/components
AgeCommit message (Collapse)Author
2019-02-13Fix CPU frequency on OpenBSDIngo Feinerer
2019-02-13close file descriptors and fix return valuesMichael Buch
2019-02-13Add native OpenBSD support for mute/volumeIngo Feinerer
Based on functionality in dstat by Joerg Jung.
2019-02-13wifi component on FreeBSDMichael Buch
2019-02-07Add FreeBSD support for netspeeds, entropy and ip componentsMichael Buch
2019-02-05Add support for cpu and uptime components on FreeBSDMichael Buch
2019-02-05Add FreeBSD support for temperature and battery componentsMichael Buch
2018-07-08ram: Consistency with line breaksAaron Marcher
2018-07-08Fix whitespaceAaron Marcher
2018-07-08Consistency with 80 char limit and breaksAaron Marcher
2018-07-07wifi_perc: Simplify on LinuxAaron Marcher
Remove unnecessary variable
2018-07-07Simplify format specifiers for uintmax_tAaron Marcher
2018-07-07cpu_freq: Simplify with E-notationAaron Marcher
Thanks to the FRIGN
2018-07-07cpu_freq: Change to 64 bit integersAaron Marcher
Remove unnecessary cast to size_t
2018-07-07Change uint64_t to uintmax_tAaron Marcher
2018-07-07battery: 64 bit ints on LinuxAaron Marcher
2018-07-07cpu: Use uint64_t on OpenBSDAaron Marcher
2018-07-06battery: Remove unnecessary defines for pathsAaron Marcher
2018-07-06uptime: Improve typing and sort headersAaron Marcher
2018-07-06temperature: Improve typesAaron Marcher
2018-07-06ram: Check for theoretical division by zeroAaron Marcher
2018-07-06ram: Use POSIX typesAaron Marcher
2018-07-06entropy: Use POSIX types for format specifiersAaron Marcher
2018-07-06entropy: Improve typesAaron Marcher
2018-07-06Consistent paramter naming for componentsAaron Marcher
2018-06-04Add flexible formatting to keyboard_indicators.Ian Remmler
Updated for style.
2018-06-01uptime: unification of the uptime function for linux/openbsdTobias Tschinkowitz
2018-05-31wifi: fixed disconnected wifi status on openbsdTobias Tschinkowitz
2018-05-30Clean up header includesAaron Marcher
- Remove <errno.h> because related functions are in util.c now - Remove corresponding <string.h> if not used otherwise
2018-05-29swap: removed unused includeTobias Tschinkowitz
2018-05-28Refactor swap.c to use getline() instead of buf-fillingLaslo Hunhold
This drops a lot of code and even though we are using a common function, the specification of only the needed things keeps it very efficient and even more efficient in memory and time than the previous solution.
2018-05-27Use E-notation for large powers of 10Laslo Hunhold
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-24ram: fixed int overflow on pagetok macroTobias Tschinkowitz
2018-05-23Refactor keymap.cLaslo Hunhold
- Get rid of camel-casing - Don't use all-caps for variable names - use LEN()-macro - use strncmp() rather than strstr() for prefix-checking - clean up the tokenizer-loop and don't use copies - make the loop more readable by separating different breaking conditions - stricter error-checking and cleanup - store the layout directly with bprintf rather than having a separate buffer
2018-05-23keymap: Add braces for for loopAaron Marcher
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-22netspeeds: Fix indentationAaron Marcher
2018-05-22Add basic backlight percentage supportDavid Demelier
At the moment linux only, but will add support for OpenBSD as well.
2018-05-22Change to fmt_human in netspeeds on OpenBSDAaron Marcher
Thanks to Hiltjo
2018-05-21swap.c: Refactor getstats() and its usageLaslo Hunhold
Add a return value so we are able to check any errors and actually fail when there has been a critical error instead of carrying on uselessly.
2018-05-21Merge fmt_human_2 and fmt_human_10 to one functionAaron Marcher
Now only one function, fmt_human, takes an additional argument "base".
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-21battery_remaining: check for division by zeroAaron Marcher
2018-05-21battery_remaining: Change float to doubleAaron Marcher
2018-05-21battery: Minor coding style fixesAaron Marcher
- Line length - Spacing and indentation - No explicit checks for NULL
2018-05-21Increase readability for load_uvmexp returnAaron Marcher
2018-05-21Remove units from numbersAaron Marcher
This is a first step to decouple formatting from information because of two reasons: 1. The components should only gather and return the values by design 2. Fine grained user control should be a focus Scaling will be implemented in a different way in a later commit.
2018-05-21swap_perc: check for division by zero on obsd tooAaron Marcher
2018-05-20swap_perc: check for division by zeroAaron Marcher