Back to Monitor

UUID: back-to-monitor@nathan818fr
Last edited:
9 months ago 2024-12-21, 20:36
Last commit: [42304549] Extensions - French translation (#798)

Move windows back to their original location when (re-)connecting a monitor.

README

Close

Back to Monitor - A Cinnamon extension

A Cinnamon extension to move windows back to their original location when (re-)connecting a monitor.

Screenshot

Features

  • Remember window locations based on monitor connection (can be switched on/off)
  • Minimize windows when a monitor is disconnected (can be switched on/off)

The goal of this extension is only to operate on windows that are moved automatically when a monitor is disconnected.
It is therefore not possible (and will never be) to create/save/restore layouts on demand.

Installation

Cinnamon Spices

Download it from Cinnamon Spices or search for "Back to Monitor" in your Cinnamon extension settings.

From source

To download the source and install it, execute the following as a normal user:

git clone git@github.com:nathan818fr/cinnamon-back-to-monitor.git
cd cinnamon-back-to-monitor
npm run install-extension

Issues

If you find any bug, you can report on the Github issues page.

Contributing

Contributions are welcome. Please submit pull requests to the extension repository (not the Spices repository, which is only a distribution channel).
It is recommended to open an issue before introducing new features to discuss them.

FAQ

• Tiled/snapped windows are not restored correctly

The required APIs are not exposed to cinnamon extensions.
Therefore, tiled/snapped windows can only be restored to the predefined dimensions.

• Fullscreen windows are not restored

Before Cinnamon 5.4, the required APIs were not exposed to cinnamon extensions.
In this case, the fullscreen windows will be ignored.

With Cinnamon 5.4 and above, the fullscreen windows will be restored correctly!

• The "Always on Visible Workspace" option is not restored

The required APIs are not exposed to cinnamon extensions.
Therefore, windows that had this option enabled will not keep it. Instead, they will be moved to the last workspace where they were present.

Log In To Comment!

4 Comments

Kevin L. Mitchell
Kevin L. Mitchell-2 weeks ago
I've found one corner case. I run Firefox on the Fedora 42 Cinnamon spin, and I like to have multiple Firefox windows open. Most of the instances are running on the external monitors, but I have one instance that's intended to be on my primary monitor (my laptop panel). If I disconnect the external monitors, then reconnect them (I have them connected via a KVM), the one Firefox instance running on my primary display is moved to one of the external monitors. I am presuming that this is because the extension assumes that all the windows of a given application are on the same monitor. Dunno if this is something that can be corrected, but FYI...
bazelisek
bazelisek-1 month ago
This extension is freezing my linux mint. Additionaly, it corrupt my bios, meaning the computer no longer posted, I had to reset bios and remove this extension.
Kim W.
Kim W.-10 months ago
Does not work for me
Simen Eriksen
Simen Eriksen-3 years ago
Thank you! This works just how you'd expect it! I have a dual monitor setup on my laptop, and I often go back and forth to meethings. Coming back at my desk, plugging in my docking station and seeing everything back to where it was is truly an amazing experience. It just works, that's a nicely done feat!