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

focus previous window

asked 2013-01-28 02:45:05 +0000

Goran gravatar image

Hello I'm playing with gnome-pie as I want to use it when I'm lazy and don't want to reach for the keyboard :). The main problem is that when pie is run the focus shifts to the new floating window. This is solvable, I just switch back focus with focus toggle_mode and it works. But it works for non floating windows. Is there some focus previous command that I can use instead.

I think that using mouse or touch is a very interesting way to interact with a window manager like i3 and that it might open door to new opportunities. Since the 'near' future is in laptop/tablet transformers, having usable and easy interface in each mode is a very big plus. And this is pretty easy to do with 3rd party software like gnome-pie.

edit retag flag offensive close merge delete

Comments

I don’t understand your question. Can you rephrase?

Michael gravatar imageMichael ( 2013-01-28 07:56:03 +0000 )edit

Also note that i3 is not made for touch-based user interfaces and _will not be optimized for that_, ever. It’s an entirely different use case.

Michael gravatar imageMichael ( 2013-01-28 07:56:29 +0000 )edit

I focus a window and I want to kill it for example. So I run gnome-pie which opens in new floating window and from it I run the command "i3-msg focus mode_toggle; kill". But that will switch focus to non floating window. So I cant use the same system for floating windows.Is there some focus previous

Goran gravatar imageGoran ( 2013-01-28 12:14:29 +0000 )edit

I need to revert the focus to the previous window for the command to work. And I cant use mode_toggle if the window is already in the floating mode. But I'm very happy with the way gnome-pie works with i3. I have total control of my i3 with a mouse or touch pad, it's very cool.

Goran gravatar imageGoran ( 2013-01-28 12:17:38 +0000 )edit

Also don't think I want U to make i3 in to a touch friendly interface, not at all. That will be my job (eventually :D)

Goran gravatar imageGoran ( 2013-01-28 12:24:25 +0000 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2013-02-04 07:19:04 +0000

Michael gravatar image

So, as far as I interpret your question, you are trying to use multiple floating windows, one of them is gnome-pie, and then want to programmatically revert focus to the floating window where it was before gnome-pie was started.

It seems to me that just using focus left should do precisely that.

Note that i3 does not encourage using more than one floating window at a time. Floating windows are for passphrase dialogs and the like, not for real work.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-28 02:45:05 +0000

Seen: 375 times

Last updated: Feb 04 '13