From eaeba9d8e3c538a13265d915d2105303dd9e5bd2 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Tue, 12 Sep 2023 19:38:17 +0200 Subject: userguide: Add an example for negative lookeaheads --- docs/userguide | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/userguide b/docs/userguide index a3072c88..d211c1d5 100644 --- a/docs/userguide +++ b/docs/userguide @@ -2201,6 +2201,10 @@ bindsym $mod+x [class="(?i)firefox"] kill # kill only the About dialog from Firefox bindsym $mod+x [class="Firefox" window_role="About"] kill +# kill all windows except for Firefox and Gnome Terminal. +# case-insensitive and uses negative lookaheads, supported by PCRE +bindsym $mod+x [class="^(?i)(?!firefox)(?!gnome-terminal).*"] kill + # enable floating mode and move container to workspace 4 for_window [class="^evil-app$"] floating enable, move container to workspace 4 -- cgit v1.2.3-54-g00ecf