summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* remove format characters from stat functionsAaron Marcher2017-06-122-12/+12
|
* add cpu_freq functionAaron Marcher2017-06-122-0/+19
|
* add battery_power functionAaron Marcher2017-06-122-0/+21
|
* added option to output only once and exit afterwardsAaron Marcher2017-05-112-7/+16
|
* enable stack protector and compile to position independent executableAaron Marcher2017-04-201-1/+1
|
* simplified and improved vol_perc()Aaron Marcher2017-04-201-6/+12
|
* fix overflow in run_command()Aaron Marcher2017-04-201-1/+1
|
* username(): get rid of unneeded uid variableAaron Marcher2017-04-201-2/+1
|
* Merge pull request #39 from stoeckmann/fgetsAaron Marcher2017-04-201-1/+1
|\ | | | | On success, fgets always terminates the result.
| * On success, fgets always terminates the result.Tobias Stoeckmann2017-04-041-1/+1
|/ | | | | | | | If fgets succeeds, then the resulting char array is always terminated by a '\0'. No need to keep extra space, therefore sizeof(buf) is the correct argument. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
* Merge pull request #38 from stoeckmann/terminating-nulAaron Marcher2017-04-021-6/+6
|\ | | | | Fixed out of boundary write on long lines.
| * Fixed out of boundary write on long lines.Tobias Stoeckmann2017-04-021-6/+6
|/ | | | | | | | | | | The terminating nul character ('\0') could be written outside the boundary of the buffer which is used to read characters. If "sizeof(buffer)" characters are read, the resulting value must not be used as index, because that's an off by one. Read sizeof(buffer)-1 bytes instead. Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
* loading thresholds stateAaron Marcher2017-03-301-0/+2
|
* Fixed XCloseDisplay() which is not reached in keyboard_indicators()Aaron Marcher2017-01-231-2/+1
|
* Added keyboard_indicators (Fixes #31)Aaron Marcher2017-01-163-0/+27
|
* Makefile fix and vol_perc fix for muteAaron Marcher2017-01-092-4/+2
|
* simplified MakefileAaron Marcher2017-01-091-12/+10
|
* small Makefile tweakAaron Marcher2017-01-091-1/+1
|
* Makefile: Added back config.h handling in MakefileAaron Marcher2017-01-091-1/+4
|
* Makefile: Fixes #35Aaron Marcher2017-01-091-0/+3
|
* todoAaron Marcher2017-01-071-6/+0
|
* removed ./extern/Aaron Marcher2017-01-072-1/+1
|
* removed strlcat dependency (was used only once)Aaron Marcher2017-01-072-61/+1
|
* got rid of concat.hAaron Marcher2017-01-072-35/+14
|