tweak manpage; make keylayout turn the clock on

This commit is contained in:
Chris Guillott 2017-11-19 15:25:25 -05:00
parent 3d6b294d11
commit b5099e3cd3
2 changed files with 17 additions and 0 deletions

View File

@ -125,6 +125,21 @@ Images may still be overlaid over the blurred screenshot.
.B \-\-indicator
Forces the indicator to always be visible, instead of only showing on activity.
.TP
.B \-\-keylayout mode
Displays the keylayout. Modes are as follows:
.RS
.RS
0 - Displays the full string returned by the query, i.e. "English (US)"
1 - Displays up until the first parenthesis, i.e. "English"
2 - Displays just the contents of the parenthesis, i.e. "US"
.RE
.RE
.TP
.B \-\-composite
Some compositors have problems with i3lock trying to render over them, so this argument is disabled by default. However, some will work properly with it, so it's been left enabled.

View File

@ -1271,6 +1271,8 @@ int main(int argc, char *argv[]) {
// if not NULL, attempt to display stuff
// need to code some sane defaults for it
layout_text = get_keylayoutname(atoi(optarg));
if (layout_text)
show_clock = true;
}
else if (strcmp(longopts[longoptind].name, "timestr") == 0) {
//read in to timestr