| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
more flexible parsing for /proc/meminfo to take shared and reclaimable
memory into account. this matches the output with free(1).
additionally this could fix some corner cases, as the order of fields in
/proc/meminfo is not strictly defined.
slstatus:
percent 81% free 2.5 Gi total 23.4 Gi used 19.0 Gi
free(1):
total used free shared buff/cache available
Mem: 23Gi 19Gi 2.5Gi 1.3Gi 3.2Gi 3.6Gi
|
| |
|
|
| |
thanks for reporting, dsp
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Correctly copies components to sub-directory, adds all required files
|
| | |
|
| |
|
|
|
| |
Adds signals section to the manpage and generally improves contents and
wording
|
| |
|
|
| |
Regarding 305aa5138add5971456c880219fe859cd4189624
|
| |
|
|
|
| |
"?=" is not POSIX, packagers should use "make PREFIX=".
This reverts commit c225c4315161a992b9e44dd990d083ee57f7f713.
|
| |
|
|
| |
Real names should be used if possible, as the license is legally binding
|
| | |
|
| |
|
|
| |
Signed-off-by: drkhsh <me@drkhsh.at>
|
| |
|
|
| |
Signed-off-by: drkhsh <me@drkhsh.at>
|
| |
|
|
|
|
|
| |
opendir() returns a directory stream, not a file descriptor
Co-authored-by: drkhsh <me@drkhsh.at>
Signed-off-by: drkhsh <me@drkhsh.at>
|
| |
|
|
| |
Signed-off-by: drkhsh <me@drkhsh.at>
|
| |
|
|
|
|
|
| |
https://www.kernel.org/doc/html/latest/power/power_supply_class.html
Co-authored-by: drkhsh <me@drkhsh.at>
Signed-off-by: drkhsh <me@drkhsh.at>
|
| |
|
|
|
| |
Co-authored-by: drkhsh <me@drkhsh.at>
Signed-off-by: drkhsh <me@drkhsh.at>
|
| |
|
|
| |
Signed-off-by: drkhsh <me@drkhsh.at>
|
| |
|
|
| |
Signed-off-by: drkhsh <me@drkhsh.at>
|
| |
|
|
| |
Signed-off-by: drkhsh <me@drkhsh.at>
|
| |
|
|
|
|
|
|
| |
In function verr, remove special case for "usage"
string
Co-authored-by: drkhsh <me@drkhsh.at>
Signed-off-by: drkhsh <me@drkhsh.at>
|
| |
|
|
| |
Signed-off-by: drkhsh <me@drkhsh.at>
|
| | |
|
| |
|
|
|
|
|
|
| |
The current version displays the remaining time as 'n/a'.
Fixes this regression introduced in 69b2487650782f135db76078c4a7fb841cb936ac
where current_now and power_now were incorrectly replaced with current and
power when they were moved to a macro.
|
| |
|
|
|
|
|
| |
Generically reads an arbitrary file natively.
Saves a few layers of execution in comparison to using `run_command`
with an argument like `cat ./file`.
|
| | |
|
| |
|
|
|
|
|
|
| |
Check for `< 0` instead of `== -1`.
Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
|
| |
|
|
|
|
| |
Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
|
| |
|
|
|
|
| |
Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
|
| |
|
|
|
|
|
|
| |
Except stated otherwise in comment.
Fixes coding style. Formatting commits suck, incoherent coding style
sucks more.
https://suckless.org/coding_style/
|
| |
|
|
| |
Fixes up overly complicated lines, by splitting up logic
|
| |
|
|
| |
Fixes up overly complicated line, by splitting up logic
|
| |
|
|
| |
Fixes up overly complicated line, by splitting up logic
|
| |
|
|
|
| |
Long, wrapped, multi-line if statements suck to read.
This fixes readability.
|
| |
|
|
|
|
| |
Long, wrapped, multi-line if statements suck to read.
This fixes readability in the worst places by packing format strings for
paths into defines.
|
| |
|
|
| |
Just use the format strings dude. :)
|
| |
|
|
|
|
|
|
|
|
| |
function prototype with unspecified argument is obsolete since c99.
additionally some of these function which don't take any argument were
being called with a `const char *` arg, which is UB.
fix both these issues by declararing ALL the components to accept a
`const char *`, and name the arg "unused" if it's meant to be ignored.
|
| |
|
|
|
| |
this gives the compiler a chance to check weather the prototype and
definiton matches or not, which would catch issues like 3c47701.
|
| |
|
|
|
|
|
|
| |
Exists on various ThinkPads. Seems to be both a synonym for "full".
Tested on:
- ThinkPad T500 (Spenser Truex <truex@equwal.com)
- ThinkPad T420 (drkhsh <me@drkhsh.at)
|
| | |
|
| | |
|
| |
|
|
|
| |
If the connection is lost to the sndiod(8) daemon reset the
initialization to allow for a graceful restart.
|