From 5f6428bafe41da2c5df6c6cb12ff65c225260322 Mon Sep 17 00:00:00 2001 From: Ben Fiedler Date: Mon, 6 Sep 2021 15:28:05 +0200 Subject: river: Allow applying CSD based on window titles This extends the `csd-filter-add` command to allow matching on window titles as well, using a `csd-filter-add kind pattern` syntax. The following kinds are supported: * `title`, which matches window titles * `app-id`, which matches app ids Only exact matches are considered. As an example following configuration applies client-side decorations to all windows with the title 'asdf with spaces'. riverctl csd-filter-add title 'asdf with spaces' --- example/init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/init') diff --git a/example/init b/example/init index d3b9dc3..7ddd8eb 100755 --- a/example/init +++ b/example/init @@ -152,8 +152,8 @@ riverctl set-repeat 50 300 riverctl float-filter-add app-id float riverctl float-filter-add title "popup title with spaces" -# Set app-ids of views which should use client side decorations -riverctl csd-filter-add "gedit" +# Set app-ids and titles of views which should use client side decorations +riverctl csd-filter-add app-id "gedit" # Set and exec into the default layout generator, rivertile. # River will send the process group of the init executable SIGTERM on exit. -- cgit v1.2.3