aboutsummaryrefslogtreecommitdiff
path: root/completions/bash/swaylock
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-01-14 08:57:20 +0100
committerGitHub <noreply@github.com>2019-01-14 08:57:20 +0100
commit89ad3f2bbbb6f5f367387992eea5d5c6f7fa7642 (patch)
tree2ef2485e9a103b9850219b7cf6375e48b20b72b5 /completions/bash/swaylock
parent784178ed374e0cf94541a352b2407708c89c6d7c (diff)
parent3fca8b8d22ee51a934fa3b8704c5aee8a5de7689 (diff)
Merge pull request #3417 from swaywm/remove-swaylock
Split swaylock into separate project
Diffstat (limited to 'completions/bash/swaylock')
-rw-r--r--completions/bash/swaylock66
1 files changed, 0 insertions, 66 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 @@
-# swaylock(1) completion
-
-_swaylock()
-{
- local cur prev
- _get_comp_words_by_ref -n : cur prev
-
- short=(
- -h
- -c
- -s
- -t
- -v
- -i
- -u
- -f
- )
-
- long=(
- --help
- --color
- --scaling
- --tiling
- --version
- --image
- --no-unlock-indicator
- --daemonize
- )
-
- scaling=(
- 'stretch'
- 'fill'
- 'fit'
- 'center'
- 'tile'
- )
-
- case $prev in
- -c|--color)
- return
- ;;
- --scaling)
- COMPREPLY=($(compgen -W "${scaling[*]}" -- "$cur"))
- return
- ;;
- -i|--image)
- if grep -q : <<< "$cur"; then
- output="${cur%%:*}:"
- cur="${cur#*:}"
- else
- output=
- fi
- COMPREPLY=($(compgen -f -- "$cur"))
- return
- ;;
- esac
-
- if [[ $cur == --* ]]; then
- COMPREPLY=($(compgen -W "${long[*]}" -- "$cur"))
- else
- COMPREPLY=($(compgen -W "${short[*]}" -- "$cur"))
- COMPREPLY+=($(compgen -W "${long[*]}" -- "$cur"))
- fi
-
-} &&
-complete -F _swaylock swaylock