commit b5099e3cd36e3f5892573bf706f6ff6c698c8e3a
parent 3d6b294d117d1f2ebf387cae3af708169612c61d
Author: Chris Guillott <chris@techfo.xyz>
Date: Sun, 19 Nov 2017 15:25:25 -0500
tweak manpage; make keylayout turn the clock on
Diffstat:
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/i3lock.1 b/i3lock.1
@@ -126,6 +126,21 @@ Images may still be overlaid over the blurred screenshot.
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.
diff --git a/i3lock.c b/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