brockgr / csshx

Automatically exported from code.google.com/p/csshx
433 stars 75 forks source link

Change screen bounds #100

Open JolleJolles opened 5 years ago

JolleJolles commented 5 years ago

I want to open 8 ssh windows but do not use the whole screen size. From the manual I understand there is a "screen_bounds" function, however I do not understand how to get this working. I tried csshX screen_bounds {100,100,500,500} and csshX --config configfilename with in the file screen_bounds = {100,100,500,500}. Probably something very easy but this is not clear from the manual. Thanks

aaplmike commented 4 years ago

According to the man page, you can set up bounds in ~/.csshrc or by passing the screen_bounds after --config, e.g. --config screen_bounds={100,100,900,900}. The easiest way to set the bounds is to use Ctrl-A b from the master window, then resize the resulting window to the position and size you want to contain all your sub-windows going forward, then hit enter to set that for the session. If you'd like to re-use that same configuration going forward, hit p while sizing the bounds and csshX will print the current bounds, which you can copy and save to ~/.csshrc.