mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-12-02 21:24:12 +01:00
feat(kwin): animation through the Geometry Change effect
Windows that jump to their new places are hard to follow. komorebi animates nothing itself: KWin's Geometry Change effect animates a window that a script moves, and komorebi tells it how long that takes. The look the window manager asks the backend for now has an animation, a duration that the settings give for every kind of animation or, when one is set for the movement of windows, for that one. The KWin backend writes the effect's settings into the user's kwinrc (a duration, and no cross-fading, since a window going to its place changes where it is and not what it shows), loads the effect when animation is on, and unloads it and puts the settings back when it is off or komorebi exits. komorebic gets animation, animation-duration and animation-fps. The module installs the effect (effects.animation), and the session node sets the variable that makes KWin load effects that animate under software rendering. vm-look reads the screen a moment after a flip of the layout, with a 30 s animation and without one. The commands that change a stack turn the animation off while they run, as komorebi does elsewhere, and komorebi.json takes an animation key (enabled, duration and fps, each for every kind of animation or for one).
This commit is contained in:
1 parent
22c14ba5be
commit
4fa8108110
41 files changed
+1322
-93
No files matched your search
@@ -38,8 +38,8 @@ trailing commas.
|
||||
Reading the file again sets every setting of the daemon from it, and a key the file leaves out is
|
||||
the default of the setting: a `resize-delta` given with a command is gone when the file changes.
|
||||
These stay as they were when the file leaves them out: `default_workspace_padding`,
|
||||
`default_container_padding`, `display_index_preferences` and the four settings of the borders.
|
||||
The rules add up, as
|
||||
`default_container_padding`, `display_index_preferences`, the four settings of the borders and the
|
||||
animation, when the file has no `animation`. The rules add up, as
|
||||
[Rules](#rules) says. A workspace the file lists gets its name, padding, offsets and rules from
|
||||
its entry, and its layout when the entry names one; a workspace the file does not list is left as
|
||||
it is.
|
||||
@@ -105,6 +105,20 @@ can have values of their own, which come before the default.
|
||||
`komorebic border`, `border-width` and `border-offset` change the first three while the daemon
|
||||
runs.
|
||||
|
||||
### Animation
|
||||
|
||||
`animation` is an object with these keys:
|
||||
|
||||
| Key | Default | What it does |
|
||||
|---|---|---|
|
||||
| `enabled` | `false`, required | Whether windows are animated going to their places: `true` or `false` for every kind of animation, or `{ "movement": true }` for the kinds it names |
|
||||
| `duration` | `250` | How long the animation lasts, in milliseconds, in the same two forms |
|
||||
| `fps` | `60` | Accepted and not used: KWin animates at the refresh rate of the screen |
|
||||
|
||||
[Animation](animation.md) explains what is animated. A file that has no `animation` leaves the
|
||||
settings as they are, and one that has it and leaves out `duration` leaves the duration as it is;
|
||||
`enabled` and `duration` given for every kind of animation take the settings of single kinds away.
|
||||
|
||||
### Rules
|
||||
|
||||
| Key | What it does |
|
||||
|
||||
Reference in new issue
Block a user