clock: update help message & man page

pull/7/head
Sergey Alirzaev 2014-05-19 12:11:33 +04:00 committed by Alexey Ignatov
parent 84fa982b5e
commit b6ef811d7a
2 changed files with 15 additions and 2 deletions

View File

@ -23,12 +23,15 @@ i3lock \- improved screen locker
.IR image.png \|]
.RB [\|\-c
.IR color \|]
.RB [\|\-F
.IR fgcolor \|]
.RB [\|\-t\|]
.RB [\|\-p
.IR pointer\|]
.RB [\|\-u\|]
.RB [\|\-e\|]
.RB [\|\-I\|]
.RB [\|\-T\|]
.RB [\|\-f\|]
.SH DESCRIPTION
@ -93,6 +96,10 @@ Display the given PNG image instead of a blank screen.
Turn the screen into the given color instead of white. Color must be given in 3-byte
format: rrggbb (i.e. ff0000 is red).
.TP
.BI \-F\ rrggbb \fR,\ \fB\-\-fgcolor= rrggbb
Sets the color used for text.
.TP
.B \-t, \-\-tiling
If an image is specified (via \-i) it will display the image tiled all over the screen
@ -116,6 +123,12 @@ another try. This can be useful if the XF86ScreenSaver key is used to
put a laptop to sleep and bounce on resume or if you happen to wake up
your computer with the enter key.
.TP
.B \-T, \-\-time
Makes
.B i3lock
draw the current time in the middle of the screen.
.TP
.B \-f, \-\-show-failed-attempts
Show the number of failed attempts, if any.

View File

@ -836,8 +836,8 @@ int main(int argc, char *argv[]) {
show_failed_attempts = true;
break;
default:
errx(EXIT_FAILURE, "Syntax: i3lock [-v] [-n] [-b] [-d] [-c color] [-u] [-p win|default]"
" [-i image.png] [-t] [-e] [-I] [-f]"
errx(EXIT_FAILURE, "Syntax: i3lock [-v] [-n] [-b] [-d] [-c bgcolor] [-F fgcolor] [-u] [-p win|default]"
" [-i image.png] [-t] [-e] [-I] [-T] [-f]"
);
}
}