Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swallow: Add swallow_exception_regex #2026

Merged
merged 1 commit into from
Apr 12, 2023

Commits on Apr 11, 2023

  1. swallow: Add swallow_exception_regex

    Currently, if a window class is specified in the swallow_regex (e.g.
    Kitty) it will swallow every other window spawned by it automatically.
    Many other WMs implementing this functionality allow for defining
    exceptions from this rule. For instance, we want Kitty to swallow sxiv
    or zathura but we do not want Kitty to swallow something like wev.
    
    This commit adds an additional regex - swallow_exception_regex where
    these exceptions can be defined. This regex is then compared against the
    title of the window about to be swallowed and if it happens to be a
    match, aborts the swallowing.
    
    This works because whenever an application that could be swallowed is
    launched by a terminal, the class of the terminal remains the same while
    the title changes to whatever the application's name is, thus letting it
    be matched against a regex.
    mrkajetanp committed Apr 11, 2023
    Configuration menu
    Copy the full SHA
    0c5cd77 View commit details
    Browse the repository at this point in the history