summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2017-08-12keyboard_indicators: fix segfault when -s is specifiedAli H. Fardan
2017-08-11Fixed possible NULL-deref and removed unnecessary XOpenDisplay()Aaron Marcher
- Added a check for the return value of XOpenDisplay() in main(). This fixes a possible NULL-deref. - Removed unnsecessary XOpenDisplay and XCloseDisplay from keyboard_indicators(). The ones in main() are sufficent.
2017-08-11Add and use LEN() macroLaslo Hunhold
2017-08-11Refactor battery_state()Laslo Hunhold
2017-08-10Reformatted LICENSE to fit 75 character widthAaron Marcher
2017-08-10Print usage() when we are left with argumentsLaslo Hunhold
2017-08-10Reduce -o | -n to -sLaslo Hunhold
What we really want is to either output to WM_NAME or stdout. If we want just one single line, we do slstatus | head -n 1.
2017-08-10Remove d- and v-flagsLaslo Hunhold
d-flag: There's no need for that, use the &-operator or fork+exec in a non-shell-context. In the latter case you get the PID for free. v-flag: If you want to find out which version of a package is installed, consult your package manager. That's his job.
2017-08-10Convert slstatus.1 to mandoc, simplify it and remove -hLaslo Hunhold
We also change the semantics of -v to only return the version information. There is now no need for usage() to exit with anything other than 1.
2017-08-10Refactor build systemLaslo Hunhold
2017-08-10New README in plain textAaron Marcher
2017-08-10Removed TODO.mdAaron Marcher
2017-08-10Removed CONTRIBUTING.mdAaron Marcher