Project

General

Profile

unexist.dev

Assorted tidbits and projects

Problem: moving along windows.

Added by Constantine Pokrovsky over 13 years ago

I am spawning several fullscreen terminals with central gravity. It seems to be logical to arrange the windows in a kind of linear structure, like a list or an array. But I do not see any actions like :WindowNext or :WindowPrev to switch between the elements of such a list. :WindowUp, :WindowDown, :WindowLeft behave somehow wired switching just two of them instead of all. :WindowRight and :WindowLower usually do the trick switching all the elements in a sequential order but not all the time. I am running version 0.9.2773. Can you recommend any solution of the problem?


Replies (5)

RE: Problem: moving along windows. - Added by Christoph Kappel over 13 years ago

Instead of using e.g. WindowLeft use WindowLower. Subtle stacks windows and with WindowLower you move the selected window to the bottom of the window stack. Normally WindowLeft etc. shouldn't select stacked windows, looks like there is a flaw in the algorithm.

RE: Problem: moving along windows. - Added by Constantine Pokrovsky over 13 years ago

Ok. Seems that both WindowLeft and WindowLower were binded to the same key. But is there any way to move backward? I mean in the direction opposite to WindowLower's.

RE: Problem: moving along windows. - Added by Christoph Kappel over 13 years ago

WindowLower and WindowRaise just change the stack position of the selected window. You can use subtlext in a grab to focus other clients on that views and there are many ways to do that. In r2933 you can do that like this:

{{hide}}grab "A-S-r" do
  Subtlext::View.current.clients.last.raise
end

RE: Problem: moving along windows. - Added by Constantine Pokrovsky over 13 years ago

Thanks. 5 minutes of scripting did the job. Now it seems that choosing a WM with Ruby-based frontend was a good idea. The WM is friendly to a user as the language itself.

RE: Problem: moving along windows. - Added by Christoph Kappel over 13 years ago

You are welcome. Actually subtle is written in C and Ruby is just used for scripting. Most of the stuff uses the extension subtlext.

    (1-5/5)