# Marble – KWin close & minimize effects (Burn-My-Windows variant) **NL** – KWin 6 (Plasma 6) sluit-animatie: het venster vormt zich soepel om tot een kleine, glanzende knikker (inhoud blijft zichtbaar), blijft even stil liggen en valt daarna met echte zwaartekracht (constante versnelling vanuit stilstand) 1,5 schermhoogte omlaag, uit beeld. **EN** – KWin 6 (Plasma 6) window-close animation: the window smoothly morphs into a small glossy marble (content stays visible), pauses, then drops off-screen under real gravity (constant acceleration from rest) for 1.5 screen heights. ![filmstrip](docs/filmstrip.png) ## Marble Magic Lamp (minimize) **NL** – `kwin6_effect_marble_minimize`: bij minimaliseren vormt het venster zich net zo om tot een knikker, pauzeert, en valt dan met zwaartekracht (vanuit stilstand) langs een vloeiend S-pad (twee parallelle bewegingen: zwaartekracht richting taakbalk, InOutSine opzij) naar zijn taakbalkknop; in de laatste 10% krimpt hij naar 10%. Herstellen speelt de omgekeerde animatie (knikker stijgt op van de taakbalkknop, pauze, vouwt open). Zelfde instellingen en defaults. **EN** – `kwin6_effect_marble_minimize`: on minimize the window becomes the same marble, pauses, then falls under gravity (from rest) along a smooth S-path (two parallel moves: gravity towards the taskbar, InOutSine sideways) to its taskbar entry, shrinking to 10% over the last 10% of the path. Restore plays it in reverse (marble rises from the taskbar entry, pauses, unfolds into the window). Same settings and defaults. It replaces the active minimize animation (e.g. Magic Lamp). ## Installatie / Installation ```sh cp -r kwin6_effect_marble kwin6_effect_marble_minimize ~/.local/share/kwin/effects/ ``` Then enable **Marble [Burn-My-Windows variant]** in System Settings → Window Management → Desktop Effects (it replaces the active close animation; only one can be active). Log out/in if it does not show up. ## Instellingen / Settings | Key | Default | Meaning | |------------|---------|-----------------------------------------------------------------| | `Duration` | 200 ms | Morph into the marble | | `Pause` | 400 ms (close) / 300 ms (minimize) | Marble rests before falling | | `Gravity` | 4500 px/s² | Fall acceleration; fall time = sqrt(2·distance / g) (close: 1.5 screen heights; minimize: distance to taskbar entry) | | `BlackMixOuter` | 80 % | Black mix on the outer/lower part of the marble (dull "black glass") | | `BlackMixCenter` | 5 % | Black mix on the upper-middle part, where the window shows through; soft gradient between both zones | | `MixColor` | 0 (Zwart) | Colour the mix blends towards: 0 Zwart #000000, 1 Blauw #0000aa, 2 Rood #aa0000, 3 Groen #00aa00, 4 Paars #6600aa, 5 Geel #aaaa00, 6 Oranje #aa5500, 7 Cyaan #00aaaa, 8 Roze #aa0066, 9 Grijs #555555, 10 Bruin #553300, 11 Willekeurig (random per window; minimize and the following restore of that window use the same colour). Values above 11 (e.g. 12 = random in v0.3.0) are treated as random, invalid values as black | | `MarbleSize` | 42 px | Final marble diameter, independent of the window size (capped at 90 % of the window's smallest side) | All durations are scaled by Plasma's global animation speed. ## Licentie / License & attribution GPL-3.0-or-later (see `LICENSE`). This effect is a modified derivative of the KWin port of **Energize B** from [Burn-My-Windows](https://github.com/Schneegans/Burn-My-Windows) by Simon Schneegans (GPL-3.0-or-later), whose KWin effect code also credits Martin Flöser and Vlad Zahorodnii. The common shader prelude and `main.js` structure come from that project; the marble shader, gravity fall and settings are new. Original copyright notices are kept in the source files. Modified by Tim Falken, 2026.