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.

Finally I have change my work environment at work from windows to Ubuntu 12.04, using Gnome 3.4.

I'm very satisfied, but there is one issue that I'm trying to resolve for some time without success.

Most of the time the laptop (Lenovo x230) is docked in a docking station and connected to an external monitor, the primary monitor is the external monitor, and the secondary is the monitor of the laptop. But sometimes the laptop is leaving the docking stations - meetings/work on the train/etc, when the laptop is docked back to the docking station all the open applications stay at the secondary screen and I need to drag manually all applications to the primary screen.

output of: xrandr -q:

  LVDS1 connected 1366x768+1920+0 (normal left inverted right x axis y axis) 277mm x 156mm
  1366x768       60.1*+
  1360x768       59.8     60.0  
  1024x768       60.0  
  800x600        60.3     56.2  
  640x480        59.9  
  VGA1 disconnected (normal left inverted right x axis y axis)
  HDMI1 disconnected (normal left inverted right x axis y axis)
  DP1 disconnected (normal left inverted right x axis y axis)
  HDMI2 disconnected (normal left inverted right x axis y axis)
  HDMI3 disconnected (normal left inverted right x axis y axis)
  DP2 connected 1920x1200+0+0 (normal left inverted right x axis y axis) 518mm x 324mm
  1920x1200      60.0*+
  1920x1080      60.0  
  1600x1200      60.0  
  1280x1024      75.0     60.0  
  1152x864       75.0  
  1024x768       75.1     60.0  
  800x600        75.0     60.3  
  640x480        75.0     60.0  
  720x400        70.1  
  DP3 disconnected (normal left inverted right x axis y axis)

In addition I have installed: https://extensions.gnome.org/extension/484/workspace-grid/

and followed: http://gregcor.com/2011/05/07/fix-dual-monitors-in-gnome-3-aka-my-workspaces-are-broken/

but with no use, still I drag all applications manually to the primary screen on docking.

Is there a utility/script/command to move all open applications to the primary screen?

Thanks for the help.

share|improve this question
    
I found the solution here: superuser.com/a/315865 worked like magic. –  Elia Aug 20 '13 at 14:18
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.