Add niri-animations plugin (#223)

Animation preset picker for niri: choose a .kdl preset, set the global
slowdown factor, or turn animations off. Ships a floating and a
bar-attached panel plus a control-center tile.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
ImJustDoingMyPart
2026-08-02 23:09:10 -04:00
committed by GitHub
co-authored by Claude Opus 5
parent 9d40f236bf
commit 5dc0808725
7 changed files with 487 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
{
"title": "Niri Animations",
"preset": "Preset",
"no_preset": "No preset (base pack)",
"animations_on": "Animations on",
"animations_off": "Animations off",
"random": "Random",
"speed": "Speed",
"speed_hint": "above 1 is slower",
"shortcut_label": "Animations",
"status_presets_found": "presets in",
"status_base_pack": "Base pack",
"status_off": "Animations disabled.",
"status_read_error": "Could not read",
"status_write_error": "Could not write",
"settings": {
"presets_dir": {
"label": "Presets directory",
"description": "Folder scanned for .kdl animation presets"
},
"target_file": {
"label": "Target file",
"description": "File rewritten with the chosen preset and speed. Your niri config must include it after the base animations."
},
"include_prefix": {
"label": "Include prefix",
"description": "Path prefix written in the include line, relative to the target file"
},
"reload_command": {
"label": "Reload command",
"description": "Run after writing, so the compositor picks up the change"
}
}
}
+34
View File
@@ -0,0 +1,34 @@
{
"title": "Niri Animations",
"preset": "Preset",
"no_preset": "Sin preset (pack base)",
"animations_on": "Animaciones activas",
"animations_off": "Animaciones apagadas",
"random": "Al azar",
"speed": "Velocidad",
"speed_hint": "arriba de 1 es más lento",
"shortcut_label": "Animaciones",
"status_presets_found": "presets en",
"status_base_pack": "Pack base",
"status_off": "Animaciones desactivadas.",
"status_read_error": "No pude leer",
"status_write_error": "No pude escribir",
"settings": {
"presets_dir": {
"label": "Carpeta de presets",
"description": "Carpeta donde se buscan los presets .kdl de animación"
},
"target_file": {
"label": "Archivo destino",
"description": "Archivo que se reescribe con el preset y la velocidad elegidos. Tu config de niri tiene que incluirlo después de las animaciones base."
},
"include_prefix": {
"label": "Prefijo del include",
"description": "Prefijo de ruta que se escribe en la línea include, relativo al archivo destino"
},
"reload_command": {
"label": "Comando de recarga",
"description": "Se ejecuta después de escribir, para que el compositor tome el cambio"
}
}
}