git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit6f717e81c84cd04d56ab4858957e5e2021a884e8
parent4a72ff1ae0
authorLeon Henrik Plickat <[email protected]>
date2021-06-22 15:53
completions: Add bash completion for set-cursor-warp commands

 completions/bash/riverctl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/completions/bash/riverctl b/completions/bash/riverctl
index 83708c0..0bcbb00 100644
--- a/completions/bash/riverctl
+++ b/completions/bash/riverctl
@@ -43,6 +43,7 @@ function __riverctl_completion ()
 			focus-follow-cursor \
 			opacity \
 			set-repeat \
+			set-cursor-warp \
 			xcursor-theme"
 		COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[1]}"))
 	elif [ "${COMP_CWORD}" -eq 2 ]
@@ -54,6 +55,7 @@ function __riverctl_completion ()
 			"map"|"unmap") OPTS="-release" ;;
 			"attach-mode") OPTS="top bottom" ;;
 			"focus-follows-cursor") OPTS="disabled normal strict" ;;
+			"set-cursor-warp") OPTS="disabled on-output-change" ;;
 			*) return ;;
 		esac
 		COMPREPLY=($(compgen -W "${OPTS}" -- "${COMP_WORDS[2]}"))