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 2015-10-03 03:07:25 +0000

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?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-10-03 11:34:55 +0000

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...

edit flag offensive delete link more

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 ( 2015-10-03 15:42:52 +0000 )edit
0

answered 2015-10-03 05:41:40 +0000

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-10-03 03:07:25 +0000

Seen: 30 times

Last updated: Oct 03