humpty promotes - Linux - Lubuntu

Lubuntu linux Tips
 
Config files          

Always Open an app at the same position


Config files determine how your system looks and feels.


Open an App at the same position


It's so annying that some apps don't remember their last closed position and even more annoying that they randomly pick a spot on the screen. Well at least with Openbox, you can pick a specific position for a particular app.
The standard config file to set is ~/.config/openbox/rc.xml but in Lubuntu it's ~/.config/openbox/lubuntu-rc.xml

Near the bottom of the file there is an applications section where you can set per-application settings;

lubuntu-rc.xml
.
blah
blah
.
<applications>

    <application name="pcmanfm">
      <position force="no">
        <x>0</x>
        <y>0</y>
      </position>
    </application>

    <application name="spacefm">
      <position force="no">
        <x>-0</x>
        <y>0</y>
      </position>
    </application>

  </applications>
</openbox_config>

In this example, PCmanFM will always open at location 0,0 (top left of the screen) while SpaceFM will open at location -0,0 . The minus sign means count from the right-hand-edge.

There are more example settings found inside /etc/xdg/openbox/rc.xml

To restart Openbox, enter "openbox --restart".

To find the name of the app, open the app window and enter into a terminal
 "obxprop | grep "^_OB_APP".

A cursor will appear, use it to click on the app. Some info will appear in the terminal.

For some mis-behaving apps, you might need to position-force="yes'.



More Lubuntu Tips



Leading Cloud Surveillance, Recording and Storage service; IP camera live viewing

Leading Enterprise Cloud IT Service; cloud file server, FTP Hosting, Online Storage, Backup and Sharing

Powered by FirstCloudIT.com, a division of DriveHQ, the leading Cloud IT and Cloud Surveillance Service provider since 2003.