summaryrefslogtreecommitdiff
path: root/completions/greetd-mini-wl-greeter
diff options
context:
space:
mode:
Diffstat (limited to 'completions/greetd-mini-wl-greeter')
-rw-r--r--completions/greetd-mini-wl-greeter55
1 files changed, 0 insertions, 55 deletions
diff --git a/completions/greetd-mini-wl-greeter b/completions/greetd-mini-wl-greeter
deleted file mode 100644
index be5a7b1..0000000
--- a/completions/greetd-mini-wl-greeter
+++ /dev/null
@@ -1,55 +0,0 @@
-# vi: ft=bash
-
-containsElement () {
- local e match="$1"
- shift
- for e; do [[ "$e" =~ $match ]] && return 0; done
- return 1
-}
-
-_greetd_mini_wl_greeter()
-{
- local cur prev opts remaining
- COMPREPLY=()
- cur="${COMP_WORDS[COMP_CWORD]}"
- prev="${COMP_WORDS[COMP_CWORD-1]}"
- opts="--background-image --background-color --border-width --border-color --outline-width --outline-color --entry-padding --entry-color --text-color --font-name --font-size --password-character --command --user --width-characters --wide-layout --hide-cursor --help"
-
-
- case "${prev}" in
- --user|-u)
- COMPREPLY=( $(compgen -W "${users}" -- ${cur}) )
- return 0
- ;;
- --command|-c)
- return 0
- ;;
- --background-image|-b)
- if ! containsElement '.*\.png' "${COMP_WORDS[@]}"; then
- _filedir '*@(png)'
- fi
- return 0
- ;;
- --wide-layout|-w)
- ;& # Fallthrough
- --hide-cursor|-H)
- ;& # Fallthrough
- --help|-h)
- ;;
- *)
- return 0
- ;;
- esac
- case "${cur}" in
- -[a-zA-Z])
- COMPREPLY=$cur
- ;;
- *)
- remaining=$(echo ${opts[@]} ${COMP_WORDS[@]} ${COMP_WORDS[@]} | tr ' ' '\n' | sort | uniq -u)
- COMPREPLY=( $(compgen -W "${remaining}" -- ${cur}) )
- return 0
- ;;
- esac
- true
-}
-complete -F _greetd_mini_wl_greeter greetd-mini-wl-greeter