aboutsummaryrefslogtreecommitdiff
path: root/completions/zsh
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2023-03-12 15:40:42 +0100
committerIsaac Freund <mail@isaacfreund.com>2023-03-12 16:44:19 +0100
commitb2b2c9ed1397d345004fc2369217307b44bdbd88 (patch)
tree8021cdfbedb90a33a001da2ac90693eca89387dc /completions/zsh
parent05eac54b076f2069469aa48377cae54f0cd311aa (diff)
downloadriver-b2b2c9ed1397d345004fc2369217307b44bdbd88.tar.gz
river-b2b2c9ed1397d345004fc2369217307b44bdbd88.tar.xz
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.
Diffstat (limited to 'completions/zsh')
-rw-r--r--completions/zsh/_riverctl9
1 files changed, 7 insertions, 2 deletions
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
;;