Is it possible to set the default window position when an app is opened/launched from coords 0,0 to something else like:

  • (saved) - previously opened coords
  • (custom) custom x,y coords
  • (default) centered x,y of screen

What I've done: I've modified /org/gtk/settings/file-chooser/window-position to (100,100) as I cannot find any other system setting or option to define windows/apps to open center screen. This doesn't seem to affect anything.

Additionally what used to be at "System Settings > Look and Feel" is no longer present which had an option to choose the default app position as centered.

I am experiencing 3 scenarios:

1) Some of my setting dialogs always open center as desired, for example System Settings dialog.

2) Then I have some apps that seem to remember their position/size as desired, for example Chrome, Vivaldi, System Monitor...

3) But others like the file manager, terminal, thunderbird, dconf editor and more all open in the upper left (0,0) coords which places the drag-able title bar just under my top status bar and it is very difficult to grab and re position these windows.

I am trying to fix scenario #3, muchas gracias =)

  • Not sure if it is exactly what you are looking for, but: askubuntu.com/questions/613973/… – Jacob Vlijm Jul 4 '17 at 19:24
  • Please post your solution as an answer, not into your question. – Pilot6 Jul 5 '17 at 21:11
  • Hi thanks @JacobVlijm while an interesting solution to set a window at predefined dimensions centered on screen via script/command line, the answer provided below was very simple and seems to be a one-time fix. Thx for sharing your find =) – Philip Ingram Jul 5 '17 at 21:12
  • 1
    @Pilot6 Sorry, I was simply referencing the accepted solution below, I'll update the thread. – Philip Ingram Jul 5 '17 at 21:15
  • 1
    @Pilot6, sorry to offend so easily, duly noted. Thx and updated the question. – Philip Ingram Jul 5 '17 at 21:17

To fix scenario #3...

Hold down the ALT key on the keyboard, then left-click-hold-drag the mouse pointer in an open space of the window that's hidden under the top panel. Drag the window to the desired position.

Another solution would be to install Compiz Config Manager, and configure the Place Windows pane to put the windows where you'd like them permanently.

sudo apt-get update
sudo apt-get install compizconfig-settings-manager
  • While it doesn't "fix" issue 3, it is a great work around to be able to move the window to the desired screen position without too much trouble. Would be nice to not have to do this at all and remember it's position as in previous builds. Thank you very much! – Philip Ingram Jul 2 '17 at 1:36
  • Yes thank you, I gave you an up vote as the info you provided is very helpful but was told it won't show because my rep here is not high enough yet =( It has worked excellent moving windows into place each time much easier but no they do not retain position upon next launch. – Philip Ingram Jul 2 '17 at 9:52
  • Then use Compiz Config Manager. There's a pane there that allows you to specify where you want windows to be placed. – heynnema Jul 2 '17 at 13:12
  • Update your answer to include this info and I'll accept it as the solution. Upon installing compiz config settings manager I was able to enable Window Management > Place Windows and the within that setting also set General > Workarounds (enabled) and Placement Mode to centered. – Philip Ingram Jul 4 '17 at 19:06
  • @PhilipIngram done. Thanks! Glad you got it set to your desire. – heynnema Jul 4 '17 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.