The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

How to match all windows except current focused window?

asked Oct 3 '15

denzen gravatar image

There's a nice value "focused" by which to match all windows. Is it possible to match windows by "unfocused"? How to match all windows except the focused one?

2 answers

Sort by » oldest newest most voted
0

answered Oct 3 '15

denzen gravatar image

I hoped there was a built-in way to do it in i3wm. In Openbox there is:

<action name="ForEach"> <focused>no</focused> <then> <action...

Comments

You can always submit a feature request or provide a patch yourself. By the way, you shouldn't add comments as answers.

i3convert gravatar imagei3convert (Oct 3 '15)edit
0

answered Oct 3 '15

i3convert gravatar image

You can always write a script that parses the output of the shell command i3-msg -t get_tree to extract IDs of all windows that match your criteria (whatever they are). Then you can use those identifiers to match the windows one by one.

Question Tools

1 follower

Stats

Asked: Oct 3 '15

Seen: 30 times

Last updated: Oct 03