summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-07-03Messing with itnative-functionsChris Sobczak
2026-07-03Change unknown value to ?Chris Sobczak
2026-06-30Add custom status scriptsChris Sobczak
2026-06-30copy configChris Sobczak
2026-02-12license: bump copyright yeardrkhsh
2026-02-12fix buffer overflow in battery state parsingdrkhsh
"Not charging" is 12 characters; %12[a-zA-Z ] reads up to 12 chars plus a NUL terminator (13 bytes) into a 12-byte buffer. Increase state buffer to 13 in both battery_state and battery_remaining.
2026-02-12wifi: always retry ioctl for ifindexdrkhsh
ifindex() caches the result of ioctl(SIOCGIFINDEX) and never retries it, since the interface name strcmp succeeds after the first call. if the interface does not exist when slstatus starts (e.g. iwd with default config destroys/recreates interfaces depending on service state), the ioctl fails and the stale result is returned on all subsequent calls. based on a patch by ryhpez, with input from Taha Medhous
2026-02-12volume: avoid NULL dereference in onval() on sndio device switchChris Billington
2025-07-24more concise memory calculation on Linuxdrkhsh
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
2025-07-16fix name confusion in LICENSEdrkhsh
thanks for reporting, dsp
2025-04-30bump version to 1.1drkhsh
2025-04-30refactor wifi on linuxdrkhsh
2025-04-30update LICENSE and READMEdrkhsh
2025-04-30fix compiler warning with newer gccdrkhsh
2025-04-30add 'up' for whether a interface is up or downsewn
2025-04-30Add underscore to separators in strtok() call in keymap.cAl
2025-04-30wifi: switch to nl80211 interfaceJoakim Sindholt
2023-07-04Release stable 1.0 versiondrkhsh
2023-05-15Add back version flag to prepare for releasedrkhsh
2023-05-15Fix release tarball to prepare for releasedrkhsh
Correctly copies components to sub-directory, adds all required files
2023-04-23README: Sync description from manpagedrkhsh
2023-04-23manpage: Quality improvementsdrkhsh
Adds signals section to the manpage and generally improves contents and wording
2022-12-19More LICENSE updatesdrkhsh
Regarding 305aa5138add5971456c880219fe859cd4189624
2022-12-19Revert "config.mk: Fix PREFIX assignment"drkhsh
"?=" is not POSIX, packagers should use "make PREFIX=". This reverts commit c225c4315161a992b9e44dd990d083ee57f7f713.
2022-12-19Update LICENSEdrkhsh
Real names should be used if possible, as the license is legally binding
2022-12-19Update LICENSEdrkhsh
2022-12-19entropy: Use Unicode escape sequence in stringplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2022-12-19config.mk: Fix PREFIX assignmentplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2022-12-19num_files: opendir() returns a directory streamplanet36
opendir() returns a directory stream, not a file descriptor Co-authored-by: drkhsh <me@drkhsh.at> Signed-off-by: drkhsh <me@drkhsh.at>
2022-12-19Make LEN macro consistent with other suckless reposplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2022-12-19battery: Consistent naming for capacity percentageplanet36
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>
2022-12-19Sort functions by nameplanet36
Co-authored-by: drkhsh <me@drkhsh.at> Signed-off-by: drkhsh <me@drkhsh.at>
2022-12-19uptime: Use sizeof instead of repeating the sizeplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2022-12-19keymap: Variable "layout" should be constplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2022-12-19disk: Cast fsblkcnt_t to double instead of floatplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2022-12-19verr: Remove special "usage" caseplanet36
In function verr, remove special case for "usage" string Co-authored-by: drkhsh <me@drkhsh.at> Signed-off-by: drkhsh <me@drkhsh.at>
2022-12-19config.def.h: Remove stray double quote in commentplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2022-12-19Update READMEdrkhsh
2022-12-01battery: Fix remaining on LinuxPatrick Iacob
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.
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-28README: Add note about FreeBSD sndio depdrkhsh
2022-10-28radical re-formatting 3/3: Error checksdrkhsh
Check for `< 0` instead of `== -1`. Fixes coding style. Formatting commits suck, incoherent coding style sucks more. https://suckless.org/coding_style/
2022-10-28radical re-formatting 2/3: Fix blocksdrkhsh
Fixes coding style. Formatting commits suck, incoherent coding style sucks more. https://suckless.org/coding_style/
2022-10-28radical re-formatting 1/3: Fix spacingdrkhsh
Fixes coding style. Formatting commits suck, incoherent coding style sucks more. https://suckless.org/coding_style/
2022-10-28radical re-formatting 0/3: Alphabetic headersdrkhsh
Except stated otherwise in comment. Fixes coding style. Formatting commits suck, incoherent coding style sucks more. https://suckless.org/coding_style/
2022-10-28ram: Refactor on OpenBSDdrkhsh
Fixes up overly complicated lines, by splitting up logic
2022-10-28ram: Refactor Linux perc/useddrkhsh
Fixes up overly complicated line, by splitting up logic
2022-10-28battery: Refactor remaining on OpenBSDdrkhsh
Fixes up overly complicated line, by splitting up logic
2022-10-28temp: Put sysctl into define to avoid line wrapsdrkhsh
Long, wrapped, multi-line if statements suck to read. This fixes readability.
2022-10-28various: Put paths into defines to avoid line wrapsdrkhsh
Long, wrapped, multi-line if statements suck to read. This fixes readability in the worst places by packing format strings for paths into defines.