Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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>
  </action>
</keybind>

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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