Change the Default Size of Terminator Terminal in CrunchBang

In CrunchBang Linux, you can open a Terminator terminal by right-clicking on the desktop and choose Terminal on the pop-up menu, or use the Super-t shortcut keys to open a new terminal.

By default, the Terminator terminal window size is too small for my taste. I want the default terminal window size to cover most of the screen.

The terminator program has a --geometry option that can set the preferred size and position of the window. Format of the option is:

--geometry=WIDTHxHEIGHT+XOFF+YOFF

Where WIDTH, HEIGHT, XOFF, and YOFF are numbers measured in pixels. XOFF and YOFF are used to specify the distance of the window from the left/right and top/bottom edges of the screen, respectively. The offsets may be specified in the following ways:

+XOFF
The left edge of the window is to be placed x-offset pixels in from the left edge of the screen. if XOFF is negative, the window’s left edge will be off the screen.
-XOFF
The right edge of the window is to be placed x-offset pixels in from the right edge of the screen. if XOFF is negative, the window’s right edge will be off the screen.
+YOFF
The top edge of the window is to be placed y-offset pixels in from the top edge of the screen. if YOFF is negative, the window’s top edge will be off the screen.
-YOFF
The bottom edge of the window is to be placed y-offset pixels in from the bottom edge of the screen. if YOFF is negative, the window’s bottom edge will be off the screen.

Offsets must be given as pairs. In other words, both must be present. Here are some examples on window placement:

+0+0 upper left hand corner.
-0+0 upper right hand corner.
-0-0 lower right hand corner.
+0-0 lower left hand corner.

So back to the task at hand. To set the default pop-up menu Terminal size, I edit the ~/.config/openbox/menu.xml file. Here’s the excerpted section that set the Terminal size:

<item label="Terminal">
  <action name="Execute">
    <command>
      terminator --geometry=1600x930+0+0
    </command>
  </action>
</item>

To set the default Super-t shortcut key Terminal size, I edit the ~/.config/openbox/rc.xml file. Here’s the excerpted section that set the Terminal size:

<keybind key="W-t">
  <action name="Execute">
    <startupnotify>
      <enabled>true</enabled>
      <name>Terminal</name>
    </startupnotify>
    <command>terminator --geometry=1600x930+0+0</command>
  </action>
</keybind>

Finally, after saving the files. I reload Openbox’s configuration with the command:

openbox --reconfigure

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.