userguide: Add an example for negative lookeaheads (#5665)

This commit is contained in:
Orestis Floros
2023-09-13 08:42:52 +02:00
committed by GitHub
parent 908c86544b
commit bffa4a543c

View File

@ -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