summaryrefslogtreecommitdiffstats
path: root/swaylock
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-10 22:08:42 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-10 22:09:31 -0400
commit22d152f1fea35960eab23afdf78e87d2f6483d6e (patch)
tree68e6c321cb9762af22cc3455478911e7fd0b58dd /swaylock
parentImplement swaylock customization flags (diff)
downloadsway-22d152f1fea35960eab23afdf78e87d2f6483d6e.tar.gz
sway-22d152f1fea35960eab23afdf78e87d2f6483d6e.tar.zst
sway-22d152f1fea35960eab23afdf78e87d2f6483d6e.zip
Change formatting of swaylock usage in the code
Diffstat (limited to 'swaylock')
-rw-r--r--swaylock/main.c126
1 files changed, 69 insertions, 57 deletions
diff --git a/swaylock/main.c b/swaylock/main.c
index abdb00f5..faebc757 100644
--- a/swaylock/main.c
+++ b/swaylock/main.c
@@ -487,63 +487,75 @@ int main(int argc, char **argv) {
487 const char usage[] = 487 const char usage[] =
488 "Usage: swaylock [options...]\n" 488 "Usage: swaylock [options...]\n"
489 "\n" 489 "\n"
490 " -c, --color <color> Turn the screen into the given color" 490 " -c, --color <color> "
491 " instead of white.\n" 491 "Turn the screen into the given color instead of white.\n"
492 " -e, --ignore-empty-password When an empty password is provided" 492 " -e, --ignore-empty-password "
493 " by the user, do not validate it.\n" 493 "When an empty password is provided, do not validate it.\n"
494 " -f, --daemonize Detach from the controlling terminal" 494 " -f, --daemonize "
495 " after locking.\n" 495 "Detach from the controlling terminal after locking.\n"
496 " -h, --help Show help message and quit.\n" 496 " -h, --help "
497 " -i, --image [<output>:]<path> Display the given image.\n" 497 "Show help message and quit.\n"
498 " -s, --scaling <mode> Scaling mode: stretch, fill, fit," 498 " -i, --image [<output>:]<path> "
499 " center, tile.\n" 499 "Display the given image.\n"
500 " -t, --tiling Same as --scaling=tile.\n" 500 " -s, --scaling <mode> "
501 " -u, --no-unlock-indicator Disable the unlock indicator.\n" 501 "Scaling mode: stretch, fill, fit, center, tile.\n"
502 " -v, --version Show the version number and quit.\n" 502 " -t, --tiling "
503 " --bs-hl-color <color> Sets the color of backspace" 503 "Same as --scaling=tile.\n"
504 " highlight segments.\n" 504 " -u, --no-unlock-indicator "
505 " --font <font> Sets the font of the text.\n" 505 "Disable the unlock indicator.\n"
506 " --indicator-radius <radius> Sets the indicator radius.\n" 506 " -v, --version "
507 " --indicator-thickness <thick> Sets the indicator thickness.\n" 507 "Show the version number and quit.\n"
508 " --inside-color <color> Sets the color of the inside of the" 508 " --bs-hl-color <color> "
509 " indicator.\n" 509 "Sets the color of backspace highlight segments.\n"
510 " --inside-clear-color <color> Sets the color of the inside of the" 510 " --font <font> "
511 " indicator when cleared.\n" 511 "Sets the font of the text.\n"
512 " --inside-ver-color <color> Sets the color of the inside of the" 512 " --indicator-radius <radius> "
513 " indicator when verifying.\n" 513 "Sets the indicator radius.\n"
514 " --inside-wrong-color <color> Sets the color of the inside of the" 514 " --indicator-thickness <thick> "
515 " indicator when invalid.\n" 515 "Sets the indicator thickness.\n"
516 " --key-hl-color <color> Sets the color of the key press" 516 " --inside-color <color> "
517 " highlight segments.\n" 517 "Sets the color of the inside of the indicator.\n"
518 " --line-color <color> Sets the color of the line between" 518 " --inside-clear-color <color> "
519 " the inside and ring.\n" 519 "Sets the color of the inside of the indicator when cleared.\n"
520 " --line-clear-color <color> Sets the color of the line between" 520 " --inside-ver-color <color> "
521 " the inside and ring when cleared.\n" 521 "Sets the color of the inside of the indicator when verifying.\n"
522 " --line-ver-color <color> Sets the color of the line between" 522 " --inside-wrong-color <color> "
523 " the inside and ring when verifying.\n" 523 "Sets the color of the inside of the indicator when invalid.\n"
524 " --line-wrong-color <color> Sets the color of the line between" 524 " --key-hl-color <color> "
525 " the inside and ring when invalid.\n" 525 "Sets the color of the key press highlight segments.\n"
526 " -n, --line-uses-inside Use the inside color for the line" 526 " --line-color <color> "
527 " between the inside and ring.\n" 527 "Sets the color of the line between the inside and ring.\n"
528 " -r, --line-uses-ring Use the ring color for the line" 528 " --line-clear-color <color> "
529 " between the inside and ring.\n" 529 "Sets the color of the line between the inside and ring when "
530 " --ring-color <color> Sets the color of the ring of the" 530 "cleared.\n"
531 " indicator.\n" 531 " --line-ver-color <color> "
532 " --ring-clear-color <color> Sets the color of the ring of the" 532 "Sets the color of the line between the inside and ring when "
533 " indicator when cleared.\n" 533 "verifying.\n"
534 " --ring-ver-color <color> Sets the color of the ring of the" 534 " --line-wrong-color <color> "
535 " indicator when verifying.\n" 535 "Sets the color of the line between the inside and ring when "
536 " --ring-wrong-color <color> Sets the color of the ring of the" 536 "invalid.\n"
537 " indicator when invalid.\n" 537 " -n, --line-uses-inside "
538 " --separator-color <color> Sets the color of the lines that" 538 "Use the inside color for the line between the inside and ring.\n"
539 " separate highlight segments.\n" 539 " -r, --line-uses-ring "
540 " --text-color <color> Sets the color of the text.\n" 540 "Use the ring color for the line between the inside and ring.\n"
541 " --text-clear-color <color> Sets the color of the text when" 541 " --ring-color <color> "
542 " cleared.\n" 542 "Sets the color of the ring of the indicator.\n"
543 " --text-ver-color <color> Sets the color of the text when" 543 " --ring-clear-color <color> "
544 " verifying.\n" 544 "Sets the color of the ring of the indicator when cleared.\n"
545 " --text-wrong-color <color> Sets the color of the text when" 545 " --ring-ver-color <color> "
546 " invalid.\n" 546 "Sets the color of the ring of the indicator when verifying.\n"
547 " --ring-wrong-color <color> "
548 "Sets the color of the ring of the indicator when invalid.\n"
549 " --separator-color <color> "
550 "Sets the color of the lines that separate highlight segments.\n"
551 " --text-color <color> "
552 "Sets the color of the text.\n"
553 " --text-clear-color <color> "
554 "Sets the color of the text when cleared.\n"
555 " --text-ver-color <color> "
556 "Sets the color of the text when verifying.\n"
557 " --text-wrong-color <color> "
558 "Sets the color of the text when invalid.\n"
547 "\n" 559 "\n"
548 "All <color> options are of the form <rrggbb[aa]>.\n"; 560 "All <color> options are of the form <rrggbb[aa]>.\n";
549 561