Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just started trying out Lubuntu 12.04. I know I can edit ~/.config/openbox/lubuntu-rc.xml to assign keyboard shortcuts to open programs with certain parameters. For example, I can specify that Ctrl+Alt+T opens lxterminal with a certain size like this:

<!-- Launch a terminal on Ctrl + Alt + T-->
<keybind key="C-A-T">
  <action name="Execute">
    <command>lxterminal --geometry=148x30</command>

But how do I do the same thing for lxterminal when started by clicking on its icon in my Application Launch Bar? In other words, I'd like to have the same-sized terminal window if I click on the lxterminal icon in the Application Launch Bar or if I start lxterminal using Ctrl+Alt+T. Is it possible? How do I do that? As far as I could make out, editing ~/.config/lxterminal/lxterminal.conf by adding geometry=148x30 doesn't help.

share|improve this question
up vote 4 down vote accepted

In addition to the modification made to lubuntu-rc.xml, you will need to edit your terminal desktop file:

gksudo leafpad /usr/share/applications/lxterminal.desktop

Look for the Exec= line and replace with Exec=lxterminal --geometry=148x30.

It appears that logging out and in is needed to make this change take effect. (To give effect to changes in lubuntu-rc.xml, one just needs to run openbox --reconfigure from a terminal.) Now, the terminal will have the same geometry, whether invoked by the keyboard or via the Application Launchbar.

share|improve this answer
looks great! glad it worked.... – algebralives Sep 20 '12 at 21:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.