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

Is it possible to exclude applications from Flash Focus? #204

Open
letmorfin opened this issue Mar 10, 2023 · 1 comment
Open

Is it possible to exclude applications from Flash Focus? #204

letmorfin opened this issue Mar 10, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@letmorfin
Copy link

Is it possible to exclude applications from Flash Focus?

@Nooo37
Copy link
Member

Nooo37 commented Mar 27, 2023

If you are on the git version, you can add a rule like that (edited from https://awesomewm.org/apidoc/declarative_rules/ruled.client.html):

ruled.client.append_rule {
    rule_any    = {
        except_any = {"firefox"}
    },
    properties = {
        custom_do_not_flash_whatever = true,
    },
}

And then check yourself whether you want to run flashed (edited from https://blingcorp.github.io/bling/#/module/flash):

awful.key({modkey}, "Up",
    function()
       awful.client.focus.bydirection("up")
+      if not client.focus.custom_do_not_flash_whatever then
-      bling.module.flash_focus.flashfocus(client.focus)
+          bling.module.flash_focus.flashfocus(client.focus)
+      end
     end, {description = "focus up", group = "client"})

There is no way that involves no code at all and I think there shouldn't be either

@Nooo37 Nooo37 added the help wanted Extra attention is needed label Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants