aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorBen Fiedler <git@bfiedler.ch>2021-09-06 15:28:05 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-09-07 12:30:53 +0000
commit5f6428bafe41da2c5df6c6cb12ff65c225260322 (patch)
tree11dd47b2b4e3f8271fc7bbfef3071ff6926f4759 /example
parent98aed8d47e7f5dfc3fef6290deb18e2fac01a46d (diff)
downloadriver-5f6428bafe41da2c5df6c6cb12ff65c225260322.tar.gz
river-5f6428bafe41da2c5df6c6cb12ff65c225260322.tar.xz
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'
Diffstat (limited to 'example')
-rwxr-xr-xexample/init4
1 files changed, 2 insertions, 2 deletions
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.