FocusOnNetActive - bakkeby/dusk GitHub Wiki

The FocusOnNetActive functionality allows for clients to receive focus automatically when a _NET_ACTIVE_WINDOW client message is received.

This feature is typically used to automatically switch to the workspace where a new window is opened, for example to automatically move to workspace 8 when a browser is opened.

Note that while a _NET_ACTIVE_WINDOW client message is generally received when a new window is raised there is no guarantee for this to happen (it depends on the application).

The same feature can be enabled on a per client basis by setting the SwitchWorkspace flag via client rules.

The feature can be also disabled on a per client basis by setting the NoFocusOnNetActive flag via client rules.

A _NET_ACTIVE_WINDOW client message can also be received under other circumstances, such as the window asking for it.

This allows for the use of a single keybinding to both launch a program or switch to it if it is already running using external tools such as xdo.

Here is an example launching firefox if it could not be activated:

$ xdo activate -N firefox || firefox

Back to Functionality.

⚠️ **GitHub.com Fallback** ⚠️