summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-11-30Add a -1 option flagDaniel Moch
Allow slstatus to be used by programs that can grab status by calling an external program on a periodic basis (e.g. tmux)
2020-11-30Handle SIGUSR1 for forced refreshesMart Lubbers
At some point one might want to force a refresh for example after checking email or changing the volume. Sending a SIGUSR1 achieves this now
2020-11-30Fix temperature reporting on OpenBSDdsp
On OpenBSD although the formula is correct due to integer division a temperature of for example 54 celsius appears as 5. this patch first treats it as a floating point op before retaining the non decimal digits
2020-11-30Full battery indicatorCem Keylan
When you reach full charge the symbol would change to a question mark "?" as "Full" was not defined, now it changes to an "o" instead.
2020-11-30Add separator moduleRyan Kes
2019-02-17Follow International System of Units spacing rulesIngo Feinerer
2019-02-16Add OS-support notice to READMEAaron Marcher
2019-02-16Add ram and swap components on FreeBSDMichael Buch
2019-02-16cpu_perc: Check for division by zeroIngo Feinerer
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-05Update LICENSEAaron Marcher
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-07-06slstatus.h: Fix coding styleAaron Marcher
Function declarations should include variable names. For functions with different parameters on different platfroms they are left out.
2018-07-06fmt_human: Improve typesAaron Marcher
size_t may not be enough, use 64 bit integers
2018-06-04Add Ian Remmler to LICENSEAaron 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-29Update LICENSE for QuentinAaron Marcher
2018-05-29Flush the output stream instead of arbitrarily disabling bufferingQuentin Rameau
This is (arguably) more elegant and it matches Xlib output logic. Also use puts instead of printf as we don't do formating there.
2018-05-29Don't explicitly list each component-targetLaslo Hunhold
I made a mistake while reading the Posix spec. In fact, the implicit prerequisite imposed by the .c.o-rule is evaluated as expected, even if the .c is not given in the target rule. This partially reverts 0efd64ffaa04715eff9c834c437562952c4531cd.
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-28Update LICENSE for TobiasAaron Marcher
2018-05-28Fix object order and stop using a GNU make idiomLaslo Hunhold
2018-05-27Explicitly list component-objects in the MakefileLaslo Hunhold
There was a long tinkering process at farbfeld about this, but the sad truth is that it's the only way to make the Makefile truly portable. Listing it just as $(COM:=.o): config.mk $(REQ:=.h) omits the dependency on the c-file itself, which incurs that strictly speaking the object file is not depending on the source file, which is nonsense. You don't see strictly Posix compliant Makefiles around very often and most use nasty GNU-extensions everywhere. It is a good idea to go ahead as a fitting example and show how to write them portably.