Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants