From 3fca8b8d22ee51a934fa3b8704c5aee8a5de7689 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 13 Jan 2019 21:29:12 -0500 Subject: Split swaylock into separate project --- completions/bash/swaylock | 66 ----------------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 completions/bash/swaylock (limited to 'completions/bash/swaylock') 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 -- cgit v1.2.3-70-g09d2