Topic: Setting terminator's initial window size
On my computer, the default initial size of a terminator(1) window is about 70 characters across. Since the standard wrap length of source files, etc. seems to be about 79 characters, that is not a very useful size. I haven't found any menu or preference setting to change this, so have resorted to python hacking ![]()
By altering terminator's python launcher script at /usr/share/terminator/terminator, I managed to set a starting size which gives room for about 80 characters in my preferred font. Specifically, I added the following lines just below the import statements:
if not filter((lambda s: '--geometry' in s), sys.argv):
sys.argv.append('--geometry=644')A width of 644 pixels gives room for 80 characters on my screen and font. Of course, there are more elegant solutions, but this seems to work. One useful feature is that it can be overridden by passing an explicit --geometry=X option on the command line.
Last edited by jforberg (2011-05-26 21:33:23)