summaryrefslogtreecommitdiff
path: root/components
Commit message (Collapse)AuthorAge
* Simplify format specifiers for uintmax_tAaron Marcher2018-07-07
|
* cpu_freq: Simplify with E-notationAaron Marcher2018-07-07
| | | | Thanks to the FRIGN
* cpu_freq: Change to 64 bit integersAaron Marcher2018-07-07
| | | | Remove unnecessary cast to size_t
* Change uint64_t to uintmax_tAaron Marcher2018-07-07
|
* battery: 64 bit ints on LinuxAaron Marcher2018-07-07
|
* cpu: Use uint64_t on OpenBSDAaron Marcher2018-07-07
|
* battery: Remove unnecessary defines for pathsAaron Marcher2018-07-06
|
* uptime: Improve typing and sort headersAaron Marcher2018-07-06
|
* temperature: Improve typesAaron Marcher2018-07-06
|
* ram: Check for theoretical division by zeroAaron Marcher2018-07-06
|
* ram: Use POSIX typesAaron Marcher2018-07-06
|
* entropy: Use POSIX types for format specifiersAaron Marcher2018-07-06
|
* entropy: Improve typesAaron Marcher2018-07-06
|
* Consistent paramter naming for componentsAaron Marcher2018-07-06
|
* Add flexible formatting to keyboard_indicators.Ian Remmler2018-06-04
| | | | Updated for style.
* uptime: unification of the uptime function for linux/openbsdTobias Tschinkowitz2018-06-01
|
* wifi: fixed disconnected wifi status on openbsdTobias Tschinkowitz2018-05-31
|
* Clean up header includesAaron Marcher2018-05-30
| | | | | - Remove <errno.h> because related functions are in util.c now - Remove corresponding <string.h> if not used otherwise
* swap: removed unused includeTobias Tschinkowitz2018-05-29
|
* Refactor swap.c to use getline() instead of buf-fillingLaslo Hunhold2018-05-28
| | | | | | 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.
* Use E-notation for large powers of 10Laslo Hunhold2018-05-27
|
* Revert "Add basic backlight percentage support"Aaron Marcher2018-05-27
| | | | | | | | | | | | 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.
* ram: fixed int overflow on pagetok macroTobias Tschinkowitz2018-05-24
|
* Refactor keymap.cLaslo Hunhold2018-05-23
| | | | | | | | | | | | | - 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
* keymap: Add braces for for loopAaron Marcher2018-05-23
|
* Add keymap componentMichael Buch2018-05-23
| | | | | | | | 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.
* netspeeds: Fix indentationAaron Marcher2018-05-22
|
* Add basic backlight percentage supportDavid Demelier2018-05-22
| | | | At the moment linux only, but will add support for OpenBSD as well.
* Change to fmt_human in netspeeds on OpenBSDAaron Marcher2018-05-22
| | | | Thanks to Hiltjo
* swap.c: Refactor getstats() and its usageLaslo Hunhold2018-05-21
| | | | | 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.
* Merge fmt_human_2 and fmt_human_10 to one functionAaron Marcher2018-05-21
| | | | Now only one function, fmt_human, takes an additional argument "base".
* Remove fmt from load_avgs for consistencyAaron Marcher2018-05-21
| | | | | In a later commit something like that will be enabled for every component
* battery_remaining: check for division by zeroAaron Marcher2018-05-21
|
* battery_remaining: Change float to doubleAaron Marcher2018-05-21
|
* battery: Minor coding style fixesAaron Marcher2018-05-21
| | | | | | - Line length - Spacing and indentation - No explicit checks for NULL
* Increase readability for load_uvmexp returnAaron Marcher2018-05-21
|
* Remove units from numbersAaron Marcher2018-05-21
| | | | | | | | | | 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.
* swap_perc: check for division by zero on obsd tooAaron Marcher2018-05-21
|
* swap_perc: check for division by zeroAaron Marcher2018-05-20
|
* Support energy_now/power_now in battery_remainingDavid Demelier2018-05-20
| | | | | | | | On some laptops (mostly thinkpads), the remaining time may be expressed in µWh using energy_now and power_now files rather than µAh for charge_now and current_now. Add pick function to conditionally select appropriate one.
* ip: fixed memory leakTobias Tschinkowitz2018-05-20
| | | | free the interface list before returning from the function
* Check return value of pclose()Laslo Hunhold2018-05-20
|
* Refactor ram.cAaron Marcher2018-05-20
|
* Make temp more readable on LinuxAaron Marcher2018-05-20
|
* Refactor entropy.cLaslo Hunhold2018-05-20
|
* Remove initialization to 0 for static varsAaron Marcher2018-05-20
|
* Remove unnecessary "valid" variable in cpu_percAaron Marcher2018-05-20
|
* Add unit to temperatureAaron Marcher2018-05-20
|
* Implement scaling for cpu_freqAaron Marcher2018-05-19
|
* Implement fmt_human_2() and fmt_human_10()Laslo Hunhold2018-05-19
| | | | | | | | | These functions take the raw number and a unit and automatically print it out "scaled down" to a proper SI-prefix, for powers of 2 and 10 respectively. Apply them to the 2-power cases and keep the 10-power for a later commit.