summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-14Add Darron Anderson to LICENSEAaron Marcher
Thank you for your contribution.
2018-04-14Remove ram_*() from READMEAaron Marcher
2018-04-14Add OpenBSD RAM statsDarron Anderson
2018-03-28Format error messages properlyAaron Marcher
Make use of strerror(errno) and format all errors equally: function ['parameters']: error message
2018-03-28Remove program name from error messagesAaron Marcher
2018-03-28Get rid of err.h as it is not portableAaron Marcher
Replace warn() and warnx() with fprintf() and add <stdio.h> where necessary.
2018-03-28Remove unnecessary headersAaron Marcher
2018-03-26Remove ALSA dependency from READMEAaron Marcher
ALSA is not a dependency anymore as we use /dev/mixer. The corresponding notice about PulseAudio is thus not necessary too.
2018-03-21More robust preprocessor switchesAaron Marcher
Replace #ifdef with #if defined() and #elif with #elif defined() as it should only test if it is defined or not.
2018-03-20uptime: Port to OpenBSD.Aaron Marcher
In OpenBSD uptime gets fetched using sysctl now.
2018-03-19battery_perc: Port to OpenBSD.Aaron Marcher
In OpenBSD battery percentage gets fetched using apm now.
2018-03-18README: Add list of non-portable functionsAaron Marcher
2018-03-18Build Linux-only functions only on LinuxAaron Marcher
2018-03-18README: Add TodoAaron Marcher
2018-02-17Merge pull request #43 from SiIky/unknown_strAaron Marcher
Print unknown_str in case of error
2018-02-17Print unknown_str in case of errorSiIky
func can return NULL in case of error, but no checking is done when printing, and unknown_str wasn't being used anywhere.
2018-01-06Update LICENSE year for myself.Aaron Marcher
2018-01-06Fix a bug in wifi_essid().Aaron Marcher
When an invalid interface name is passed to wifi_essid() it does not close opened sockets.
2017-12-03Small fixes in config.mkAaron Marcher
2017-10-24Update LICENSE for parazydAaron Marcher
2017-10-24Return actual percentage for wifi_perc()parazyd
Implement basic percentage calculation for wifi_perc. With this commit, the function returns correct percentage, since the max of what /proc/net/wireless returns is 70.
2017-09-24Move components into dedicated subdirectoryLaslo Hunhold
This brings us a lot more tidiness.
2017-09-18Get rid of HDR variableLaslo Hunhold
The HDR variable is used for general purpose headers, which are not given in this project. arg.h and config.h are only needed for slstatus.c, not every component $(COM:=.c). This also fixes a problem introduced in e04a3853643df1c98a451969d515d8850f138bcc, where config.h is pulled into the tarball.
2017-09-18Simplify MakefileLaslo Hunhold
2017-09-18Fix missing config.h in MakefileQuentin Rameau
2017-09-17Added LICENSE statements to all source filesAaron Marcher
2017-09-17Properly declare buf as extern and fix all unused-warningsLaslo Hunhold
2017-09-17Rewrite Makefile to accomodate file splitLaslo Hunhold
2017-09-17Split into multiple filesAaron Marcher
For multiple reasons the program is now split: - Make future porting to OpenBSD easier - Assign header includes to individiual functions - Make future program extensions easier - Recompile only changed parts
2017-09-16Add blank line after setlocaleAaron Marcher
setlocale() has to be separated from the signal handling.
2017-09-16slstatus: set localeKurt Van Dijck
I want my date & time printed according my locale settings. This commit enables that Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
2017-09-16Added CPU iowait to READMEAaron Marcher
2017-09-16slstatus: add cpu_iowaitKurt Van Dijck
This commit introduces the cpu_iowait item, this is the percentage of cpu time spent waiting on disks. High numbers typically indicate that your system is not responsive due to disk IO. This commit also avoid sleeping inside the cpu_perc and cpu_iowait functions: waiting in either one implies lost info for the other. Signed-off-by: Kurt Van Dijck <dev.kurt@vandijck-laurijssen.be>
2017-09-14Deleted slstatus.png as it is unnecessaryAaron Marcher
2017-09-10slstatus load_avg format stringKamil CholewiƄski
2017-08-14Added IPv6 address functionAaron Marcher
- Renamed "ip" function to "ipv4" - Added "ipv6" function - Adjusted README and config.def.h accordingly
2017-08-14sexy config.def.h tableAaron Marcher
2017-08-14Fix a little logic errorLaslo Hunhold
2017-08-14Add pscanf()Laslo Hunhold
This reduces a lot of equivalent code to one function call.
2017-08-13Refactor main()Laslo Hunhold
We remove the hack with the sleep and global "delay"-variable and use a monotonic clock to derive the desired monotonic properties of the tool. Inside each function that demands a personal delay we can then just do a nanosleep() and be done with it. It's a shame that timespec is so ugly to work with, but there's really no way to make it more beautiful. However, at this cost though we finally can set the interval times in milliseconds and not only just seconds. We remove setlocale(), because nothing good ever came out of this function. Besides that we have some more code refactoring, especially in the argument loop which saves us a bit of complexity.
2017-08-13Simplify signal handling a bitLaslo Hunhold
2017-08-13Remove unnecessary prototypesLaslo Hunhold
2017-08-13Remove unnecessary blank lines after license-noticeLaslo Hunhold
2017-08-13Fix man page .Os fieldAaron Marcher
2017-08-13Added Makefile target for distribution tarballs.Aaron Marcher
2017-08-13Fixed man page pathAaron Marcher
According to the FHS, /usr/local/share/man is the correct man page path in this projects's case. Set this to default in config.mk.
2017-08-12slstatus != dmenu lolAaron Marcher
2017-08-12Removed #define for unknown_strAaron Marcher
Debugging #define is very difficult. The performance overhead of static const char is negligible.
2017-08-12Removed #define for update intervalAaron Marcher
Debugging #define, especially in mathematical constructs is very difficult. The performance overhead of static const int is negligible.
2017-08-12Updated LICENSEAaron Marcher
Extended Ali H. Fardan contribution dates