Skip to content

Commit 349d600

Browse files
authored
[Flipper@connerdev] Version 2.0.2 Disabled option + Fix (#869)
- Add a Disable effect option which will use no workspace switch effect, not even the default Cinnamon workspace switch effect. Since Cinnamon does not offer a way to independently disable the workspace switch effect, with this option you can disable the effect but still allow of the desktop and window effects. - Fix the disappearing effect settings problem using a "hack" fix. Add a permanent empty label field below the effect settings avoids the issue.
1 parent 2c24605 commit 349d600

21 files changed

+246
-27
lines changed

Flipper@connerdev/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 2.0.2
4+
5+
* Added a Disable effect option which will use no workspace switch effect, not even the default Cinnamon workspace switch effect. Since Cinnamon does not offer a way to independently disable the workspace switch effect, with this option you can disable the effect but still allow of the desktop and window effects.
6+
* Fixed the disappearing effect settings problem using a "hack" fix. Adding a permanent empty label field below the effect settings avoids the issue.
7+
38
## 2.0.1
49

510
- Make windows that are 'visible on all workspaces' also visible on the animated workspace clones

Flipper@connerdev/README.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Flipper
22

3-
Fancy workspace switching extension with 7 different effect animation options
3+
Fancy workspace switching extension with 7 different effect animation options: Cube, Deck, Flip, Pop, Rolodex, Slide and Stack!
4+
5+
Each effect has 5 user adjustable settings: Animation duration, Zoom amount, Fade transition, Background dim amount, Transition easing.
6+
7+
You can use your favorite effect or use a random effect chosen from your selection of the 7 effects.
8+
9+
Also has a "Disabled" option which will not only disable all the Flipper effects but also prevents the default Cinnamon workspace switch effect. Great for people who want a super fast workspace switch but don't want to disable all the other Cinnamon desktop and window effects.
410

511
## Requirements
612

@@ -36,8 +42,6 @@ If you know of other methods of switching the workspace where the Flipper effect
3642

3743
2. If you enable the "Include Panels" option in the Flipper configuration, the panels will disappear while the effect is in action and then reappear when it is done. This is far from ideal, so I recommend that you leave this option disabled so that the panels remain hidden, only reappearing after returning to the normal desktop.
3844

39-
3. In the setting configure window under the "Effect Settings" tab, when changing the "Show setting for effect" drop-down to select a different effect, sometimes the contents under the "Effect Specific Settings" title will not properly update. Because of this, only a subset of the available options are visible. I believe this is a Cinnamon bug. You can force Cinnamon to properly redraw the options by selecting the "General" tab then returning to the "Effect Settings" tab again. After that, the complete set of "Effect Specific Settings" should be visible.
40-
4145
## Installation
4246

4347
- Right click on the cinnamon panel and click "System Settings"

Flipper@connerdev/files/Flipper@connerdev/5.4/extension.js

+14-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ const TransitionEffect = {
2828
Rolodex: 4,
2929
Slide: 5,
3030
Stack: 6,
31-
Randomized: 7
31+
Randomized: 7,
32+
Disabled: 8
3233
}
3334

3435
let enabled;
@@ -61,9 +62,17 @@ Flipper.prototype = {
6162

6263
this.effectName = this.getEffectName();
6364
if (this.effectName == null ) {
64-
// Nothing enabled, so just do a normal workspace switch!
65-
Main.soundManager.play('switch');
66-
new_workspace.activate(global.get_current_time());
65+
if (settings.transitionEffect === TransitionEffect.Disabled) {
66+
// Disable Cinnamon effects while the Workspace switch is happening
67+
let save = Main.animations_enabled
68+
Main.animations_enabled = false;
69+
new_workspace.activate(global.get_current_time());
70+
Main.animations_enabled = save;
71+
} else {
72+
// No random effects enabled, so just do a normal workspace switch!
73+
Main.soundManager.play('switch');
74+
new_workspace.activate(global.get_current_time());
75+
}
6776
Main.wm.showWorkspaceOSD();
6877
return;
6978
}
@@ -489,6 +498,7 @@ Flipper.prototype = {
489498
return "Stack";
490499
}
491500
}
501+
// Return null if there are no random effects selected, or if the "Disabled" option was selected
492502
return null;
493503
},
494504

Flipper@connerdev/files/Flipper@connerdev/5.4/settings-schema.json

+10-2
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,16 @@
4040
"pop-animationTime", "pop-pullaway", "pop-fade", "pop-dim-factor", "pop-rotateEffect",
4141
"rolodex-animationTime", "rolodex-pullaway", "rolodex-fade", "rolodex-dim-factor", "rolodex-rotateEffect",
4242
"slide-animationTime", "slide-pullaway", "slide-fade", "slide-dim-factor", "slide-rotateEffect",
43-
"stack-animationTime", "stack-pullaway", "stack-fade", "stack-dim-factor", "stack-rotateEffect"]
43+
"stack-animationTime", "stack-pullaway", "stack-fade", "stack-dim-factor", "stack-rotateEffect",
44+
"hack-fix-blank"]
4445
}
4546
},
4647

48+
"hack-fix-blank": {
49+
"type" : "label",
50+
"description" : ""
51+
},
52+
4753
"cube-random-include": {
4854
"type" : "checkbox",
4955
"description" : "Cube",
@@ -490,6 +496,7 @@
490496
"transitionEffect": {
491497
"type": "combobox",
492498
"description": "Workspace Transition Effect",
499+
"tooltip": "Select the type of workspace switch effect that will be used. The \"Randomized\" option allows you to choose which effects can be chosen at random for each workspace switch. The \"Disabled\" option will show no effect, not even the Cinnamon built in effect during a workspace switch.",
493500
"default": "Stack",
494501
"options": {
495502
"Cube": 0,
@@ -499,7 +506,8 @@
499506
"Rolodex": 4,
500507
"Slide": 5,
501508
"Stack" : 6,
502-
"Randomized" : 7
509+
"Randomized" : 7,
510+
"Disabled" : 8
503511
}
504512
},
505513
"patchmoveToWorkspace": {

Flipper@connerdev/files/Flipper@connerdev/metadata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"5.0",
2121
"5.4"
2222
],
23-
"version": "2.0.1",
23+
"version": "2.0.2",
2424
"url": "https://github.com/ConnerHansen/Flipper",
2525
"uuid": "Flipper@connerdev",
2626
"name": "Flipper",

Flipper@connerdev/files/Flipper@connerdev/po/Flipper@connerdev.pot

+14-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
#, fuzzy
66
msgid ""
77
msgstr ""
8-
"Project-Id-Version: Flipper@connerdev 2.0.1\n"
8+
"Project-Id-Version: Flipper@connerdev 2.0.2\n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2025-01-10 00:15-0500\n"
11+
"POT-Creation-Date: 2025-04-17 21:29-0400\n"
1212
"PO-Revision-Date: \n"
1313
"Last-Translator: \n"
1414
"Language-Team: \n"
@@ -313,10 +313,22 @@ msgstr ""
313313
msgid "Workspace Transition Effect"
314314
msgstr ""
315315

316+
#. 5.4->settings-schema.json->transitionEffect->tooltip
317+
msgid ""
318+
"Select the type of workspace switch effect that will be used. The "
319+
"\"Randomized\" option allows you to choose which effects can be chosen at "
320+
"random for each workspace switch. The \"Disabled\" option will show no "
321+
"effect, not even the Cinnamon built in effect during a workspace switch."
322+
msgstr ""
323+
316324
#. 5.4->settings-schema.json->transitionEffect->options
317325
msgid "Randomized"
318326
msgstr ""
319327

328+
#. 5.4->settings-schema.json->transitionEffect->options
329+
msgid "Disabled"
330+
msgstr ""
331+
320332
#. 5.4->settings-schema.json->patchmoveToWorkspace->description
321333
msgid "Use Flipper effect with the Workspace Switcher applet"
322334
msgstr ""

Flipper@connerdev/files/Flipper@connerdev/po/ca.po

+13-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"Project-Id-Version: \n"
1010
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1111
"extensions/issues\n"
12-
"POT-Creation-Date: 2025-01-10 00:15-0500\n"
12+
"POT-Creation-Date: 2025-04-17 21:29-0400\n"
1313
"PO-Revision-Date: 2025-02-13 23:47+0100\n"
1414
"Last-Translator: Odyssey <odysseyhyd@gmail.com>\n"
1515
"Language-Team: \n"
@@ -315,10 +315,22 @@ msgstr "Ajusts exclusius d'efecte"
315315
msgid "Workspace Transition Effect"
316316
msgstr "Efecte de transició de l'espai de treball"
317317

318+
#. 5.4->settings-schema.json->transitionEffect->tooltip
319+
msgid ""
320+
"Select the type of workspace switch effect that will be used. The "
321+
"\"Randomized\" option allows you to choose which effects can be chosen at "
322+
"random for each workspace switch. The \"Disabled\" option will show no "
323+
"effect, not even the Cinnamon built in effect during a workspace switch."
324+
msgstr ""
325+
318326
#. 5.4->settings-schema.json->transitionEffect->options
319327
msgid "Randomized"
320328
msgstr "Aleatori"
321329

330+
#. 5.4->settings-schema.json->transitionEffect->options
331+
msgid "Disabled"
332+
msgstr ""
333+
322334
#. 5.4->settings-schema.json->patchmoveToWorkspace->description
323335
msgid "Use Flipper effect with the Workspace Switcher applet"
324336
msgstr ""

Flipper@connerdev/files/Flipper@connerdev/po/da.po

+13-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2025-01-10 00:15-0500\n"
11+
"POT-Creation-Date: 2025-04-17 21:29-0400\n"
1212
"PO-Revision-Date: 2017-06-10 17:39+0200\n"
1313
"Last-Translator: Alan Mortensen <alanmortensen.am@gmail.com>\n"
1414
"Language-Team: \n"
@@ -317,10 +317,22 @@ msgstr ""
317317
msgid "Workspace Transition Effect"
318318
msgstr "Overgangseffekt"
319319

320+
#. 5.4->settings-schema.json->transitionEffect->tooltip
321+
msgid ""
322+
"Select the type of workspace switch effect that will be used. The "
323+
"\"Randomized\" option allows you to choose which effects can be chosen at "
324+
"random for each workspace switch. The \"Disabled\" option will show no "
325+
"effect, not even the Cinnamon built in effect during a workspace switch."
326+
msgstr ""
327+
320328
#. 5.4->settings-schema.json->transitionEffect->options
321329
msgid "Randomized"
322330
msgstr ""
323331

332+
#. 5.4->settings-schema.json->transitionEffect->options
333+
msgid "Disabled"
334+
msgstr ""
335+
324336
#. 5.4->settings-schema.json->patchmoveToWorkspace->description
325337
msgid "Use Flipper effect with the Workspace Switcher applet"
326338
msgstr ""

Flipper@connerdev/files/Flipper@connerdev/po/de.po

+13-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2025-01-10 00:15-0500\n"
11+
"POT-Creation-Date: 2025-04-17 21:29-0400\n"
1212
"PO-Revision-Date: 2021-03-02 21:09+0100\n"
1313
"Last-Translator: \n"
1414
"Language-Team: \n"
@@ -317,10 +317,22 @@ msgstr ""
317317
msgid "Workspace Transition Effect"
318318
msgstr "Übergangseffekt"
319319

320+
#. 5.4->settings-schema.json->transitionEffect->tooltip
321+
msgid ""
322+
"Select the type of workspace switch effect that will be used. The "
323+
"\"Randomized\" option allows you to choose which effects can be chosen at "
324+
"random for each workspace switch. The \"Disabled\" option will show no "
325+
"effect, not even the Cinnamon built in effect during a workspace switch."
326+
msgstr ""
327+
320328
#. 5.4->settings-schema.json->transitionEffect->options
321329
msgid "Randomized"
322330
msgstr ""
323331

332+
#. 5.4->settings-schema.json->transitionEffect->options
333+
msgid "Disabled"
334+
msgstr ""
335+
324336
#. 5.4->settings-schema.json->patchmoveToWorkspace->description
325337
msgid "Use Flipper effect with the Workspace Switcher applet"
326338
msgstr ""

Flipper@connerdev/files/Flipper@connerdev/po/es.po

+13-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: \n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2025-01-10 00:15-0500\n"
11+
"POT-Creation-Date: 2025-04-17 21:29-0400\n"
1212
"PO-Revision-Date: 2024-12-21 17:49+0000\n"
1313
"Last-Translator: \n"
1414
"Language-Team: \n"
@@ -314,10 +314,22 @@ msgstr "Ajustes específicos de los efectos"
314314
msgid "Workspace Transition Effect"
315315
msgstr "Efecto de transición del espacio de trabajo"
316316

317+
#. 5.4->settings-schema.json->transitionEffect->tooltip
318+
msgid ""
319+
"Select the type of workspace switch effect that will be used. The "
320+
"\"Randomized\" option allows you to choose which effects can be chosen at "
321+
"random for each workspace switch. The \"Disabled\" option will show no "
322+
"effect, not even the Cinnamon built in effect during a workspace switch."
323+
msgstr ""
324+
317325
#. 5.4->settings-schema.json->transitionEffect->options
318326
msgid "Randomized"
319327
msgstr "Aleatorio"
320328

329+
#. 5.4->settings-schema.json->transitionEffect->options
330+
msgid "Disabled"
331+
msgstr ""
332+
321333
#. 5.4->settings-schema.json->patchmoveToWorkspace->description
322334
msgid "Use Flipper effect with the Workspace Switcher applet"
323335
msgstr "Utilizar el efecto Flipper con el applet Selector de áreas de trabajo"

Flipper@connerdev/files/Flipper@connerdev/po/eu.po

+13-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ msgstr ""
99
"Project-Id-Version: \n"
1010
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1111
"extensions/issues\n"
12-
"POT-Creation-Date: 2025-01-10 00:15-0500\n"
12+
"POT-Creation-Date: 2025-04-17 21:29-0400\n"
1313
"PO-Revision-Date: 2024-05-30 9:50+1\n"
1414
"Last-Translator: Muxutruk <muxutruk2@users.noreply.github.com>\n"
1515
"Language-Team: Basque <muxutruk2@users.noreply.github.com>\n"
@@ -316,10 +316,22 @@ msgstr ""
316316
msgid "Workspace Transition Effect"
317317
msgstr "Trantsizio-efektua"
318318

319+
#. 5.4->settings-schema.json->transitionEffect->tooltip
320+
msgid ""
321+
"Select the type of workspace switch effect that will be used. The "
322+
"\"Randomized\" option allows you to choose which effects can be chosen at "
323+
"random for each workspace switch. The \"Disabled\" option will show no "
324+
"effect, not even the Cinnamon built in effect during a workspace switch."
325+
msgstr ""
326+
319327
#. 5.4->settings-schema.json->transitionEffect->options
320328
msgid "Randomized"
321329
msgstr ""
322330

331+
#. 5.4->settings-schema.json->transitionEffect->options
332+
msgid "Disabled"
333+
msgstr ""
334+
323335
#. 5.4->settings-schema.json->patchmoveToWorkspace->description
324336
msgid "Use Flipper effect with the Workspace Switcher applet"
325337
msgstr ""

Flipper@connerdev/files/Flipper@connerdev/po/fi.po

+13-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgstr ""
77
"Project-Id-Version: Flipper@connerdev 1.0.3\n"
88
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
99
"extensions/issues\n"
10-
"POT-Creation-Date: 2025-01-10 00:15-0500\n"
10+
"POT-Creation-Date: 2025-04-17 21:29-0400\n"
1111
"PO-Revision-Date: \n"
1212
"Last-Translator: Kimmo Kujansuu <mrkujansuu@gmail.com>\n"
1313
"Language-Team: \n"
@@ -315,10 +315,22 @@ msgstr "Tehostekohtaiset asetukset"
315315
msgid "Workspace Transition Effect"
316316
msgstr "Työtilan vaihtotehoste"
317317

318+
#. 5.4->settings-schema.json->transitionEffect->tooltip
319+
msgid ""
320+
"Select the type of workspace switch effect that will be used. The "
321+
"\"Randomized\" option allows you to choose which effects can be chosen at "
322+
"random for each workspace switch. The \"Disabled\" option will show no "
323+
"effect, not even the Cinnamon built in effect during a workspace switch."
324+
msgstr ""
325+
318326
#. 5.4->settings-schema.json->transitionEffect->options
319327
msgid "Randomized"
320328
msgstr "Satunnainen"
321329

330+
#. 5.4->settings-schema.json->transitionEffect->options
331+
msgid "Disabled"
332+
msgstr ""
333+
322334
#. 5.4->settings-schema.json->patchmoveToWorkspace->description
323335
msgid "Use Flipper effect with the Workspace Switcher applet"
324336
msgstr "Käytä Flipper-tehosteita työtilojen kanssa"

Flipper@connerdev/files/Flipper@connerdev/po/fr.po

+13-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgstr ""
88
"Project-Id-Version: Flipper@connerdev 1.0.6\n"
99
"Report-Msgid-Bugs-To: https://github.com/linuxmint/cinnamon-spices-"
1010
"extensions/issues\n"
11-
"POT-Creation-Date: 2025-01-10 00:15-0500\n"
11+
"POT-Creation-Date: 2025-04-17 21:29-0400\n"
1212
"PO-Revision-Date: \n"
1313
"Last-Translator: claudiux\n"
1414
"Language-Team: \n"
@@ -314,10 +314,22 @@ msgstr "Préférences pour chaque effet"
314314
msgid "Workspace Transition Effect"
315315
msgstr "Effet de changement d'espace de travail"
316316

317+
#. 5.4->settings-schema.json->transitionEffect->tooltip
318+
msgid ""
319+
"Select the type of workspace switch effect that will be used. The "
320+
"\"Randomized\" option allows you to choose which effects can be chosen at "
321+
"random for each workspace switch. The \"Disabled\" option will show no "
322+
"effect, not even the Cinnamon built in effect during a workspace switch."
323+
msgstr ""
324+
317325
#. 5.4->settings-schema.json->transitionEffect->options
318326
msgid "Randomized"
319327
msgstr "Aléatoire"
320328

329+
#. 5.4->settings-schema.json->transitionEffect->options
330+
msgid "Disabled"
331+
msgstr ""
332+
321333
#. 5.4->settings-schema.json->patchmoveToWorkspace->description
322334
msgid "Use Flipper effect with the Workspace Switcher applet"
323335
msgstr "Utiliser l'effet Flipper avec l'applet Workspace Switcher"

0 commit comments

Comments
 (0)