diff options
| author | tiosgz <alamica@protonmail.com> | 2023-10-22 10:48:04 +0000 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2023-10-25 19:13:53 +0200 |
| commit | 57366c487ff688ba4d3c75dc2cc776ce2dc80165 (patch) | |
| tree | 4f1aeaf806bd040990e601f52062b6447d0c8217 /completions/bash | |
| parent | ffe004ececbce3f5c405894f35618a767f7d6021 (diff) | |
| download | river-57366c487ff688ba4d3c75dc2cc776ce2dc80165.tar.gz river-57366c487ff688ba4d3c75dc2cc776ce2dc80165.tar.xz | |
completions/bash: complete input devices, fix typos
Diffstat (limited to 'completions/bash')
| -rw-r--r-- | completions/bash/riverctl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/completions/bash/riverctl b/completions/bash/riverctl index d964e7b..4b19d4c 100644 --- a/completions/bash/riverctl +++ b/completions/bash/riverctl @@ -62,6 +62,7 @@ function __riverctl_completion () case "${COMP_WORDS[1]}" in "focus-output"|"send-to-output") OPTS="next previous" ;; "focus-view"|"swap") OPTS="next previous up down left right" ;; + "input") OPTS="$(riverctl list-inputs | sed '/configured:/d')" ;; "move"|"snap") OPTS="up down left right" ;; "resize") OPTS="horizontal vertical" ;; "rule-add"|"rule-del") OPTS="-app-id -title $rule_actions" ;; @@ -93,7 +94,7 @@ function __riverctl_completion () tap-button-map \ scroll-method \ scroll-button" - COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[2]}")) + COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[3]}")) elif [ "${COMP_WORDS[1]}" == "hide-cursor" ] then case "${COMP_WORDS[2]}" in @@ -115,6 +116,7 @@ function __riverctl_completion () "scroll-method") OPTS="none two-finger edge button" ;; *) return ;; esac + COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[4]}")) elif [ "${COMP_WORDS[1]:0:5}" == "rule-" ] then case "${COMP_WORDS[2]}" in |
