Browse Source

tweak manpage; make keylayout turn the clock on

master
Chris Guillott 7 years ago
parent
commit
b5099e3cd3
  1. 15
      i3lock.1
  2. 2
      i3lock.c

15
i3lock.1

@ -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.

2
i3lock.c

@ -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

Loading…
Cancel
Save