I have been using linux Mint 17.3 with Mate desktop for quite a bit now. One of the thing I absolutely love is that it remembers layout of windows for multiple monitor configurations. For example, in my normal desktop setup, I have my laptop on a docking station with 3 monitors attached to it - and my application windows are spread over these three monitors. When I undock the laptop, all windows move to the laptop display. When I connect the laptop back to the docking station, all windows are restored to their previous positions on the three monitors.

The other day I tried switching to Cinnamon desktop, per a colleague's recommendation - it does look nicer and works smoother, but it does not remember window position on multiple monitors. In the scenario above, when I plug the laptop back to the docking station, all windows stay on the primary display.

For me, this feature (or rather lack thereof) alone is enough to abandon Cinnamon and go back to Mate, as I have a lot of application windows open at any given time (15-20 is the norm) and I dock/undock the laptop several times a day in the course of my normal work. I can't afford to spend time rearranging windows every time I dock the laptop.

So, the question is, how can I make Cinnamon remember the windows position on multiple monitors and then restore it when I dock the laptop again?


This has been an ongoing issue with Cinnamon and to my knowledge this functionality still isn't available out of the box.

This thread mentions a program called gDevilspie that supposedly allows you to configure the default window positions. I don't have any experience with it, though.


I haven't automated this, but wmctrl let's you record window positions and also set them. xdotool might also work. Here are commands to restore and place windows:

Record: wmctrl -lG > ${rcfile}


while read row; do
  IFS=" " read id g x y w h _ <<< ${row}
  wmctrl -ir ${id} -e 0,${x},${y},${w},${h}
done < ${rcfile}

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.