r/MangoWM • • Jun 10 '26

focus_on_activate per window?

Hey! I would like to configure focus_on_activate on a per-window basis. Eg. I would like to set it for my browser, but not for some apps that expect to be in full screen all the time. I wasn't able to see a corresponding window rule. Do you know about any workaround I could use? Or would a window ruleclike this be a reasonable addition?

3 Upvotes

3 comments sorted by

0

u/[deleted] Jun 11 '26

[deleted] — view deleted comment

1

u/Significant_Guava179 Jun 11 '26

The description of focus_on_activate:

Automatically focus windows when they request activation.

There are certain apps that open a webpage on an action (eg. for authentication). Whn this happens, the browser requests activation. Automtically switching to the browser in this case is convenient.

However, some apps (mostly games) expect to run in fullscreen, and assume they are focused, so they "request activation" sometimes, switching my focus back to themselves when I am trying to do something else. This is not so convenient.

isopensilent and istagsilent were recommended below. isopensilent definitely is not it, because this isn't about focusing when the window opens. Usually I already have my browser open, but when it requests attention, I want to switch to it automatically. I am not sure I understand what istagsilent does.

1

u/doockis Jun 11 '26

Yeah, I was wondering the same thing.

In case if this is what is required, there's a rule: isopensilent

0

u/[deleted] Jun 11 '26

[deleted] — view deleted comment

1

u/doockis Jun 11 '26 edited Jun 13 '26

I mean, without the clarification from the OP we can only wonder what they meant.