diff options
| author | Isaac Freund <mail@isaacfreund.com> | 2023-03-12 15:40:42 +0100 |
|---|---|---|
| committer | Isaac Freund <mail@isaacfreund.com> | 2023-03-12 16:44:19 +0100 |
| commit | b2b2c9ed1397d345004fc2369217307b44bdbd88 (patch) | |
| tree | 8021cdfbedb90a33a001da2ac90693eca89387dc /completions/fish | |
| parent | 05eac54b076f2069469aa48377cae54f0cd311aa (diff) | |
| download | river-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/fish')
| -rw-r--r-- | completions/fish/riverctl.fish | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/completions/fish/riverctl.fish b/completions/fish/riverctl.fish index 35db6e8..a207156 100644 --- a/completions/fish/riverctl.fish +++ b/completions/fish/riverctl.fish @@ -12,9 +12,7 @@ end # Actions complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'close' -d 'Close the focued view' -complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'csd-filter-add' -d 'Add app-id to the CSD filter list' complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'exit' -d 'Exit the compositor, terminating the Wayland session' -complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'float-filter-add' -d 'Add app-id to the float filter list' complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'focus-output' -d 'Focus the next or previous output' complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'focus-view' -d 'Focus the next or previous view in the stack' complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'input' -d 'Create a configuration rule for an input device' @@ -49,6 +47,10 @@ complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'map-switch ' complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'unmap' -d 'Remove the mapping defined by the arguments' complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'unmap-pointer' -d 'Remove the pointer mapping defined by the arguments' complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'unmap-switch' -d 'Remove the switch mapping defined by the arguments' +# Rules +complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'rule-add' -d 'Apply an action to matching views' +complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'rule-del' -d 'Delete a rule added with rule-add' +complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'list-rules' -d 'Print rules in a given list' # Configuration complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'attach-mode' -d 'Configure where new views should attach to the view stack' complete -c riverctl -x -n '__fish_riverctl_complete_arg 1' -a 'background-color' -d 'Set the background color' @@ -81,6 +83,9 @@ complete -c riverctl -x -n '__fish_seen_subcommand_from unmap' -a complete -c riverctl -x -n '__fish_seen_subcommand_from attach-mode' -a 'top bottom' complete -c riverctl -x -n '__fish_seen_subcommand_from focus-follows-cursor' -a 'disabled normal always' complete -c riverctl -x -n '__fish_seen_subcommand_from set-cursor-warp' -a 'disabled on-output-change on-focus-change' +complete -c riverctl -x -n '__fish_seen_subcommand_from rule-add' -a 'float no-float ssd csd' +complete -c riverctl -x -n '__fish_seen_subcommand_from rule-del' -a 'float no-float ssd csd' +complete -c riverctl -x -n '__fish_seen_subcommand_from list-rules' -a 'float ssd' # Subcommands for 'input' complete -c riverctl -x -n '__fish_seen_subcommand_from input; and __fish_riverctl_complete_arg 2' -a "(__riverctl_list_input_devices)" |
