How can I sort windows inside a container automatically?
I am using clusterssh
to manage a large number of systems. clusterssh
opens a terminal for each host plus an input window. The problem with that is that the windows are not created in the order specified on the command line, but in a rather random order. That is:
$ cssh server1 server2 server3
may very well create this layout:
+---------------------+
| server3 |
+---------------------+
| server1 |
+---------------------+
| server2 |
+---------------------+
| input |
+---------------------+
While not really a problem with only three windows, trying to find the right window out of 40 is rather cumbersome. And manually sorting them even more so.
(Ironically, on floating window managers CSSH can create a tiled and sorted layout of terminal windows)
So the question is: is there an easy way to sort all windows in a container by name?
I know, I can get the layout tree from the IPC, but there seems to be no way to modify it other than using the commands available for key bindings (focus
, move
,...).