Skip to content

Commit

Permalink
[CinnamonBurnMyWindows@klangman] Version 0.9.6: Enable "Fire" effect (#…
Browse files Browse the repository at this point in the history
…789)

- Enable the "Fire" effect
- Apply a visual fix to "Incinerate" that was fixed in the Gnome extension recently
- Reorder the code to make it a bit easier to maintain
  • Loading branch information
klangman authored Dec 11, 2024
1 parent 25b2ba2 commit c9e058c
Show file tree
Hide file tree
Showing 40 changed files with 819 additions and 523 deletions.
6 changes: 6 additions & 0 deletions CinnamonBurnMyWindows@klangman/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.9.6

* Enabled the "Fire" effect
* Apply a visual fix to "Incinerate" that was fixed in the Gnome extension recently
* Reordered the code to make it a bit easier to maintain

## 0.9.5

* Added a new "Focus" effect by Justin Garza
Expand Down
8 changes: 4 additions & 4 deletions CinnamonBurnMyWindows@klangman/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ The window shadows are not part of the animation and therefore they suddenly app
- Doom
- Energize A
- Energize B
- Fire
- Focus
- Glide
- Glitch
Expand All @@ -53,7 +54,6 @@ The window shadows are not part of the animation and therefore they suddenly app
Because Cinnamon is missing a required API, the following effects are disabled. I am hoping to find a way around this issue:

- Broken Glass
- Fire
- Matrix
- PaintBrush
- Snap Of Disintegration
Expand All @@ -65,16 +65,16 @@ Because Cinnamon is missing a required API, the following effects are disabled.
2. Click on the "Extensions" icon under the "Preferences" category
3. Click the "Download" tab and then click the "Burn My Windows" entry
4. Click the "Install" button on the right and then return to the "Manage" tab
6. Select the new "Burn My Windows" entry and then click the "+" button at the bottom of the window
7. Use the "gears" icon next to the "Burn My Windows" entry to open the setting window and setup the preferred behaviour
5. Select the new "Burn My Windows" entry and then click the "+" button at the bottom of the window
6. Use the "gears" icon next to the "Burn My Windows" entry to open the setting window and setup the preferred behaviour

## Feedback

Please leave a comment here on cinnamon-spices.linuxmint.com or you can create an issue on my Github (https://github.com/klangman/CinnamonBurnMyWindows) to give me feedback or to report any issues you find.
**Please DO NOT open any issues against the original Gnome project. Open issues only on my Github or on cinnamon-spices so I can check if the issue has anything to do with my changes to support Cinnamon**

If you like this extension, please consider making a donation to the author of the original Gnome extension which makes up the vast majority of the code for this Cinnamon extension. Donation links can be found on his Github page:

https://github.com/Schneegans/Burn-My-Windows

If you want to help others find this Cinnamon extension, consider staring it here and on my Github page so that more people might learn of it's existence. The more stars it gets the more encouragement I'll have to continue working on it.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,60 +25,6 @@ const GLib = imports.gi.GLib;

const UUID = "CinnamonBurnMyWindows@klangman";

/*
// Since Cinnamon.GLSLEffect only exists in Mint22/Cinnamon6.2, this is an attempt to make a JS clone for older Cinnamon versions
var GLSLEffect = GObject.registerClass( { /-, GTypeName: 'Cjs_GLSLEffect'-/ },
class GLSLEffect extends Clutter.OffscreenEffect {
static base_pipeline = null;
constructor() {
if (GLSLEffect.base_pipeline === null) {
let backend = Clutter.get_default_backend()
let ctx = backend.get_cogl_context(); // This does not exist in Cinnamon, blocked here for now! :-(
GLSLEffect.base_pipeline = new Cogl.Pipeline( ctx );
GLSLEffect.base_pipeline.set_blend( "RGB = ADD (SRC_COLOR * (SRC_COLOR[A]), DST_COLOR * (1-SRC_COLOR[A]))" );
this.build_pipeline();
}
this._priv = GLSLEffect.base_pipeline.copy();
GLSLEffect.base_pipeline.set_layer_null_texture(0);
}
add_glsl_snippet(hook, declarations, code, is_replace) {
if (!GLSLEffect.base_pipeline)
return;
let snippet;
if (is_replace) {
snippet = new Cogl.Snippet(hook, declarations, null);
snippet.set_replace(code);
} else {
snippet = new Cogl.Snippet(hook, declarations, code);
}
if (hook === Cogl.SnippetHook.VERTEX || hook === Cogl.SnippetHook.FRAGMENT) {
GLSLEffect.base_pipeline.add_snippet(snippet);
} else {
GLSLEffect.base_pipeline.add_layer_snippet(0, snippet);
}
}
get_uniform_location(name) {
return( this._priv.get_uniform_location(name) );
}
set_uniform_float(uniform, n_components, value) {
this._priv.set_uniform_float(uniform, n_components, value);
}
set_uniform_matrix(uniform, transpose, dimensions, value) {
this._priv.set_uniform_matrix(uniform, transpose, dimensions, value);
}
build_pipeline() {
log( "GLSLEffect.build_pipeline(), should not get here!" );
}
}
);
*/

//////////////////////////////////////////////////////////////////////////////////////////
// This is the base class for all shaders of Burn-My-Windows. It automagically loads //
// the shader's source code from the resource file resources/shaders/<nick>.glsl and //
Expand Down Expand Up @@ -274,4 +220,4 @@ class Shader extends Cinnamon.GLSLEffect { // ---------------------------------
// Add a trailing newline. Else the GLSL compiler complains...
return common + '\n' + code + '\n';
}
});
});

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ class BurnMyWindows {
effectOptions.push(Effect.EnergizeA);
if (this._settings.getValue("energize-b-random-include" + append))
effectOptions.push(Effect.EnergizeB);
//if (this._settings.getValue("file-random-include" + append))
// effectOptions.push(Effect.Fire);
if (this._settings.getValue("fire-random-include" + append))
effectOptions.push(Effect.Fire);
if (this._settings.getValue("focus-random-include" + append))
effectOptions.push(Effect.Focus);
if (this._settings.getValue("glide-random-include" + append))
Expand Down
Loading

0 comments on commit c9e058c

Please sign in to comment.