git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commitc78638ce901e5839cfbe7b5cfe78dab00b1705b4
parent8ba3011afc
authorIsaac Freund <[email protected]>
date2023-03-12 17:26
example/init: update for rules system

 example/init | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/example/init b/example/init
index f79eae1..a8e120f 100755
--- a/example/init
+++ b/example/init
@@ -150,12 +150,11 @@ riverctl border-color-unfocused 0x586e75
 # Set keyboard repeat rate
 riverctl set-repeat 50 300
 
-# Make certain views start floating
-riverctl float-filter-add app-id float
-riverctl float-filter-add title "popup title with spaces"
+# 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'
 
-# Set app-ids and titles of views which should use client side decorations
-riverctl csd-filter-add app-id "gedit"
+# Make all views with app-id "bar" and any title use client-side decorations
+riverctl rule-add csd -app-id "bar"
 
 # Set the default layout generator to be rivertile and start it.
 # River will send the process group of the init executable SIGTERM on exit.