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

Focus on target application

asked 2015-04-20 18:21:33 +0000

freb gravatar image

Frequently I'll open a file from the terminal that will be used in another application (pdf viewer, file manager, sublime text, etc.). i3 does not focus on the target application but maintains focus on the terminal. I can see how this would be desirable in many situations and doesn't bother me when the target application is in the same workspace.

The problem is when I have an instance of one of the target applications running in a different workspace, running the command appears to do nothing, when in fact the action has taken place in another window in another workspace.

Is it possible to focus on the target application?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2015-04-20 19:33:52 +0000

Airblader gravatar image

updated 2015-04-20 19:34:14 +0000

Airblader gravatar image

There is, but only on the current next branch. In fact, there are two different things:

  • focus_on_window_activation – defines how to handle the focus change request of the client if it's already running (e.g., opening a new tab in Chrome via commandline)
  • no_focus – defines whether windows should receive focus when they are first opened (used with command criteria)

But, as stated, you need to wait for the next release or install next from source.

edit flag offensive delete link more

Comments

Exactly what I was looking for. Thanks!

freb gravatar imagefreb ( 2015-04-20 19:35:34 +0000 )edit

Question Tools

Stats

Asked: 2015-04-20 18:21:33 +0000

Seen: 87 times

Last updated: Apr 20