completions/bash: complete input devices, fix typos
This commit is contained in:
parent
ffe004ecec
commit
57366c487f
@ -62,6 +62,7 @@ function __riverctl_completion ()
|
|||||||
case "${COMP_WORDS[1]}" in
|
case "${COMP_WORDS[1]}" in
|
||||||
"focus-output"|"send-to-output") OPTS="next previous" ;;
|
"focus-output"|"send-to-output") OPTS="next previous" ;;
|
||||||
"focus-view"|"swap") OPTS="next previous up down left right" ;;
|
"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" ;;
|
"move"|"snap") OPTS="up down left right" ;;
|
||||||
"resize") OPTS="horizontal vertical" ;;
|
"resize") OPTS="horizontal vertical" ;;
|
||||||
"rule-add"|"rule-del") OPTS="-app-id -title $rule_actions" ;;
|
"rule-add"|"rule-del") OPTS="-app-id -title $rule_actions" ;;
|
||||||
@ -93,7 +94,7 @@ function __riverctl_completion ()
|
|||||||
tap-button-map \
|
tap-button-map \
|
||||||
scroll-method \
|
scroll-method \
|
||||||
scroll-button"
|
scroll-button"
|
||||||
COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[2]}"))
|
COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[3]}"))
|
||||||
elif [ "${COMP_WORDS[1]}" == "hide-cursor" ]
|
elif [ "${COMP_WORDS[1]}" == "hide-cursor" ]
|
||||||
then
|
then
|
||||||
case "${COMP_WORDS[2]}" in
|
case "${COMP_WORDS[2]}" in
|
||||||
@ -115,6 +116,7 @@ function __riverctl_completion ()
|
|||||||
"scroll-method") OPTS="none two-finger edge button" ;;
|
"scroll-method") OPTS="none two-finger edge button" ;;
|
||||||
*) return ;;
|
*) return ;;
|
||||||
esac
|
esac
|
||||||
|
COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[4]}"))
|
||||||
elif [ "${COMP_WORDS[1]:0:5}" == "rule-" ]
|
elif [ "${COMP_WORDS[1]:0:5}" == "rule-" ]
|
||||||
then
|
then
|
||||||
case "${COMP_WORDS[2]}" in
|
case "${COMP_WORDS[2]}" in
|
||||||
|
Loading…
Reference in New Issue
Block a user