add manpage and adjust exitcode
This commit is contained in:
parent
1aa26fc6d3
commit
4747fbc237
|
@ -276,7 +276,7 @@ int main(int argc, char **argv) {
|
||||||
if(settings.c) {
|
if(settings.c) {
|
||||||
c = check_colors(colors);
|
c = check_colors(colors);
|
||||||
if(c == 0) {
|
if(c == 0) {
|
||||||
return 2;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
.TH COLORS 1 colors
|
||||||
|
.SH NAME
|
||||||
|
colors \- generate colorscheme and run hooks
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B colors [-hefc] [-w path]
|
||||||
|
.SH OPTIONS
|
||||||
|
.TP
|
||||||
|
.B -h
|
||||||
|
disable running hooks (implies -e)
|
||||||
|
.TP
|
||||||
|
.B -e
|
||||||
|
echo colors to stdout
|
||||||
|
.TP
|
||||||
|
.B -c
|
||||||
|
check colors using color checking algorithm
|
||||||
|
.TP
|
||||||
|
.B -f
|
||||||
|
print wallpaper filename to stdout
|
||||||
|
.TP
|
||||||
|
.B -w
|
||||||
|
provide wallpaper path
|
||||||
|
.SH HOOKS
|
||||||
|
When -h is not used, a program at ~/.config/cwal/handler is executed. The first sixteen arguments are the colors in the colorscheme, and the seventeenth argument is the filename.
|
||||||
|
.SH EXIT CODES
|
||||||
|
.TP
|
||||||
|
.B 0
|
||||||
|
Normal exit code
|
||||||
|
.TP
|
||||||
|
.B 1
|
||||||
|
check_colors(...) failed.
|
||||||
|
.SH AUTHOR
|
||||||
|
randomuser
|
Loading…
Reference in New Issue