From 44aaee3a51b971817ccacd1c1dd4897f58dd25e7 Mon Sep 17 00:00:00 2001 From: Peter Kaplan Date: Wed, 20 Apr 2022 15:38:18 +0200 Subject: command/map: layout-pinned mappings e.g. `riverctl map -layout 0 normal Super Y spawn foot` When this mapping is checked against a pressed key, layout 0 will be used to translate the pressed key instead of the currently active layout. The number denotes to an index of the layouts set with `XKB_DEFAULT_LAYOUT`. --- completions/zsh/_riverctl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'completions/zsh') diff --git a/completions/zsh/_riverctl b/completions/zsh/_riverctl index f1c3d6d..8fec8fe 100644 --- a/completions/zsh/_riverctl +++ b/completions/zsh/_riverctl @@ -169,7 +169,7 @@ _riverctl() snap) _alternative 'arguments:args:(up down left right)' ;; send-to-output) _alternative 'arguments:args:(next previous)' ;; swap) _alternative 'arguments:args:(next previous)' ;; - map) _alternative 'arguments:optional:(-release -repeat)' ;; + map) _alternative 'arguments:optional:(-release -repeat -layout)' ;; unmap) _alternative 'arguments:optional:(-release)' ;; attach-mode) _alternative 'arguments:args:(top bottom)' ;; focus-follows-cursor) _alternative 'arguments:args:(disabled normal)' ;; -- cgit v1.2.3