aboutsummaryrefslogtreecommitdiffstats
path: root/completions
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2019-01-13 21:29:12 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-01-13 21:40:26 -0500
commit3fca8b8d22ee51a934fa3b8704c5aee8a5de7689 (patch)
treeabdec67233e7453274f6561c4a207a6d7d6c6d39 /completions
parentMerge pull request #3144 from emersion/cmd-xwayland (diff)
downloadsway-3fca8b8d22ee51a934fa3b8704c5aee8a5de7689.tar.gz
sway-3fca8b8d22ee51a934fa3b8704c5aee8a5de7689.tar.zst
sway-3fca8b8d22ee51a934fa3b8704c5aee8a5de7689.zip
Split swaylock into separate project
Diffstat (limited to 'completions')
-rw-r--r--completions/bash/swaylock66
-rw-r--r--completions/fish/swaylock.fish39
-rw-r--r--completions/zsh/_swaylock40
3 files changed, 0 insertions, 145 deletions
diff --git a/completions/bash/swaylock b/completions/bash/swaylock
deleted file mode 100644
index 33925480..00000000
--- a/completions/bash/swaylock
+++ /dev/null
@@ -1,66 +0,0 @@
1# swaylock(1) completion
2
3_swaylock()
4{
5 local cur prev
6 _get_comp_words_by_ref -n : cur prev
7
8 short=(
9 -h
10 -c
11 -s
12 -t
13 -v
14 -i
15 -u
16 -f
17 )
18
19 long=(
20 --help
21 --color
22 --scaling
23 --tiling
24 --version
25 --image
26 --no-unlock-indicator
27 --daemonize
28 )
29
30 scaling=(
31 'stretch'
32 'fill'
33 'fit'
34 'center'
35 'tile'
36 )
37
38 case $prev in
39 -c|--color)
40 return
41 ;;
42 --scaling)
43 COMPREPLY=($(compgen -W "${scaling[*]}" -- "$cur"))
44 return
45 ;;
46 -i|--image)
47 if grep -q : <<< "$cur"; then
48 output="${cur%%:*}:"
49 cur="${cur#*:}"
50 else
51 output=
52 fi
53 COMPREPLY=($(compgen -f -- "$cur"))
54 return
55 ;;
56 esac
57
58 if [[ $cur == --* ]]; then
59 COMPREPLY=($(compgen -W "${long[*]}" -- "$cur"))
60 else
61 COMPREPLY=($(compgen -W "${short[*]}" -- "$cur"))
62 COMPREPLY+=($(compgen -W "${long[*]}" -- "$cur"))
63 fi
64
65} &&
66complete -F _swaylock swaylock
diff --git a/completions/fish/swaylock.fish b/completions/fish/swaylock.fish
deleted file mode 100644
index 99dff48f..00000000
--- a/completions/fish/swaylock.fish
+++ /dev/null
@@ -1,39 +0,0 @@
1# swaylock(1) completion
2
3complete -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.'
4complete -c swaylock -s h -l help --description "Show help message and quit."
5complete -c swaylock -s f -l daemonize --description "Fork into the background after spawning. Note: this is the default bahavior of i3lock."
6complete -c swaylock -s v -l version --description "Show the version number and quit."
7complete -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)."
8complete -c swaylock -s e -l ignore-empty-password --description 'When an empty password is provided by the user, do not validate it.'
9
10# Appearance
11complete -c swaylock -s u -l no-unlock-indicator --description "Disable the unlock indicator."
12complete -c swaylock -s i -l image --description "Display the given image, optionally on the given output. Use -c to set a background color."
13complete -c swaylock -s s -l scaling --description "Scaling mode for images: stretch, fill, fit, center, or tile."
14complete -c swaylock -s t -l tiling --description "Same as --scaling=tile."
15complete -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."
16complete -c swaylock -l bs-hl-color --description 'Sets the color of backspace highlight segments.'
17complete -c swaylock -l font --description 'Sets the font of the text inside the indicator.'
18complete -c swaylock -l indicator-radius --description 'Sets the radius of the indicator to radius pixels. Default: 50'
19complete -c swaylock -l indicator-thickness --description 'Sets the thickness of the indicator to thickness pixels. Default: 10'
20complete -c swaylock -l inside-color --description 'Sets the color of the inside of the indicator when typing or idle.'
21complete -c swaylock -l inside-clear-color --description 'Sets the color of the inside of the indicator when cleared.'
22complete -c swaylock -l inside-ver-color --description 'Sets the color of the inside of the indicator when verifying.'
23complete -c swaylock -l inside-wrong-color --description 'Sets the color of the inside of the indicator when invalid.'
24complete -c swaylock -l key-hl-color --description 'Sets the color of key press highlight segments.'
25complete -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.'
26complete -c swaylock -l line-clear-color --description 'Sets the color of the lines that separate the inside and outside of the indicator when cleared.'
27complete -c swaylock -l line-ver-color --description 'Sets the color of the lines that separate the inside and outside of the indicator when verifying.'
28complete -c swaylock -l line-wrong-color --description 'Sets the color of the lines that separate the inside and outside of the indicator when invalid.'
29complete -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.'
30complete -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.'
31complete -c swaylock -l ring-color --description 'Sets the color of the outside of the indicator when typing or idle.'
32complete -c swaylock -l ring-clear-color --description 'Sets the color of the outside of the indicator when cleared.'
33complete -c swaylock -l ring-ver-color --description 'Sets the color of the outside of the indicator when verifying.'
34complete -c swaylock -l ring-wrong-color --description 'Sets the color of the outside of the indicator when invalid.'
35complete -c swaylock -l separator-color --description 'Sets the color of the lines that separate highlight segments.'
36complete -c swaylock -l text-color --description 'Sets the color of the text inside the indicator when typing or idle.'
37complete -c swaylock -l text-clear-color --description 'Sets the color of the text inside the indicator when cleared.'
38complete -c swaylock -l text-ver-color --description 'Sets the color of the text inside the indicator when verifying.'
39complete -c swaylock -l text-wrong-color --description 'Sets the color of the text inside the indicator when invalid.'
diff --git a/completions/zsh/_swaylock b/completions/zsh/_swaylock
deleted file mode 100644
index 9bc84ec9..00000000
--- a/completions/zsh/_swaylock
+++ /dev/null
@@ -1,40 +0,0 @@
1#compdef swaylock
2#
3# Completion script for swaylock
4#
5
6_arguments -s \
7 '(-C --config)'{-C,--config}'[Path to the config file]:filename:_files' \
8 '(-c --color)'{-c,--color}'[Turn the screen into the given color instead of white]:color:' \
9 '(-e --ignore-empty-password)'{-e,--ignore-empty-password}'[When an empty password is provided, do not validate it]' \
10 '(-f --daemonize)'{-f,--daemonize}'[Detach from the controlling terminal after locking]' \
11 '(-h --help)'{-h,--help}'[Show help message and quit]' \
12 '(-i --image)'{-i,--image}'[Display an image]:filename:_files' \
13 '(-s --scaling)'{-s,--scaling}'[Scaling mode]:mode:(stretch fill fit center tile)' \
14 '(-t --tiling)'{-t,--tiling}'[Same as --scaling=tile]' \
15 '(-u --no-unlock-indicator)'{-u,--no-unlock-indicator}'[Disable the unlock indicator]' \
16 '(-v --version)'{-v,--version}'[Show the version number and quit]' \
17 '(--bs-hl-color)'--bs-hl-color'[Sets the color of backspace highlights segments]:color:' \
18 '(--font)'--font'[Sets the font of the text]:font:' \
19 '(--indicator-radius)'--indicator-radius'[Sets the indicator radius]:radius:' \
20 '(--indicator-thickness)'--indicator-thickness'[Sets the indicator thickness]:thickness:' \
21 '(--inside-color)'--inside-color'[Sets the color of the inside of the indicator]:color:' \
22 '(--inside-clear-color)'--inside-clear-color'[Sets the color of the inside of the indicator when cleared]:color:' \
23 '(--inside-clear-color)'--inside-clear-color'[Sets the color of the inside of the indicator when verifying]:color:' \
24 '(--inside-wrong-color)'--inside-wrong-color'[Sets the color of the inside of the indicator when invalid]:color:' \
25 '(--key-hl-color)'--key-hl-color'[Sets the color of the key press highlight segments]:color:' \
26 '(--line-color)'--line-color'[Sets the color of the line between the inside and ring]:color:' \
27 '(--line-clear-color)'--line-clear-color'[Sets the color of the line between the inside and ring when cleared]:color:' \
28 '(--line-ver-color)'--line-ver-color'[Sets the color of the line between the inside and ring when verifying]:color:' \
29 '(--line-wrong-color)'--line-wrong-color'[Sets the color of the line between the inside and ring when invalid]:color:' \
30 '(-n --line-uses-inside)'{-n,--line-uses-inside}'[Use the inside color for the line between the inside and ring]' \
31 '(-r --line-uses-ring)'{-r,--line--uses-ring}'[Use the ring color for the line between the inside and ring]' \
32 '(--ring-color)'--ring-color'[Sets the color of the ring of the indicator]:color:' \
33 '(--ring-clear-color)'--ring-clear-color'[Sets the color of the ring of the indicator when cleared]:color:' \
34 '(--ring-ver-color)'--ring-ver-color'[Sets the color of the ring of the indicator when verifying]:color:' \
35 '(--ring-wrong-color)'--ring-wrong-color'[Sets the color of the ring of the indicator when invalid]:color:' \
36 '(--separator-color)'--separator-color'[Sets the color of the lines that separate highlight segments]:color:' \
37 '(--text-color)'--text-color'[Sets the color of the text]:color:' \
38 '(--text-clear-color)'--text-clear-color'[Sets the color of the text when cleared]:color:' \
39 '(--text-ver-color)'--text-ver-color'[Sets the color of the text when verifying]:color:' \
40 '(--text-wrong-color)'--text-wrong-color'[Sets the color of the text when invalid]:color:' \ No newline at end of file