Skip to content

Commit

Permalink
Update back-to-monitor@nathan818fr (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan818fr authored Sep 11, 2023
1 parent 8172ed0 commit e287b76
Show file tree
Hide file tree
Showing 24 changed files with 591 additions and 316 deletions.
1 change: 1 addition & 0 deletions back-to-monitor@nathan818fr/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
9 changes: 9 additions & 0 deletions back-to-monitor@nathan818fr/.prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
trailingComma: es5
printWidth: 120
tabWidth: 4
semi: true
singleQuote: true
bracketSpacing: false
overrides:
- files: ['*.json']
options: {tabWidth: 2}
10 changes: 5 additions & 5 deletions back-to-monitor@nathan818fr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ A Cinnamon extension to move windows back to their original location when (re-)c

![Screenshot](./screenshot.png?raw=true)

> **IMPORTANT: Cinnamon 5.4+ natively provides the features of this extension.**
## Features

- Remember window locations based on monitor connection (can be switched on/off)
Expand All @@ -27,7 +25,7 @@ To download the source and install it, execute the following as a normal user:
```bash
git clone [email protected]:nathan818fr/cinnamon-back-to-monitor.git
cd cinnamon-back-to-monitor
cinnamon-install-spice extension files/back-to-monitor@nathan818fr
npm run install-extension
```

## Issues
Expand All @@ -48,8 +46,10 @@ Therefore, tiled/snapped windows can only be restored to the predefined dimensio

### • Fullscreen windows are not restored

The required APIs are not exposed to cinnamon extensions.<br/>
Therefore, fullscreen windows are ignored by this extension.
Before Cinnamon 5.4, the required APIs were not exposed to cinnamon extensions.<br/>
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

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"name": "Back to Monitor",
"description": "Move windows back to their original location when (re-)connecting a monitor.",
"author": "Nathan Poirier &lt;[email protected]&gt;",
"cinnamon-version": ["4.0", "4.2", "4.4", "4.6", "4.8", "5.0", "5.2"],
"multiversion": true,
"cinnamon-version": ["4.0", "4.2", "4.4", "4.6", "4.8", "5.0", "5.2", "5.4", "5.6"],
"url": "https://github.com/linuxmint/cinnamon-spices-extensions/tree/master/back-to-monitor%40nathan818fr"
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,10 @@ msgid ""
"Move windows back to their original location when (re-)connecting a monitor."
msgstr ""

#. 4.0->settings-schema.json->rememberState->description
#. settings-schema.json->rememberState->description
msgid "Remember window locations based on monitor connection"
msgstr ""

#. 4.0->settings-schema.json->minimize->description
#. settings-schema.json->minimize->description
msgid "Minimize windows when a monitor is disconnected"
msgstr ""

#. 5.4->settings-schema.json->incompatibilityNotice1->description
msgid "This extension is not compatible with this version of Cinnamon."
msgstr ""

#. 5.4->settings-schema.json->incompatibilityNotice2->description
msgid "Cinnamon now natively provides the features of this extension."
msgstr ""
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ msgstr "Back to Monitor"
msgid "Move windows back to their original location when (re-)connecting a monitor."
msgstr "Flyt vinduer tilbage til deres oprindelige placering, når en skærm tilkobles (igen)."

#. 4.0->settings-schema.json->rememberState->description
#. settings-schema.json->rememberState->description
msgid "Remember window locations based on monitor connection"
msgstr "Husk vinduesplacering baseret på skærmforbindelse"

#. 4.0->settings-schema.json->minimize->description
#. settings-schema.json->minimize->description
msgid "Minimize windows when a monitor is disconnected"
msgstr "Minimér vinduer, når en skærm frakobles"
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,10 @@ msgstr "Back to Monitor"
msgid "Move windows back to their original location when (re-)connecting a monitor."
msgstr "Déplacer les fenêtres à leur emplacement d'origine lors de la (re)connexion d'un moniteur."

#. 4.0->settings-schema.json->rememberState->description
#. settings-schema.json->rememberState->description
msgid "Remember window locations based on monitor connection"
msgstr "Mémoriser les emplacements des fenêtres en fonction de la connexion au moniteur"

#. 4.0->settings-schema.json->minimize->description
#. settings-schema.json->minimize->description
msgid "Minimize windows when a monitor is disconnected"
msgstr "Réduire les fenêtres lorsqu'un moniteur est déconnecté"

#. 5.4->settings-schema.json->incompatibilityNotice1->description
msgid "This extension is not compatible with this version of Cinnamon."
msgstr "Cette extension n'est pas compatible avec cette version de Cinnamon."

#. 5.4->settings-schema.json->incompatibilityNotice2->description
msgid "Cinnamon now natively provides the features of this extension."
msgstr "Cinnamon fournit maintenant nativement les fonctionnalités de cette extension."
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ msgstr "Vissza a kijelzőre"
msgid "Move windows back to their original location when (re-)connecting a monitor."
msgstr "Visszahelyezi az ablakokat az eredeti helyére, amikor újracsatlakoztat egy kijelzőt."

#. 4.0->settings-schema.json->rememberState->description
#. settings-schema.json->rememberState->description
msgid "Remember window locations based on monitor connection"
msgstr "Feljegyzi az ablakok helyét az adott kijelzőn"

#. 4.0->settings-schema.json->minimize->description
#. settings-schema.json->minimize->description
msgid "Minimize windows when a monitor is disconnected"
msgstr "Az ablak minimalizálása, amikor a kijelző nincsen csatlakoztatva"
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ msgstr "Torna al Monitor"
msgid "Move windows back to their original location when (re-)connecting a monitor."
msgstr "Riporta le finestre nella loro posizione originale quando (ri)connetti un monitor."

#. 4.0->settings-schema.json->rememberState->description
#. settings-schema.json->rememberState->description
msgid "Remember window locations based on monitor connection"
msgstr "Ricorda le posizioni delle finestre in base alla connessione del monitor"

#. 4.0->settings-schema.json->minimize->description
#. settings-schema.json->minimize->description
msgid "Minimize windows when a monitor is disconnected"
msgstr "Riduci a icona le finestre quando un monitor è disconnesso"
Loading

0 comments on commit e287b76

Please sign in to comment.