Skip to content

Commit

Permalink
userguide: Add an example for negative lookeaheads (#5665)
Browse files Browse the repository at this point in the history
  • Loading branch information
orestisfl committed Sep 13, 2023
1 parent 908c865 commit bffa4a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/userguide
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bffa4a5

Please sign in to comment.