From d73ef51c89c67ab2125387d20488a32654507e73 Mon Sep 17 00:00:00 2001 From: tiosgz Date: Sun, 1 Oct 2023 15:49:21 +0000 Subject: riverctl: rule-{add,del}: reorder parameters Previous order was (action, conditions, action argument), current is (conditions, action, action argument). The old one was an expansion of (action, conditions), which itself most likely came from the separate -filter-add commands. On the other hand, the new order keeps action and its argument together and is in line with the logical flow (check conditions, apply action). On shell completions: only bash absolutely needed to be updated. fish and zsh slightly misbehave regardless of the order. --- example/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/init') diff --git a/example/init b/example/init index a8e120f..dff995c 100755 --- a/example/init +++ b/example/init @@ -151,10 +151,10 @@ riverctl border-color-unfocused 0x586e75 riverctl set-repeat 50 300 # Make all views with an app-id that starts with "float" and title "foo" start floating. -riverctl rule-add float -app-id 'float*' -title 'foo' +riverctl rule-add -app-id 'float*' -title 'foo' float # Make all views with app-id "bar" and any title use client-side decorations -riverctl rule-add csd -app-id "bar" +riverctl rule-add -app-id "bar" csd # Set the default layout generator to be rivertile and start it. # River will send the process group of the init executable SIGTERM on exit. -- cgit v1.2.3