summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-05-16Add back version flag to prepare for releaseHEADmasterdrkhsh
2023-05-16Fix release tarball to prepare for releasedrkhsh
Correctly copies components to sub-directory, adds all required files
2023-04-25README: Sync description from manpagedrkhsh
2023-04-25manpage: Quality improvementsdrkhsh
Adds signals section to the manpage and generally improves contents and wording
2023-01-03More LICENSE updatesdrkhsh
Regarding 305aa5138add5971456c880219fe859cd4189624
2023-01-03Revert "config.mk: Fix PREFIX assignment"drkhsh
"?=" is not POSIX, packagers should use "make PREFIX=". This reverts commit c225c4315161a992b9e44dd990d083ee57f7f713.
2023-01-03Update LICENSEdrkhsh
Real names should be used if possible, as the license is legally binding
2023-01-03Update READMEdrkhsh
2023-01-03Update LICENSEdrkhsh
2023-01-03config.mk: Fix PREFIX assignmentplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2023-01-03num_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>
2023-01-03Make LEN macro consistent with other suckless reposplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2023-01-03battery: 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>
2023-01-03Sort functions by nameplanet36
Co-authored-by: drkhsh <me@drkhsh.at> Signed-off-by: drkhsh <me@drkhsh.at>
2023-01-03uptime: Use sizeof instead of repeating the sizeplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2023-01-03keymap: Variable "layout" should be constplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2023-01-03disk: Cast fsblkcnt_t to double instead of floatplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2023-01-03verr: 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>
2023-01-03config.def.h: Remove stray double quote in commentplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
2023-01-03entropy: Use Unicode escape sequence in stringplanet36
Signed-off-by: drkhsh <me@drkhsh.at>
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-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-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-28temp: Put sysctl into define to avoid line wrapsdrkhsh
Long, wrapped, multi-line if statements suck to read. This fixes readability.
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-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.
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-28separator: kill that useless thingdrkhsh
Just use the format strings dude. :)
2022-10-27do not rely on obsolete featureNRK
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.
2022-10-27components/*.c: include slstatus.hNRK
this gives the compiler a chance to check weather the prototype and definiton matches or not, which would catch issues like 3c47701.
2022-10-27Add 'Not charging' status supportSpenser Truex
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)
2022-10-27Add comment about mixer oss module to READMEdrkhsh
2022-10-27Update LICENSEdrkhsh
2022-10-27Fix keyboard_indicators() prototypeNRK
according to both the function definition and the comment in config.def.h, keyboard_indicators() should take a format string.
2022-10-27Reset sndiod initialization flag on disconnectsIngo Feinerer
If the connection is lost to the sndiod(8) daemon reset the initialization to allow for a graceful restart.
2022-10-27Fix RAM component on FreeBSDmichaelbuch12@gmail.com
The current implementation uses the wrong type for given sysctl calls leading to overflow and incorrectly reported RAM usage. The fix is to use 'unsigned int' which is what FreeBSD expects.
2022-10-27Make volume component work on FreeBSDmichaelbuch12@gmail.com
- Edit compile instructions - Reuse OpenBSD sndio implementation
2022-03-25Delete config.hRafael Marçalo
2021-08-19Updated % Representationrafa_99
2021-08-16Battery Statusrafa_99
2021-08-16Added Custom Configrafa_99
2020-11-30Update READMEAaron Marcher
2020-11-30Update LICENSEAaron Marcher
2020-11-30Add comment for FreeBSD to config.mkAaron Marcher
Apparently `-lkvm` is needed for swap on FreeBSD Thanks to Micheal Buch and Jason Smith (See thread https://lists.suckless.org/dev/1907/33594.html)
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