From a0ea456ab2c8ea40232d920c2837cd6222c8c0c3 Mon Sep 17 00:00:00 2001 From: polykernel <81340136+polykernel@users.noreply.github.com> Date: Tue, 29 Aug 2023 17:54:13 -0400 Subject: river: add position and dimensions rules This commit adds position and dimensions rules for configuring the initial position and dimensions of views. When a view is not matched by any position rules, it is centered in the avaliable output space matching the current behavior. If the provided position rule places the view outside of the output, the view's position is clamped to the output bounds (with respect to borders). When a view is not matched by any dimensions rules, no default dimensions is set by the server. If the provided dimensions rule exceeds the minimum or maximum width/height constraints of the view, the view's width/height is clamped to the constraints. Position and dimensions rules have no effect if a view is started fullscreen or is not floating. A view must be matched by a float rule in order for them to take effect. --- completions/bash/riverctl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'completions/bash/riverctl') diff --git a/completions/bash/riverctl b/completions/bash/riverctl index 4b19d4c..c92e001 100644 --- a/completions/bash/riverctl +++ b/completions/bash/riverctl @@ -1,6 +1,6 @@ function __riverctl_completion () { - local rule_actions="float no-float ssd csd tag output" + local rule_actions="float no-float ssd csd tag output position dimensions" if [ "${COMP_CWORD}" -eq 1 ] then OPTS=" \ @@ -66,7 +66,7 @@ function __riverctl_completion () "move"|"snap") OPTS="up down left right" ;; "resize") OPTS="horizontal vertical" ;; "rule-add"|"rule-del") OPTS="-app-id -title $rule_actions" ;; - "list-rules") OPTS="float ssd tag output" ;; + "list-rules") OPTS="float ssd tag output position dimensions" ;; "map") OPTS="-release -repeat -layout" ;; "unmap") OPTS="-release" ;; "attach-mode") OPTS="top bottom" ;; -- cgit v1.2.3