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' --- doc/riverctl.1.scd | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'doc') diff --git a/doc/riverctl.1.scd b/doc/riverctl.1.scd index 68cbbb6..dcb2148 100644 --- a/doc/riverctl.1.scd +++ b/doc/riverctl.1.scd @@ -28,15 +28,15 @@ over the Wayland protocol. *close* Close the focused view. -*csd-filter-add* _app-id_ - Add _app-id_ to the CSD filter list. Views with this _app-id_ are - told to use client side decoration instead of the default server - side decoration. Note that this affects both new views, as well as already - existing ones. - -*csd-filter-remove* _app-id_ - Remove an _app-id_ from the CSD filter list. Note that this affects both new - views, as well as already existing ones. +*csd-filter-add* *app-id*|*title* _pattern_ + Add _pattern_ to the CSD filter list. Views with this _pattern_ are told to + use client side decoration instead of the default server side decoration. + Note that this affects new views as well as already existing ones. Title + updates are not taken into account. + +*csd-filter-remove* *app-id*|*title* _pattern_ + Remove _pattern_ from the CSD filter list. Note that this affects new views + as well as already existing ones. *exit* Exit the compositor, terminating the Wayland session. -- cgit v1.2.3