mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2025-02-17 15:55:52 -05:00
tweak manpage; make keylayout turn the clock on
This commit is contained in:
parent
3d6b294d11
commit
b5099e3cd3
2 changed files with 17 additions and 0 deletions
15
i3lock.1
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
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…
Add table
Reference in a new issue