Fix, clean up and sync docs and completions
This commit is contained in:
parent
ba31e2eaee
commit
426e1ce93d
@ -6,25 +6,78 @@ _swaylock()
|
|||||||
_get_comp_words_by_ref -n : cur prev
|
_get_comp_words_by_ref -n : cur prev
|
||||||
|
|
||||||
short=(
|
short=(
|
||||||
-h
|
-C
|
||||||
-c
|
-c
|
||||||
|
-d
|
||||||
|
-e
|
||||||
|
-f
|
||||||
|
-F
|
||||||
|
-h
|
||||||
|
-i
|
||||||
|
-k
|
||||||
|
-K
|
||||||
|
-L
|
||||||
|
-l
|
||||||
|
-n
|
||||||
|
-r
|
||||||
-s
|
-s
|
||||||
-t
|
-t
|
||||||
-v
|
|
||||||
-i
|
|
||||||
-u
|
-u
|
||||||
-f
|
-v
|
||||||
)
|
)
|
||||||
|
|
||||||
long=(
|
long=(
|
||||||
--help
|
--bs-hl-color
|
||||||
|
--caps-lock-bs-hl-color
|
||||||
|
--caps-lock-key-hl-color
|
||||||
--color
|
--color
|
||||||
|
--config
|
||||||
|
--daemonize
|
||||||
|
--debug
|
||||||
|
--disable-caps-lock-text
|
||||||
|
--font
|
||||||
|
--font-size
|
||||||
|
--help
|
||||||
|
--hide-keyboard-layout
|
||||||
|
--ignore-empty-password
|
||||||
|
--image
|
||||||
|
--indicator-caps-lock
|
||||||
|
--indicator-idle-visible
|
||||||
|
--indicator-radius
|
||||||
|
--indicator-thickness
|
||||||
|
--inside-caps-lock-color
|
||||||
|
--inside-clear-color
|
||||||
|
--inside-color
|
||||||
|
--inside-ver-color
|
||||||
|
--inside-wrong-color
|
||||||
|
--key-hl-color
|
||||||
|
--layout-bg-color
|
||||||
|
--layout-border-color
|
||||||
|
--layout-text-color
|
||||||
|
--line-caps-lock-color
|
||||||
|
--line-clear-color
|
||||||
|
--line-color
|
||||||
|
--line-uses-inside
|
||||||
|
--line-uses-ring
|
||||||
|
--line-ver-color
|
||||||
|
--line-wrong-color
|
||||||
|
--no-unlock-indicator
|
||||||
|
--ring-caps-lock-color
|
||||||
|
--ring-clear-color
|
||||||
|
--ring-color
|
||||||
|
--ring-ver-color
|
||||||
|
--ring-wrong-color
|
||||||
--scaling
|
--scaling
|
||||||
|
--separator-color
|
||||||
|
--show-failed-attempts
|
||||||
|
--show-keyboard-layout
|
||||||
|
--text-caps-lock-color
|
||||||
|
--text-clear-color
|
||||||
|
--text-color
|
||||||
|
--text-ver-color
|
||||||
|
--text-wrong-color
|
||||||
--tiling
|
--tiling
|
||||||
--version
|
--version
|
||||||
--image
|
|
||||||
--no-unlock-indicator
|
|
||||||
--daemonize
|
|
||||||
)
|
)
|
||||||
|
|
||||||
scaling=(
|
scaling=(
|
||||||
@ -33,6 +86,7 @@ _swaylock()
|
|||||||
'fit'
|
'fit'
|
||||||
'center'
|
'center'
|
||||||
'tile'
|
'tile'
|
||||||
|
'solid_color'
|
||||||
)
|
)
|
||||||
|
|
||||||
case $prev in
|
case $prev in
|
||||||
|
@ -1,40 +1,53 @@
|
|||||||
# swaylock(1) completion
|
# swaylock(1) completion
|
||||||
|
|
||||||
complete -c swaylock -s C -l config --description 'The config file to use. Default: $HOME/.swaylock/config, $XDG_CONFIG_HOME/swaylock/config, and SYSCONFDIR/swaylock/config.'
|
complete -c swaylock -l bs-hl-color --description "Sets the color of backspace highlight segments."
|
||||||
complete -c swaylock -s h -l help --description "Show help message and quit."
|
complete -c swaylock -l caps-lock-bs-hl-color --description "Sets the color of backspace highlight segments when Caps Lock is active."
|
||||||
complete -c swaylock -s f -l daemonize --description "Fork into the background after spawning. Note: this is the default bahavior of i3lock."
|
complete -c swaylock -l caps-lock-key-hl-color --description "Sets the color of the key press highlight segments when Caps Lock is active."
|
||||||
complete -c swaylock -s v -l version --description "Show the version number and quit."
|
complete -c swaylock -l color -s c --description "Turn the screen into the given color instead of white."
|
||||||
complete -c swaylock -s s -l socket --description "Use the specified socket path. Otherwise, swaymsg will as sway where the socket is (which is the value of $SWAYSOCK, then of $I350CK)."
|
complete -c swaylock -l config -s C --description "Path to the config file."
|
||||||
complete -c swaylock -s e -l ignore-empty-password --description 'When an empty password is provided by the user, do not validate it.'
|
complete -c swaylock -l daemonize -s f --description "Detach from the controlling terminal after locking."
|
||||||
|
complete -c swaylock -l debug -s d --description "Enable debugging output."
|
||||||
# Appearance
|
complete -c swaylock -l disable-caps-lock-text -s L --description "Disable the Caps Lock text."
|
||||||
complete -c swaylock -s u -l no-unlock-indicator --description "Disable the unlock indicator."
|
complete -c swaylock -l font --description "Sets the font of the text."
|
||||||
complete -c swaylock -s i -l image --description "Display the given image, optionally on the given output. Use -c to set a background color."
|
complete -c swaylock -l font-size --description "Sets a fixed font size for the indicator text."
|
||||||
complete -c swaylock -s s -l scaling --description "Scaling mode for images: stretch, fill, fit, center, or tile."
|
complete -c swaylock -l help -s h --description "Show help message and quit."
|
||||||
complete -c swaylock -s t -l tiling --description "Same as --scaling=tile."
|
complete -c swaylock -l hide-keyboard-layout -s K --description "Hide the current xkb layout while typing."
|
||||||
complete -c swaylock -s c -l color --description "Turn the screen into the given color. If -i is used, this sets the background of the image into the given color. Defaults to white (ffffff), or transparent (00000000) if an image is in use."
|
complete -c swaylock -l ignore-empty-password -s e --description "When an empty password is provided, do not validate it."
|
||||||
complete -c swaylock -l bs-hl-color --description 'Sets the color of backspace highlight segments.'
|
complete -c swaylock -l image -s i --description "Display the given image, optionally only on the given output."
|
||||||
complete -c swaylock -l font --description 'Sets the font of the text inside the indicator.'
|
complete -c swaylock -l indicator-caps-lock -s l --description "Show the current Caps Lock state also on the indicator."
|
||||||
complete -c swaylock -l indicator-idle-visible --description 'Sets the indicator to show even if idle.'
|
complete -c swaylock -l indicator-idle-visible --description "Sets the indicator to show even if idle."
|
||||||
complete -c swaylock -l indicator-radius --description 'Sets the radius of the indicator to radius pixels. Default: 50'
|
complete -c swaylock -l indicator-radius --description "Sets the indicator radius."
|
||||||
complete -c swaylock -l indicator-thickness --description 'Sets the thickness of the indicator to thickness pixels. Default: 10'
|
complete -c swaylock -l indicator-thickness --description "Sets the indicator thickness."
|
||||||
complete -c swaylock -l inside-color --description 'Sets the color of the inside of the indicator when typing or idle.'
|
complete -c swaylock -l inside-caps-lock-color --description "Sets the color of the inside of the indicator when Caps Lock is active."
|
||||||
complete -c swaylock -l inside-clear-color --description 'Sets the color of the inside of the indicator when cleared.'
|
complete -c swaylock -l inside-clear-color --description "Sets the color of the inside of the indicator when cleared."
|
||||||
complete -c swaylock -l inside-ver-color --description 'Sets the color of the inside of the indicator when verifying.'
|
complete -c swaylock -l inside-color --description "Sets the color of the inside of the indicator."
|
||||||
complete -c swaylock -l inside-wrong-color --description 'Sets the color of the inside of the indicator when invalid.'
|
complete -c swaylock -l inside-ver-color --description "Sets the color of the inside of the indicator when verifying."
|
||||||
complete -c swaylock -l key-hl-color --description 'Sets the color of key press highlight segments.'
|
complete -c swaylock -l inside-wrong-color --description "Sets the color of the inside of the indicator when invalid."
|
||||||
complete -c swaylock -l line-color --description 'Sets the color of the lines that separate the inside and outside of the indicator when typing or idle.'
|
complete -c swaylock -l key-hl-color --description "Sets the color of the key press highlight segments."
|
||||||
complete -c swaylock -l line-clear-color --description 'Sets the color of the lines that separate the inside and outside of the indicator when cleared.'
|
complete -c swaylock -l layout-bg-color --description "Sets the background color of the box containing the layout text."
|
||||||
complete -c swaylock -l line-ver-color --description 'Sets the color of the lines that separate the inside and outside of the indicator when verifying.'
|
complete -c swaylock -l layout-border-color --description "Sets the color of the border of the box containing the layout text."
|
||||||
complete -c swaylock -l line-wrong-color --description 'Sets the color of the lines that separate the inside and outside of the indicator when invalid.'
|
complete -c swaylock -l layout-text-color --description "Sets the color of the layout text."
|
||||||
complete -c swaylock -s n -l line-uses-inside --description 'Use the color of the inside of the indicator for the line separating the inside and outside of the indicator.'
|
complete -c swaylock -l line-caps-lock-color --description "Sets the color of the line between the inside and ring when Caps Lock is active."
|
||||||
complete -c swaylock -s r -l line-uses-ring --description 'Use the outer ring\'s color for the line separating the inside and outside of the indicator.'
|
complete -c swaylock -l line-clear-color --description "Sets the color of the line between the inside and ring when cleared."
|
||||||
complete -c swaylock -l ring-color --description 'Sets the color of the outside of the indicator when typing or idle.'
|
complete -c swaylock -l line-color --description "Sets the color of the line between the inside and ring."
|
||||||
complete -c swaylock -l ring-clear-color --description 'Sets the color of the outside of the indicator when cleared.'
|
complete -c swaylock -l line-uses-inside -s n --description "Use the inside color for the line between the inside and ring."
|
||||||
complete -c swaylock -l ring-ver-color --description 'Sets the color of the outside of the indicator when verifying.'
|
complete -c swaylock -l line-uses-ring -s r --description "Use the ring color for the line between the inside and ring."
|
||||||
complete -c swaylock -l ring-wrong-color --description 'Sets the color of the outside of the indicator when invalid.'
|
complete -c swaylock -l line-ver-color --description "Sets the color of the line between the inside and ring when verifying."
|
||||||
complete -c swaylock -l separator-color --description 'Sets the color of the lines that separate highlight segments.'
|
complete -c swaylock -l line-wrong-color --description "Sets the color of the line between the inside and ring when invalid."
|
||||||
complete -c swaylock -l text-color --description 'Sets the color of the text inside the indicator when typing or idle.'
|
complete -c swaylock -l no-unlock-indicator -s u --description "Disable the unlock indicator."
|
||||||
complete -c swaylock -l text-clear-color --description 'Sets the color of the text inside the indicator when cleared.'
|
complete -c swaylock -l ring-caps-lock-color --description "Sets the color of the ring of the indicator when Caps Lock is active."
|
||||||
complete -c swaylock -l text-ver-color --description 'Sets the color of the text inside the indicator when verifying.'
|
complete -c swaylock -l ring-clear-color --description "Sets the color of the ring of the indicator when cleared."
|
||||||
complete -c swaylock -l text-wrong-color --description 'Sets the color of the text inside the indicator when invalid.'
|
complete -c swaylock -l ring-color --description "Sets the color of the ring of the indicator."
|
||||||
|
complete -c swaylock -l ring-ver-color --description "Sets the color of the ring of the indicator when verifying."
|
||||||
|
complete -c swaylock -l ring-wrong-color --description "Sets the color of the ring of the indicator when invalid."
|
||||||
|
complete -c swaylock -l scaling -s s --description "Image scaling mode: stretch, fill, fit, center, tile, solid_color."
|
||||||
|
complete -c swaylock -l separator-color --description "Sets the color of the lines that separate highlight segments."
|
||||||
|
complete -c swaylock -l show-failed-attempts -s F --description "Show current count of failed authentication attempts."
|
||||||
|
complete -c swaylock -l show-keyboard-layout -s k --description "Display the current xkb layout while typing."
|
||||||
|
complete -c swaylock -l text-caps-lock-color --description "Sets the color of the text when Caps Lock is active."
|
||||||
|
complete -c swaylock -l text-clear-color --description "Sets the color of the text when cleared."
|
||||||
|
complete -c swaylock -l text-color --description "Sets the color of the text."
|
||||||
|
complete -c swaylock -l text-ver-color --description "Sets the color of the text when verifying."
|
||||||
|
complete -c swaylock -l text-wrong-color --description "Sets the color of the text when invalid."
|
||||||
|
complete -c swaylock -l tiling -s t --description "Same as --scaling=tile."
|
||||||
|
complete -c swaylock -l version -s v --description "Show the version number and quit."
|
||||||
|
@ -4,38 +4,54 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
_arguments -s \
|
_arguments -s \
|
||||||
'(-C --config)'{-C,--config}'[Path to the config file]:filename:_files' \
|
'(--bs-hl-color)'--bs-hl-color'[Sets the color of backspace highlight segments]:color:' \
|
||||||
'(-c --color)'{-c,--color}'[Turn the screen into the given color instead of white]:color:' \
|
'(--caps-lock-bs-hl-color)'--caps-lock-bs-hl-color'[Sets the color of backspace highlight segments when Caps Lock is active]:color:' \
|
||||||
'(-e --ignore-empty-password)'{-e,--ignore-empty-password}'[When an empty password is provided, do not validate it]' \
|
'(--caps-lock-key-hl-color)'--caps-lock-key-hl-color'[Sets the color of the key press highlight segments when Caps Lock is active]:color:' \
|
||||||
'(-f --daemonize)'{-f,--daemonize}'[Detach from the controlling terminal after locking]' \
|
'(--color -c)'{--color,-c}'[Turn the screen into the given color instead of white]:color:' \
|
||||||
'(-h --help)'{-h,--help}'[Show help message and quit]' \
|
'(--config -C)'{--config,-C}'[Path to the config file]:filename:_files' \
|
||||||
'(-i --image)'{-i,--image}'[Display an image]:filename:_files' \
|
'(--daemonize -f)'{--daemonize,-f}'[Detach from the controlling terminal after locking]' \
|
||||||
'(-s --scaling)'{-s,--scaling}'[Scaling mode]:mode:(stretch fill fit center tile)' \
|
'(--debug -d)'{--debug,-d}'[Enable debugging output]' \
|
||||||
'(-t --tiling)'{-t,--tiling}'[Same as --scaling=tile]' \
|
'(--disable-caps-lock-text -L)'{--disable-caps-lock-text,-L}'[Disable the Caps Lock text]' \
|
||||||
'(-u --no-unlock-indicator)'{-u,--no-unlock-indicator}'[Disable the unlock indicator]' \
|
|
||||||
'(-v --version)'{-v,--version}'[Show the version number and quit]' \
|
|
||||||
'(--bs-hl-color)'--bs-hl-color'[Sets the color of backspace highlights segments]:color:' \
|
|
||||||
'(--font)'--font'[Sets the font of the text]:font:' \
|
'(--font)'--font'[Sets the font of the text]:font:' \
|
||||||
|
'(--font-size)'--font-size'[Sets a fixed font size for the indicator text]' \
|
||||||
|
'(--help -h)'{--help,-h}'[Show help message and quit]' \
|
||||||
|
'(--hide-keyboard-layout -K)'{--hide-keyboard-layout,-K}'[Hide the current xkb layout while typing]' \
|
||||||
|
'(--ignore-empty-password -e)'{--ignore-empty-password,-e}'[When an empty password is provided, do not validate it]' \
|
||||||
|
'(--image -i)'{--image,-i}'[Display the given image, optionally only on the given output]:filename:_files' \
|
||||||
|
'(--indicator-caps-lock -l)'{--indicator-caps-lock,-l}'[Show the current Caps Lock state also on the indicator]' \
|
||||||
'(--indicator-idle-visible)'--indicator-idle-visible'[Sets the indicator to show even if idle]' \
|
'(--indicator-idle-visible)'--indicator-idle-visible'[Sets the indicator to show even if idle]' \
|
||||||
'(--indicator-radius)'--indicator-radius'[Sets the indicator radius]:radius:' \
|
'(--indicator-radius)'--indicator-radius'[Sets the indicator radius]:radius:' \
|
||||||
'(--indicator-thickness)'--indicator-thickness'[Sets the indicator thickness]:thickness:' \
|
'(--indicator-thickness)'--indicator-thickness'[Sets the indicator thickness]:thickness:' \
|
||||||
'(--inside-color)'--inside-color'[Sets the color of the inside of the indicator]:color:' \
|
'(--inside-caps-lock-color)'--inside-caps-lock-color'[Sets the color of the inside of the indicator when Caps Lock is active]:color:' \
|
||||||
'(--inside-clear-color)'--inside-clear-color'[Sets the color of the inside of the indicator when cleared]:color:' \
|
'(--inside-clear-color)'--inside-clear-color'[Sets the color of the inside of the indicator when cleared]:color:' \
|
||||||
'(--inside-clear-color)'--inside-clear-color'[Sets the color of the inside of the indicator when verifying]:color:' \
|
'(--inside-color)'--inside-color'[Sets the color of the inside of the indicator]:color:' \
|
||||||
|
'(--inside-ver-color)'--inside-ver-color'[Sets the color of the inside of the indicator when verifying]:color:' \
|
||||||
'(--inside-wrong-color)'--inside-wrong-color'[Sets the color of the inside of the indicator when invalid]:color:' \
|
'(--inside-wrong-color)'--inside-wrong-color'[Sets the color of the inside of the indicator when invalid]:color:' \
|
||||||
'(--key-hl-color)'--key-hl-color'[Sets the color of the key press highlight segments]:color:' \
|
'(--key-hl-color)'--key-hl-color'[Sets the color of the key press highlight segments]:color:' \
|
||||||
'(--line-color)'--line-color'[Sets the color of the line between the inside and ring]:color:' \
|
'(--layout-bg-color)'--layout-bg-color'[Sets the background color of the box containing the layout text]:color:' \
|
||||||
|
'(--layout-border-color)'--layout-border-color'[Sets the color of the border of the box containing the layout text]:color:' \
|
||||||
|
'(--layout-text-color)'--layout-text-color'[Sets the color of the layout text]:color:' \
|
||||||
|
'(--line-caps-lock-color)'--line-caps-lock-color'[Sets the color of the line between the inside and ring when Caps Lock is active]:color:' \
|
||||||
'(--line-clear-color)'--line-clear-color'[Sets the color of the line between the inside and ring when cleared]:color:' \
|
'(--line-clear-color)'--line-clear-color'[Sets the color of the line between the inside and ring when cleared]:color:' \
|
||||||
|
'(--line-color)'--line-color'[Sets the color of the line between the inside and ring]:color:' \
|
||||||
|
'(--line-uses-inside -n)'{--line-uses-inside,-n}'[Use the inside color for the line between the inside and ring]' \
|
||||||
|
'(--line-uses-ring -r)'{--line-uses-ring,-r}'[Use the ring color for the line between the inside and ring]' \
|
||||||
'(--line-ver-color)'--line-ver-color'[Sets the color of the line between the inside and ring when verifying]:color:' \
|
'(--line-ver-color)'--line-ver-color'[Sets the color of the line between the inside and ring when verifying]:color:' \
|
||||||
'(--line-wrong-color)'--line-wrong-color'[Sets the color of the line between the inside and ring when invalid]:color:' \
|
'(--line-wrong-color)'--line-wrong-color'[Sets the color of the line between the inside and ring when invalid]:color:' \
|
||||||
'(-n --line-uses-inside)'{-n,--line-uses-inside}'[Use the inside color for the line between the inside and ring]' \
|
'(--no-unlock-indicator -u)'{--no-unlock-indicator,-u}'[Disable the unlock indicator]' \
|
||||||
'(-r --line-uses-ring)'{-r,--line--uses-ring}'[Use the ring color for the line between the inside and ring]' \
|
'(--ring-caps-lock-color)'--ring-caps-lock-color'[Sets the color of the ring of the indicator when Caps Lock is active]:color:' \
|
||||||
'(--ring-color)'--ring-color'[Sets the color of the ring of the indicator]:color:' \
|
|
||||||
'(--ring-clear-color)'--ring-clear-color'[Sets the color of the ring of the indicator when cleared]:color:' \
|
'(--ring-clear-color)'--ring-clear-color'[Sets the color of the ring of the indicator when cleared]:color:' \
|
||||||
|
'(--ring-color)'--ring-color'[Sets the color of the ring of the indicator]:color:' \
|
||||||
'(--ring-ver-color)'--ring-ver-color'[Sets the color of the ring of the indicator when verifying]:color:' \
|
'(--ring-ver-color)'--ring-ver-color'[Sets the color of the ring of the indicator when verifying]:color:' \
|
||||||
'(--ring-wrong-color)'--ring-wrong-color'[Sets the color of the ring of the indicator when invalid]:color:' \
|
'(--ring-wrong-color)'--ring-wrong-color'[Sets the color of the ring of the indicator when invalid]:color:' \
|
||||||
|
'(--scaling -s)'{--scaling,-s}'[Image scaling mode: stretch, fill, fit, center, tile, solid_color]:mode:(stretch fill fit center tile solid_color)' \
|
||||||
'(--separator-color)'--separator-color'[Sets the color of the lines that separate highlight segments]:color:' \
|
'(--separator-color)'--separator-color'[Sets the color of the lines that separate highlight segments]:color:' \
|
||||||
'(--text-color)'--text-color'[Sets the color of the text]:color:' \
|
'(--show-failed-attempts -F)'{--show-failed-attempts,-F}'[Show current count of failed authentication attempts]' \
|
||||||
|
'(--show-keyboard-layout -k)'{--show-keyboard-layout,-k}'[Display the current xkb layout while typing]' \
|
||||||
|
'(--text-caps-lock-color)'--text-caps-lock-color'[Sets the color of the text when Caps Lock is active]:color:' \
|
||||||
'(--text-clear-color)'--text-clear-color'[Sets the color of the text when cleared]:color:' \
|
'(--text-clear-color)'--text-clear-color'[Sets the color of the text when cleared]:color:' \
|
||||||
|
'(--text-color)'--text-color'[Sets the color of the text]:color:' \
|
||||||
'(--text-ver-color)'--text-ver-color'[Sets the color of the text when verifying]:color:' \
|
'(--text-ver-color)'--text-ver-color'[Sets the color of the text when verifying]:color:' \
|
||||||
'(--text-wrong-color)'--text-wrong-color'[Sets the color of the text when invalid]:color:'
|
'(--text-wrong-color)'--text-wrong-color'[Sets the color of the text when invalid]:color:' \
|
||||||
|
'(--tiling -t)'{--tiling,-t}'[Same as --scaling=tile]' \
|
||||||
|
'(--version -v)'{--version,-v}'[Show the version number and quit]'
|
||||||
|
5
main.c
5
main.c
@ -548,7 +548,6 @@ static int parse_options(int argc, char **argv, struct swaylock_state *state,
|
|||||||
{"disable-caps-lock-text", no_argument, NULL, 'L'},
|
{"disable-caps-lock-text", no_argument, NULL, 'L'},
|
||||||
{"indicator-caps-lock", no_argument, NULL, 'l'},
|
{"indicator-caps-lock", no_argument, NULL, 'l'},
|
||||||
{"line-uses-inside", no_argument, NULL, 'n'},
|
{"line-uses-inside", no_argument, NULL, 'n'},
|
||||||
{"socket", required_argument, NULL, 'p'},
|
|
||||||
{"line-uses-ring", no_argument, NULL, 'r'},
|
{"line-uses-ring", no_argument, NULL, 'r'},
|
||||||
{"scaling", required_argument, NULL, 's'},
|
{"scaling", required_argument, NULL, 's'},
|
||||||
{"tiling", no_argument, NULL, 't'},
|
{"tiling", no_argument, NULL, 't'},
|
||||||
@ -611,7 +610,7 @@ static int parse_options(int argc, char **argv, struct swaylock_state *state,
|
|||||||
" -h, --help "
|
" -h, --help "
|
||||||
"Show help message and quit.\n"
|
"Show help message and quit.\n"
|
||||||
" -i, --image [[<output>]:]<path> "
|
" -i, --image [[<output>]:]<path> "
|
||||||
"Display the given image.\n"
|
"Display the given image, optionally only on the given output.\n"
|
||||||
" -k, --show-keyboard-layout "
|
" -k, --show-keyboard-layout "
|
||||||
"Display the current xkb layout while typing.\n"
|
"Display the current xkb layout while typing.\n"
|
||||||
" -K, --hide-keyboard-layout "
|
" -K, --hide-keyboard-layout "
|
||||||
@ -621,7 +620,7 @@ static int parse_options(int argc, char **argv, struct swaylock_state *state,
|
|||||||
" -l, --indicator-caps-lock "
|
" -l, --indicator-caps-lock "
|
||||||
"Show the current Caps Lock state also on the indicator.\n"
|
"Show the current Caps Lock state also on the indicator.\n"
|
||||||
" -s, --scaling <mode> "
|
" -s, --scaling <mode> "
|
||||||
"Scaling mode: stretch, fill, fit, center, tile.\n"
|
"Image scaling mode: stretch, fill, fit, center, tile, solid_color.\n"
|
||||||
" -t, --tiling "
|
" -t, --tiling "
|
||||||
"Same as --scaling=tile.\n"
|
"Same as --scaling=tile.\n"
|
||||||
" -u, --no-unlock-indicator "
|
" -u, --no-unlock-indicator "
|
||||||
|
@ -25,10 +25,10 @@ Locks your Wayland session.
|
|||||||
Enable debugging output.
|
Enable debugging output.
|
||||||
|
|
||||||
*-e, --ignore-empty-password*
|
*-e, --ignore-empty-password*
|
||||||
When an empty password is provided by the user, do not validate it.
|
When an empty password is provided, do not validate it.
|
||||||
|
|
||||||
*-F, --show-failed-attempts*
|
*-F, --show-failed-attempts*
|
||||||
Show the number of failed authentication attempts on the indicator.
|
Show current count of failed authentication attempts.
|
||||||
|
|
||||||
*-f, --daemonize*
|
*-f, --daemonize*
|
||||||
Detach from the controlling terminal after locking.
|
Detach from the controlling terminal after locking.
|
||||||
@ -52,30 +52,30 @@ Locks your Wayland session.
|
|||||||
':' to prevent interpreting part of it as <output>.
|
':' to prevent interpreting part of it as <output>.
|
||||||
|
|
||||||
*-k, --show-keyboard-layout*
|
*-k, --show-keyboard-layout*
|
||||||
Force displaying the current xkb layout while typing, even if only one layout
|
Display the current xkb layout while typing.
|
||||||
is configured.
|
|
||||||
|
|
||||||
*-K, --hide-keyboard-layout*
|
*-K, --hide-keyboard-layout*
|
||||||
Force hiding the current xkb layout while typing, even if more than one layout
|
Force hiding the current xkb layout while typing, even if more than one layout
|
||||||
is configured or the show-keyboard-layout option is set.
|
is configured or the show-keyboard-layout option is set.
|
||||||
|
|
||||||
*-L, --disable-caps-lock-text*
|
*-L, --disable-caps-lock-text*
|
||||||
Disable the Caps Lock Text.
|
Disable the Caps Lock text.
|
||||||
|
|
||||||
*-l, --indicator-caps-lock*
|
*-l, --indicator-caps-lock*
|
||||||
Show the current Caps Lock state also on the indicator.
|
Show the current Caps Lock state also on the indicator.
|
||||||
|
|
||||||
*-s, --scaling*
|
*-s, --scaling*
|
||||||
Scaling mode for images: _stretch_, _fill_, _fit_, _center_, or _tile_. Use
|
Image scaling mode: _stretch_, _fill_, _fit_, _center_, _tile_,
|
||||||
the additional mode _solid\_color_ to display only the background color, even
|
_solid\_color_. Use _solid\_color_ to display only the background color, even
|
||||||
if a background image is specified.
|
if a background image is specified.
|
||||||
|
|
||||||
*-t, --tiling*
|
*-t, --tiling*
|
||||||
Same as --scaling=tile.
|
Same as --scaling=tile.
|
||||||
|
|
||||||
*-c, --color* <rrggbb[aa]>
|
*-c, --color* <rrggbb[aa]>
|
||||||
Turn the screen into the given color. If -i is used, this sets the
|
Turn the screen into the given color instead of white. If -i is used, this
|
||||||
background of the image to the given color. Defaults to white (FFFFFF).
|
sets the background of the image to the given color. Defaults to white
|
||||||
|
(FFFFFF).
|
||||||
|
|
||||||
*--bs-hl-color* <rrggbb[aa]>
|
*--bs-hl-color* <rrggbb[aa]>
|
||||||
Sets the color of backspace highlight segments.
|
Sets the color of backspace highlight segments.
|
||||||
@ -87,21 +87,22 @@ Locks your Wayland session.
|
|||||||
Sets the color of the key press highlight segments when Caps Lock is active.
|
Sets the color of the key press highlight segments when Caps Lock is active.
|
||||||
|
|
||||||
*--font* <font>
|
*--font* <font>
|
||||||
Sets the font of the text inside the indicator.
|
Sets the font of the text.
|
||||||
|
|
||||||
|
*--font-size* <size>
|
||||||
|
Sets a fixed font size for the indicator text.
|
||||||
|
|
||||||
*--indicator-idle-visible*
|
*--indicator-idle-visible*
|
||||||
Sets the indicator to show even if idle.
|
Sets the indicator to show even if idle.
|
||||||
|
|
||||||
*--indicator-radius* <radius>
|
*--indicator-radius* <radius>
|
||||||
Sets the radius of the indicator to _radius_ pixels. The default value is
|
Sets the indicator radius. The default value is 50.
|
||||||
50.
|
|
||||||
|
|
||||||
*--indicator-thickness* <thickness>
|
*--indicator-thickness* <thickness>
|
||||||
Sets the thickness of the indicator to _thickness_ pixels. The default value
|
Sets the indicator thickness. The default value is 10.
|
||||||
is 10.
|
|
||||||
|
|
||||||
*--inside-color* <rrggbb[aa]>
|
*--inside-color* <rrggbb[aa]>
|
||||||
Sets the color of the inside of the indicator when typing or idle.
|
Sets the color of the inside of the indicator.
|
||||||
|
|
||||||
*--inside-clear-color* <rrggbb[aa]>
|
*--inside-clear-color* <rrggbb[aa]>
|
||||||
Sets the color of the inside of the indicator when cleared.
|
Sets the color of the inside of the indicator when cleared.
|
||||||
@ -116,7 +117,7 @@ Locks your Wayland session.
|
|||||||
Sets the color of the inside of the indicator when invalid.
|
Sets the color of the inside of the indicator when invalid.
|
||||||
|
|
||||||
*--key-hl-color* <rrggbb[aa]>
|
*--key-hl-color* <rrggbb[aa]>
|
||||||
Sets the color of key press highlight segments.
|
Sets the color of the key press highlight segments.
|
||||||
|
|
||||||
*--layout-bg-color* <rrggbb[aa]>
|
*--layout-bg-color* <rrggbb[aa]>
|
||||||
Sets the background color of the box containing the layout text.
|
Sets the background color of the box containing the layout text.
|
||||||
@ -128,65 +129,59 @@ Locks your Wayland session.
|
|||||||
Sets the color of the layout text.
|
Sets the color of the layout text.
|
||||||
|
|
||||||
*--line-color* <rrggbb[aa]>
|
*--line-color* <rrggbb[aa]>
|
||||||
Sets the color of the lines that separate the inside and outside of the
|
Sets the color of the line between the inside and ring.
|
||||||
indicator when typing or idle.
|
|
||||||
|
|
||||||
*--line-clear-color* <rrggbb[aa]>
|
*--line-clear-color* <rrggbb[aa]>
|
||||||
Sets the color of the lines that separate the inside and outside of the
|
Sets the color of the line between the inside and ring when cleared.
|
||||||
indicator when cleared.
|
|
||||||
|
|
||||||
*--line-caps-lock-color* <rrggbb[aa]>
|
*--line-caps-lock-color* <rrggbb[aa]>
|
||||||
Sets the color of the line between the inside and ring when Caps Lock
|
Sets the color of the line between the inside and ring when Caps Lock is
|
||||||
is active.
|
active.
|
||||||
|
|
||||||
*--line-ver-color* <rrggbb[aa]>
|
*--line-ver-color* <rrggbb[aa]>
|
||||||
Sets the color of the lines that separate the inside and outside of the
|
Sets the color of the line between the inside and ring when verifying.
|
||||||
indicator when verifying.
|
|
||||||
|
|
||||||
*--line-wrong-color* <rrggbb[aa]>
|
*--line-wrong-color* <rrggbb[aa]>
|
||||||
Sets the color of the lines that separate the inside and outside of the
|
Sets the color of the line between the inside and ring when invalid.
|
||||||
indicator when invalid.
|
|
||||||
|
|
||||||
*-n, --line-uses-inside*
|
*-n, --line-uses-inside*
|
||||||
Use the color of the inside of the indicator for the line separating the
|
Use the inside color for the line between the inside and ring.
|
||||||
inside and outside of the indicator.
|
|
||||||
|
|
||||||
*-r, --line-uses-ring*
|
*-r, --line-uses-ring*
|
||||||
Use the outer ring's color for the line separating the inside and outside of
|
Use the ring color for the line between the inside and ring.
|
||||||
the indicator.
|
|
||||||
|
|
||||||
*--ring-color* <rrggbb[aa]>
|
*--ring-color* <rrggbb[aa]>
|
||||||
Sets the color of the outside of the indicator when typing or idle.
|
Sets the color of the ring of the indicator when typing or idle.
|
||||||
|
|
||||||
*--ring-clear-color* <rrggbb[aa]>
|
*--ring-clear-color* <rrggbb[aa]>
|
||||||
Sets the color of the outside of the indicator when cleared.
|
Sets the color of the ring of the indicator when cleared.
|
||||||
|
|
||||||
*--ring-caps-lock-color* <rrggbb[aa]>
|
*--ring-caps-lock-color* <rrggbb[aa]>
|
||||||
Sets the color of the ring of the indicator when Caps Lock is active.
|
Sets the color of the ring of the indicator when Caps Lock is active.
|
||||||
|
|
||||||
*--ring-ver-color* <rrggbb[aa]>
|
*--ring-ver-color* <rrggbb[aa]>
|
||||||
Sets the color of the outside of the indicator when verifying.
|
Sets the color of the ring of the indicator when verifying.
|
||||||
|
|
||||||
*--ring-wrong-color* <rrggbb[aa]>
|
*--ring-wrong-color* <rrggbb[aa]>
|
||||||
Sets the color of the outside of the indicator when invalid.
|
Sets the color of the ring of the indicator when invalid.
|
||||||
|
|
||||||
*--separator-color* <rrggbb[aa]>
|
*--separator-color* <rrggbb[aa]>
|
||||||
Sets the color of the lines that separate highlight segments.
|
Sets the color of the lines that separate highlight segments.
|
||||||
|
|
||||||
*--text-color* <rrggbb[aa]>
|
*--text-color* <rrggbb[aa]>
|
||||||
Sets the color of the text inside the indicator when typing or idle.
|
Sets the color of the text.
|
||||||
|
|
||||||
*--text-clear-color* <rrggbb[aa]>
|
*--text-clear-color* <rrggbb[aa]>
|
||||||
Sets the color of the text inside the indicator when cleared.
|
Sets the color of the text when cleared.
|
||||||
|
|
||||||
*--text-caps-lock-color* <rrggbb[aa]>
|
*--text-caps-lock-color* <rrggbb[aa]>
|
||||||
Sets the color of the text when Caps Lock is active.
|
Sets the color of the text when Caps Lock is active.
|
||||||
|
|
||||||
*--text-ver-color* <rrggbb[aa]>
|
*--text-ver-color* <rrggbb[aa]>
|
||||||
Sets the color of the text inside the indicator when verifying.
|
Sets the color of the text when verifying.
|
||||||
|
|
||||||
*--text-wrong-color* <rrggbb[aa]>
|
*--text-wrong-color* <rrggbb[aa]>
|
||||||
Sets the color of the text inside the indicator when invalid.
|
Sets the color of the text when invalid.
|
||||||
|
|
||||||
# AUTHORS
|
# AUTHORS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user