Have you noticed how some application windows will open with strange positioning, e.g. off to the left? Want to change that? Well now you can...
In this example I will use Firefox (this also works for Swiftfox without changing any code)
First, install "devilspie", this is available via Synaptic.
Once installed, go to your home directory and create a new hidden folder called .devilspieDevilspie
Find windows and perform actions on them
This tool will find windows as they are created and perform actions
on them, such as resizing, moving to another workspace, or pinning
them to all workspaces.
In the folder you just created, create a document and call it Firefox.ds
Open up Firefox.ds with a text editor and paste the following:
The first number is the X axis (horizontal position) and the second is the Y axis (vertical position).Code:(if (matches (application_name) "Firefox") (geometry "+120+0") )
The figure I am using (+120) is based on a screen resolution of 1280x1024 so you may need to change this if you find it's not perfectly centered.
Now to test it!
Open up a terminal window.
If you already have an un-maximised/un-minimised Firefox/Swiftfox window open you should see it reposition itself. if not, just open one up and it should open in it's new position rather than to the left of the screen.Code:devilspie
Once you are happy with the x axis position you'll want to add it to startup.
System -> Preferences -> Sessions -> Startup Programs -> Add ->> devilspie
Logout and back in to test - all should work fine.
If you want to use positioning on more than one window then simply create another .ds file for it.
There are of course more uses for devilspie, please see the wiki here: