summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Move components into dedicated subdirectoryLaslo Hunhold2017-09-2420-40/+40
| | | | This brings us a lot more tidiness.
* Get rid of HDR variableLaslo Hunhold2017-09-181-4/+3
| | | | | | | | | | 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.
* Simplify MakefileLaslo Hunhold2017-09-181-20/+1
|
* Fix missing config.h in MakefileQuentin Rameau2017-09-181-1/+4
|
* Added LICENSE statements to all source filesAaron Marcher2017-09-1721-0/+21
|
* Properly declare buf as extern and fix all unused-warningsLaslo Hunhold2017-09-173-3/+6
|
* Rewrite Makefile to accomodate file splitLaslo Hunhold2017-09-173-45/+131
|
* Split into multiple filesAaron Marcher2017-09-1722-740/+826
| | | | | | | | 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
* Add blank line after setlocaleAaron Marcher2017-09-161-0/+1
| | | | setlocale() has to be separated from the signal handling.
* slstatus: set localeKurt Van Dijck2017-09-161-0/+2
| | | | | | | 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>
* Added CPU iowait to READMEAaron Marcher2017-09-161-0/+1
|
* slstatus: add cpu_iowaitKurt Van Dijck2017-09-162-11/+34
| | | | | | | | | | 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>
* Deleted slstatus.png as it is unnecessaryAaron Marcher2017-09-141-0/+0
|
* slstatus load_avg format stringKamil CholewiƄski2017-09-102-4/+4
|
* Added IPv6 address functionAaron Marcher2017-08-143-6/+39
| | | | | | - Renamed "ip" function to "ipv4" - Added "ipv6" function - Adjusted README and config.def.h accordingly
* sexy config.def.h tableAaron Marcher2017-08-141-35/+38
|
* Fix a little logic errorLaslo Hunhold2017-08-141-1/+1
|
* Add pscanf()Laslo Hunhold2017-08-141-157/+66
| | | | This reduces a lot of equivalent code to one function call.
* Refactor main()Laslo Hunhold2017-08-132-36/+41
| | | | | | | | | | | | | | | | | 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.
* Simplify signal handling a bitLaslo Hunhold2017-08-131-7/+5
|
* Remove unnecessary prototypesLaslo Hunhold2017-08-131-3/+0
|
* Remove unnecessary blank lines after license-noticeLaslo Hunhold2017-08-132-2/+0
|
* Fix man page .Os fieldAaron Marcher2017-08-131-1/+1
|
* Added Makefile target for distribution tarballs.Aaron Marcher2017-08-131-0/+8
|
* Fixed man page pathAaron Marcher2017-08-131-1/+1
| | | | | 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.
* slstatus != dmenu lolAaron Marcher2017-08-121-2/+2
|
* Removed #define for unknown_strAaron Marcher2017-08-122-70/+70
| | | | | Debugging #define is very difficult. The performance overhead of static const char is negligible.
* Removed #define for update intervalAaron Marcher2017-08-122-3/+3
| | | | | Debugging #define, especially in mathematical constructs is very difficult. The performance overhead of static const int is negligible.
* Updated LICENSEAaron Marcher2017-08-121-1/+1
| | | | Extended Ali H. Fardan contribution dates
* keyboard_indicators: fix segfault when -s is specifiedAli H. Fardan2017-08-121-0/+6
|
* Fixed possible NULL-deref and removed unnecessary XOpenDisplay()Aaron Marcher2017-08-111-2/+5
| | | | | | | - 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.
* Add and use LEN() macroLaslo Hunhold2017-08-111-5/+6
|
* Refactor battery_state()Laslo Hunhold2017-08-111-12/+17
|
* Reformatted LICENSE to fit 75 character widthAaron Marcher2017-08-101-10/+10
|
* Print usage() when we are left with argumentsLaslo Hunhold2017-08-101-0/+4
|
* Reduce -o | -n to -sLaslo Hunhold2017-08-102-26/+13
| | | | | 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.
* Remove d- and v-flagsLaslo Hunhold2017-08-103-24/+4
| | | | | | | 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.
* Convert slstatus.1 to mandoc, simplify it and remove -hLaslo Hunhold2017-08-102-40/+42
| | | | | | 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.
* Refactor build systemLaslo Hunhold2017-08-102-21/+23
|
* New README in plain textAaron Marcher2017-08-102-76/+56
|
* Removed TODO.mdAaron Marcher2017-08-101-0/+0
|
* Removed CONTRIBUTING.mdAaron Marcher2017-08-101-6/+0
|
* Moved contributors to LICENSEAaron Marcher2017-08-102-11/+10
|
* Copyright sign (C) is not required in LICENSEAaron Marcher2017-08-101-2/+2
| | | | According to https://opensource.org/licenses/ISC
* Removed .gitignore from repositoryAaron Marcher2017-08-101-3/+0
| | | | | A file outside the repository (.git/info/exclude) can replace this and suits better for this usecase.
* new arg.h version by frignAaron Marcher2017-08-102-50/+30
|
* add num_files() function for maildirs ;)aaron marcher2017-08-063-0/+27
|
* updated readmeAaron Marcher2017-06-131-1/+2
|
* check for fgets/fscanf return valuesAaron Marcher2017-06-131-35/+75
|
* use a static buffer instead of dynamic memoryAaron Marcher2017-06-132-242/+204
|