561 Commits (master)
 

Author SHA1 Message Date
Aaron Marcher 84a2f117a3 Update README 5 years ago
Aaron Marcher ae8a658d0c Update LICENSE 5 years ago
Aaron Marcher dd5bfc3e51 Add comment for FreeBSD to config.mk
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)
5 years ago
Ingo Feinerer 9ac721c23f Use the sioctl_open(3) OpenBSD API to access vol
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
5 years ago
Daniel Moch aaf279f6dd Add a -1 option flag
Allow slstatus to be used by programs that can grab status by calling
an external program on a periodic basis (e.g. tmux)
5 years ago
Mart Lubbers d1b23e5509 Handle SIGUSR1 for forced refreshes
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
5 years ago
dsp 3fc2872d1b Fix temperature reporting on OpenBSD
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
5 years ago
Cem Keylan 3ac985eb03 Full battery indicator
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.
5 years ago
Ryan Kes 2b0f50d1aa Add separator module 5 years ago
Ingo Feinerer b14e039639 Follow International System of Units spacing rules 7 years ago
Aaron Marcher 93daf4f35e Add OS-support notice to README 7 years ago
Michael Buch a1ac203d16 Add ram and swap components on FreeBSD 7 years ago
Ingo Feinerer 10bdf01b71 cpu_perc: Check for division by zero 7 years ago
Ingo Feinerer d518472e62 Fix CPU frequency on OpenBSD 7 years ago
Michael Buch a9193a757a close file descriptors and fix return values 7 years ago
Ingo Feinerer c1dc896c80 Add native OpenBSD support for mute/volume
Based on functionality in dstat by Joerg Jung.
7 years ago
Michael Buch e724907cc3 wifi component on FreeBSD 7 years ago
Michael Buch 86849d295b Add FreeBSD support for netspeeds, entropy and ip components 7 years ago
Aaron Marcher b6d0bd2fe4 Update LICENSE 7 years ago
Michael Buch 120d150594 Add support for cpu and uptime components on FreeBSD 7 years ago
Michael Buch ec306623df Add FreeBSD support for temperature and battery components 7 years ago
Aaron Marcher dd7f1896aa ram: Consistency with line breaks 8 years ago
Aaron Marcher e213b48122 Fix whitespace 8 years ago
Aaron Marcher 96ddf4e1de Consistency with 80 char limit and breaks 8 years ago
Aaron Marcher c93971748c wifi_perc: Simplify on Linux
Remove unnecessary variable
8 years ago
Aaron Marcher acfa1f50c2 Simplify format specifiers for uintmax_t 8 years ago
Aaron Marcher c2492c3f99 cpu_freq: Simplify with E-notation
Thanks to the FRIGN
8 years ago
Aaron Marcher e20b50112e cpu_freq: Change to 64 bit integers
Remove unnecessary cast to size_t
8 years ago
Aaron Marcher 43a12832a3 Change uint64_t to uintmax_t 8 years ago
Aaron Marcher d76b1a21fc battery: 64 bit ints on Linux 8 years ago
Aaron Marcher b792b7ab69 cpu: Use uint64_t on OpenBSD 8 years ago
Aaron Marcher 609ef3aa1f battery: Remove unnecessary defines for paths 8 years ago
Aaron Marcher 16e15217c6 uptime: Improve typing and sort headers 8 years ago
Aaron Marcher d1e3398822 temperature: Improve types 8 years ago
Aaron Marcher ab4f24a612 ram: Check for theoretical division by zero 8 years ago
Aaron Marcher fa7c266e2b ram: Use POSIX types 8 years ago
Aaron Marcher b65c058598 entropy: Use POSIX types for format specifiers 8 years ago
Aaron Marcher c59b64e643 entropy: Improve types 8 years ago
Aaron Marcher 51ff7ce2b9 Consistent paramter naming for components 8 years ago
Aaron Marcher efa26f4f35 slstatus.h: Fix coding style
Function declarations should include variable names.
For functions with different parameters on different platfroms they are
left out.
8 years ago
Aaron Marcher 381c2fa12a fmt_human: Improve types
size_t may not be enough, use 64 bit integers
8 years ago
Aaron Marcher 1452a44832 Add Ian Remmler to LICENSE 8 years ago
Ian Remmler 32e0a2bfcc Add flexible formatting to keyboard_indicators.
Updated for style.
8 years ago
Tobias Tschinkowitz 005b541717 uptime: unification of the uptime function for linux/openbsd 8 years ago
Tobias Tschinkowitz 8c8091f4f1 wifi: fixed disconnected wifi status on openbsd 8 years ago
Aaron Marcher b0401b13bb Clean up header includes
- Remove <errno.h> because related functions are in util.c now
 - Remove corresponding <string.h> if not used otherwise
8 years ago
Aaron Marcher c0436810ef Update LICENSE for Quentin 8 years ago
Quentin Rameau 7fe240856e Flush the output stream instead of arbitrarily disabling buffering
This is (arguably) more elegant and it matches Xlib output logic.
Also use puts instead of printf as we don't do formating there.
8 years ago
Laslo Hunhold 81d5b427cb Don't explicitly list each component-target
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 0efd64ffaa.
8 years ago
Tobias Tschinkowitz 0c29fc56f9 swap: removed unused include 8 years ago