duncs / clusterssh

Cluster SSH - Cluster Admin Via SSH
https://github.com/duncs/clusterssh/wiki
897 stars 79 forks source link

ClusterSSH should open up terminals in the window it was started from #31

Open purpleidea opened 9 years ago

purpleidea commented 9 years ago

I have two monitors. Whenever I run cssh it always opens the windows on the left hand (primary) monitor, even if I run the command from the right hand workspace. It should probably default to using the window it was run from.

For modern desktop environments that can be quite annoying.

Cheers, James

duncs commented 9 years ago

Not quite as simple as that

I wrote cssh to open all the terminal windows starting as screen position 0,0 in order that all terminals could be tiled across the screen to fit as many as necessary. To limit the terminals to one screen would require working out how big that one screen is and then how big each terminal must be to fit onto that one screen. How would you define what the limit of terminal windows should be before you make use of all screens?

If you can explain to me how you see the logic working, I'll see if it can easily be implemented.

Duncs

purpleidea commented 9 years ago

Good points. Here's the logic I would use:

I think this will solve the use case where we aren't going to have too many windows, and want to keep the developer happy, while not ruining the experience for anyone used to old behaviours.

HTH!