From 8036ae2bd179d66f6317e5c7cbd388e88877d9f7 Mon Sep 17 00:00:00 2001 From: shironeko Date: Mon, 1 Aug 2022 20:31:50 -0400 Subject: Cursor: add on-focus-change option Warp the cursor to the center of the focused view if the cursor is not in the bounding box of that view already. This helps the user to keep track of their cursor when they mostly use the keyboard and the cursor becomes hidden most of the time, also helps trackpad/trackpoint users. --- completions/zsh/_riverctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'completions/zsh/_riverctl') diff --git a/completions/zsh/_riverctl b/completions/zsh/_riverctl index f303e5e..8ed1fe5 100644 --- a/completions/zsh/_riverctl +++ b/completions/zsh/_riverctl @@ -178,7 +178,7 @@ _riverctl() unmap) _alternative 'arguments:optional:(-release)' ;; attach-mode) _alternative 'arguments:args:(top bottom)' ;; focus-follows-cursor) _alternative 'arguments:args:(disabled normal always)' ;; - set-cursor-warp) _alternative 'arguments:args:(disabled on-output-change)' ;; + set-cursor-warp) _alternative 'arguments:args:(disabled on-output-change on-focus-change)' ;; hide-cursor) _riverctl_hide_cursor ;; *) return 0 ;; esac -- cgit v1.2.3