From b2b2c9ed1397d345004fc2369217307b44bdbd88 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sun, 12 Mar 2023 15:40:42 +0100 Subject: river: add rules system This is a breaking change and replaces the previous csd-filter-add/remove and float-filter-add/remove commands. See the riverctl(1) man page for documentation on the new system. --- completions/zsh/_riverctl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'completions/zsh') diff --git a/completions/zsh/_riverctl b/completions/zsh/_riverctl index 90e39d2..53b2194 100644 --- a/completions/zsh/_riverctl +++ b/completions/zsh/_riverctl @@ -9,9 +9,7 @@ _riverctl_subcommands() riverctl_subcommands=( # Actions 'close:Close the focused view' - 'csd-filter-add:Add app-id to the CSD filter list' 'exit:Exit the compositor, terminating the Wayland session' - 'float-filter-add:Add app-id to the float filter list' 'focus-output:Focus the next or previous output' 'focus-view:Focus the next or previous view in the stack' 'move:Move the focused view in the specified direction' @@ -43,6 +41,10 @@ _riverctl_subcommands() 'unmap:Remove the mapping defined by the arguments' 'unmap-pointer:Remove the pointer mapping defined by the arguments' 'unmap-switch:Remove the switch mapping defined by the arguments' + # Rules + 'rule-add:Apply an action to matching views' + 'rule-del:Delete a rule added with rule-add' + 'list-rules:Print rules in a given list' # Configuration 'attach-mode:Configure where new views should attach to the view stack' 'background-color:Set the background color' @@ -181,6 +183,9 @@ _riverctl() focus-follows-cursor) _alternative 'arguments:args:(disabled normal always)' ;; set-cursor-warp) _alternative 'arguments:args:(disabled on-output-change on-focus-change)' ;; hide-cursor) _riverctl_hide_cursor ;; + rule-add) _alternative 'arguments:args:(float no-float ssd csd)' ;; + rule-del) _alternative 'arguments:args:(float no-float ssd csd)' ;; + list-rules) _alternative 'arguments:args:(float ssd)' ;; *) return 0 ;; esac ;; -- cgit v1.2.3