Show *all* windows in a grid layout

Hello, I am using "goToSelected" from GridSelect to switch between windows. This arranges all window titles in a grid. And I can switch to the corresponding window very quickly. However I would prefer to arrange the windows itself (from all workspaces) rather than their titles in a grid layout and then select them in a similar way (with keys j,k,l,h). How can I do it? Is it possible to arrange all windows from all workspaces in a grid layout? Cheers Sepp

On Fri, Jun 22, 2012 at 6:12 AM, Sepp Tannhuber
Hello,
I am using "goToSelected" from GridSelect to switch between windows. This arranges all window titles in a grid. And I can switch to the corresponding window very quickly. However I would prefer to arrange the windows itself (from all workspaces) rather than their titles in a grid layout and then select them in a similar way (with keys j,k,l,h). How can I do it? Is it possible to arrange all windows from all workspaces in a grid layout?
Cheers Sepp
Hi Sepp, It is possible: see the attached M.hs which you could drop into ~/.xmonad/lib/. The other file is a configuration which works with M.hs. It should be possible to improve it such that: - keep the same window focused when switching between the grid and the normal workspace - submap or similar so that you don't have to hold a modifier key to do the L.WindowNavigation - allow selecting subsets of all windows - create the workspace / layout from a keybinding which will make the set-up easier Normally you'd use compositing for this kind of thing so that you don't have to resize windows, but if your screen is large and you have few windows you might be able to interact with them in a meaningful way when they are all in the grid layout. Adam

Hi Adam, thank you for your answer. It is impressive what is possible with these few lines of code. At the moment I have not found a way to make the modifications you mentioned. Is it possible to make key bindings dependent on the current layout? Something like "XMonad.Actions.PerLayoutKeys"? Cheers Joseph

On Sun, Jun 24, 2012 at 1:11 PM, Sepp Tannhuber
Hi Adam,
thank you for your answer. It is impressive what is possible with these few lines of code. At the moment I have not found a way to make the modifications you mentioned.
Is it possible to make key bindings dependent on the current layout? Something like "XMonad.Actions.PerLayoutKeys"?
Cheers Joseph
Hi Joseph, To do something like PerLayoutKeys, take PerWorkspaceKeys and replace the "S.currentTag" with "description . S.layout . S.workspace . S.current". A module that can help keeping the description strings short and predictable is XMonad.Layout.Named. I think such a thing would be nice to have in contrib, and probably the cleanest thing is to have a PerXKeys module which exports one or two functions that let you write "PerWorkspaceKeys.bindOn" in one line. -- Adam
participants (2)
-
adam vogt
-
Sepp Tannhuber