Skip to content

About

Resources

Contributing

Security policy

Accessibility

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

animaEngine

animaEngine: a ghost, a slime, a cat, a heart, a star, a bunny, a frog, a robot, a cloud and a mushroom on a dusk hillside

CI Release License: MIT

Linux-first animated desktop overlay engine. Render multiple animated characters or sprites on top of your desktop using transparent, always-on-top windows with GPU acceleration. Built in Rust with wgpu

  • winit + egui — no Electron, no Chromium, minimal RAM use, and next to no CPU while nothing moves.

A tapped character says hello; edit mode opens, a character is selected, a pasted picture becomes a new one

Status: 1.5.2 — stable. Production-ready packaging (.deb / AppImage / Flatpak), stable X11/XWayland backend, opt-in native Wayland backend (wlroots), ten UI locales, multi-monitor distribution, asset library, sprite groups. See Architecture for a deeper map, the stability policy for what stays put across releases, and CONTRIBUTING.md for how to hack on it.

What it does

  • Drop any image or short MP4 onto the overlay → it becomes an animated character. PNG / GIF / WebP / JPEG / MP4 (H.264). Or pick it with Add file… in the Scene tab, through the desktop's file chooser.
  • Click-through by default: clicks pass straight to your desktop; the only widget that catches input in pass-through mode is the ⚙ toggle button in the top-right.
  • Edit mode exposes a tabbed settings panel (Inspector / Scene / Library / Appearance / Keybindings), right-click context menus, collapsible inspector sections, sliders for every field, drag-and-drop placement.
  • Autonomous behaviors per entity: Idle (default), WalkAround, FollowCursor, BoundedWander, Bounce, following another character, or playing tag with one — wired through the UI. Optionally, characters bump into each other: they land on each other's heads and turn around when they meet.
  • A life of their own, as much as you want: tap a character outside edit mode too and it hops, says a line, plays its sound, with a few hearts; two who meet say hello; they fade in and out, keep hours of their own, and can be livelier in the morning and slower at night.
  • Scripted behaviors: a character's motion can be a small Rhai script from your asset library, sandboxed and bounded (no files, no network, capped operations). Scripts can play sounds, panned to where the character is on screen, and react to how busy the machine is — overall CPU and memory load only, never what is running. Examples in docs/examples/behaviors/.
  • Animation curves: six easing options (Linear / Ease in / Ease out / Ease in-out / Sine / Bounce out) distort per-frame timing while preserving the loop's total duration.
  • Multi-monitor distribution: PerMonitor (default) / Span / Single { name }, plus a per-entity pin and Ctrl+M to cycle the selected entity through monitors. Characters on every monitor can be selected and dragged, across monitors too, and each monitor's overlay draws only when what it shows changes.
  • Asset library: scans ~/.local/share/animaengine/assets/ (or $ANIMA_ASSETS_DIR) and surfaces a search-filtered grid; "Add to scene" routes through the same drag-drop validation path so asset caps and the extension whitelist still apply.
  • Sprite groups: Ctrl+G binds the selected characters into one named group that a click selects and a drag moves as one; the Scene tab renames, hides and dissolves groups. A hidden group hides every member and blocks their click hit-test.
  • Themes: Dark and Light plus high-contrast siblings for both, switchable instantly without restart. HC variants clear WCAG AAA.
  • Speech bubbles and reminders: characters can say things — lines of their own when tapped or every so often, from a script, or a reminder of a break or a glass of water, at intervals or at a set time. Bubbles take a colour and text size of their own, {time}, {day}, {date} and {name} are filled in, and screen readers hear what is said.
  • Around your day: a focus timer, bedtime, snoozing, dozing while you are away and a welcome back when you return; reminders and the timer can also go to the desktop's notifications, with a sound.
  • Sounds at the volume you want: one volume for every sound and one of its own for each character, quiet at bedtime if you like, and mute from Appearance, the tray, the command palette, a shortcut or D-Bus.
  • Named scenes: save what is on screen under a name and switch between your scenes from the Scene tab, the command palette or the tray — or at set times of day; each shows a picture of itself. Share one as a single .animascene file, pictures included; it opens on another machine by dropping it on the overlay or with Import…. One character travels the same way (.animachar) or as a GIF, and a backup (.animabackup) carries everything to another machine.
  • Bundled presets: six curated one-click scenes (Cozy Companion, Productivity Zen, Halloween Party, Birthday Confetti, Studio Session, Cursor Follower) — Append or Replace.
  • Command palette (Ctrl+K): search every action, theme and preset, and run it in one keystroke.
  • Several at once: Shift+click or drag a rectangle to select several characters, then move, delete, duplicate or change them together — or line them up and space them evenly. Drags snap to screen edges and to other characters (hold Alt to place freely).
  • Undo / redo (Ctrl+Z / Ctrl+Shift+Z): every edit in edit mode — a move, a delete, a changed property, a preset's Replace.
  • On top or behind: the characters live over your windows, or — one switch in Appearance — on the desktop under them.
  • Steps aside for full-screen apps: the characters hide (or pause) while a game, a video or a presentation fills the screen, or while an app you choose is in front — and hold still on battery if you like.
  • Ten UI languages: English, Română, Español, Deutsch, Français, Italiano, Português (BR), Polski, Nederlands, 日本語 — auto-detected from LANG, switchable in Appearance.
  • Rebindable shortcuts that work on any keyboard layout — AZERTY, QWERTZ, Cyrillic — and are shown the way your keyboard labels them; the F-keys can be bound too.
  • Without a mouse: Shift+F10 or the Menu key opens a character's right-click menu, Ctrl+A selects every character, N steps through them, and Tab moves through the settings panel.
  • System integration: tray icon (StatusNotifierItem), Super+Alt+A/H/P global hotkeys, single-instance D-Bus handshake, and "Start at login" (an autostart entry, or the portal in the Flatpak).
  • Hot-reload: edit ~/.config/animaengine/config.toml while the app runs; changes are decoded off the UI thread and applied seamlessly.
  • Configs from other versions: a config written by any 1.x opens with every value kept, and one, a scene or a backup from a newer version opens as far as this one can read it — the rest is kept in the file and written back, not lost.
  • Accessibility: screen readers (Orca and others, over AT-SPI) on both backends, visible focus rings, full keyboard reference table. See docs/accessibility.md.

Install

Pre-built packages

Each release carries a .deb, an AppImage and their SHA256SUMS, and GitHub attests where each was built. Check what you downloaded first:

sha256sum -c --ignore-missing SHA256SUMS-v1.5.2.txt
# gh 2.49 or newer — a distribution's may be older: cli.github.com
gh attestation verify anima-engine_1.5.2-1_amd64.deb --repo Alexandru2984/animaEngine
# Debian / Ubuntu (.deb) — and `sudo apt remove anima-engine` to remove it
sudo apt install ./anima-engine_1.5.2-1_amd64.deb

# AppImage (any distro)
chmod +x animaEngine-1.5.2-x86_64.AppImage
./animaEngine-1.5.2-x86_64.AppImage

A Flatpak is built locally (make flatpak, see flatpak/README.md); its runtime comes from Flathub:

flatpak remote-add --user --if-not-exists flathub \
    https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user build/eu.animaengine.Anima.flatpak
flatpak run eu.animaengine.Anima

make appimage and make deb build the other two the same way.

Windows

From 1.5, each release also carries a Windows installer and a portable ZIP, built by scripts/build-windows.sh. The installer needs no administrator rights, installs for you alone and is removed from Settings -> Apps; the ZIP runs from any folder. Neither is signed yet, so SmartScreen asks before running them. Windows support is new and so far tested under Wine only: see docs/porting-windows.md.

From source

Rust 1.88 or newer, from rustup — a distribution's own rustc is often older (Ubuntu 24.04's is 1.75).

The binary links two system libraries, xkbcommon and ALSA (for script sounds, the audio feature), and the C++ runtime of its H.264 decoder; Vulkan, OpenGL, X11 and Wayland it opens at run time, as any desktop has them, so their headers are not needed. pkg-config finds the two — it is not part of build-essential, and without it the xkbcommon build script fails.

# Ubuntu, Debian
sudo apt install -y build-essential pkg-config libxkbcommon-dev libasound2-dev
# Fedora
sudo dnf install -y gcc gcc-c++ pkgconf-pkg-config libxkbcommon-devel alsa-lib-devel
# Arch
sudo pacman -S --needed base-devel libxkbcommon alsa-lib

# Build & run
cargo build --release
./target/release/anima_engine

# Or install it as `anima-engine`, with its menu entry and icons
# (drawn by rsvg-convert, from librsvg: librsvg2-bin on Ubuntu)
make icons && sudo make install      # under /usr/local
make install PREFIX=$HOME/.local     # or for you alone
sudo make uninstall                  # and back out

--no-default-features builds without video (the openh264 decoder) and without sound (ALSA); --features video or --features audio puts one back.

Daily use

Action How
Enter edit mode Click ⚙ (top-right), or Super+Alt+A from anywhere (Win+Alt+A on Windows)
Add a character Drag a PNG / GIF / WebP / JPEG / MP4 onto the overlay
Move a character Drag it (edit mode) or use the X/Y sliders; let go mid-swing to throw it
Adjust scale / opacity / FPS Sliders in the settings panel
Toggle visibility / playback V / P keys, or checkboxes
Set behavior Dropdown in the Inspector (Idle / Walk / Follow cursor / Follow a character / Play tag / Bounded / Bounce / Script)
Delete Delete, right-click → Delete, or the trash button in the Scene list
Group / ungroup Ctrl+G / Ctrl+Shift+G on the selection, or right-click → Group
Copy / cut / paste Ctrl+C / Ctrl+X / Ctrl+V, right-click → Copy or Cut, and Paste in the Scene tab — into this scene or another saved one; Ctrl+V also pastes a picture copied anywhere
Hide overlay Super+Alt+H (global) or tray menu
Tap a character With "Characters can be tapped" on (Appearance), click it — clicks elsewhere still reach your windows
Snooze Tray or command palette: 15 minutes, 1 hour or until morning; they come back on their own
Focus timer Tray, command palette or the Scene tab; a shortcut of your choice in Keybindings
Pause animations Space (edit mode), Super+Alt+P (global), or tray
Save & quit Q (edit mode), tray → Quit, or close the window

Full keyboard reference: press H in edit mode — the Keybindings tab, every shortcut as it is bound, which is also where to change one.

Configuration

A TOML config lives at ~/.config/animaengine/config.toml. Hand-editing works — the app polls every 2 s and reloads off-thread.

[global]
always_on_top = true
transparent = true
playback_enabled = true
window_width = 0    # 0 = auto from monitor
window_height = 0

[[characters]]
id = "slime"
name = "Slime Demo"
asset_type = "png_sequence"
asset_path = "assets/demo/slime"
x = 600.0
y = 400.0
scale = 1.0
opacity = 1.0
fps = 8.0
visible = true
playing = true
z_index = 20
physics_enabled = false      # G key in edit mode

[characters.behavior]
type = "walk_around"
speed = 80.0

See docs/config.md for every field. What stays stable across releases — config, D-Bus, CLI, asset formats, file locations — is the stability policy.

Supported assets

Type Extensions Notes
Static image .png, .jpg, .jpeg Single frame
Animated GIF .gif Per-frame delays preserved
Animated WebP .webp Animated and static
PNG sequence folder of frame_*.png Decoded in parallel (rayon)
Spritesheet .png + columns × rows Grid auto-sliced
Video .mp4, .m4v, .mov H.264 only, audio ignored, capped at ~20 s

Decoded RGBA frames are cached on disk under ~/.cache/animaengine/ so subsequent starts are limited by disk read speed. Set ANIMA_NO_CACHE=1 to skip both reads and writes.

Wayland

The default code path uses winit + X11 (XWayland on Wayland sessions) — stable, supports every Linux desktop. An opt-in native Wayland backend built on wlr-layer-shell-unstable-v1 adds true overlay support for wlroots compositors (sway / Hyprland / river / Wayfire). It reached feature parity over the 0.5 E phases — keyboard (xkbcommon), pointer, egui and drag-drop all go through the same validation as X11 — but it stays opt-in and wlroots-only, not the default:

ANIMA_USE_WAYLAND_NATIVE=1 anima-engine

GNOME and KDE Wayland sessions do not implement layer-shell, so the overlay falls back to the XWayland code path automatically — no opt-in flag needed there.

Feature matrix

Feature X11 / XWayland (default) Wayland native (opt-in, wlroots)
Click-through overlay stable stable (wlroots)
Tray icon stable stable
Drag-and-drop assets stable stable (in pass-through, drag over the ⚙ corner first)
Keyboard input stable (winit) stable (sctk + xkbcommon)
Input methods (CJK) stable (winit) stable (text-input-v3)
egui settings panel stable stable
Multi-monitor distribution stable stable
Hi-DPI the panel and the characters at the screen's scale factor each monitor at its own scale, 125 % / 150 % too
Perf overlay stable stable
Global hotkeys the GlobalShortcuts portal (GNOME, KDE), else XGrabKey the portal where the compositor has one, else D-Bus + compositor binding
Hot-reload stable stable
Tapping characters outside edit mode stable stable
Full-screen apps seen EWMH (X11 apps) wlr-foreign-toplevel-management
Idle time (dozing, welcome back) GNOME, or a real X server ext-idle-notify (sway, Hyprland)

Through the portal, the desktop asks once to allow the shortcuts, and they can be changed in its settings. Without one, global shortcuts on the native path go through org.animaengine.Anima D-Bus methods that compositor bindings call via gdbus — see docs/wayland.md for sway / Hyprland / river config snippets.

Help

Questions and known problems first; then an issue, with the diagnostic report from Appearance → About (SUPPORT.md).

Security & trust

Single-user desktop overlay, designed to run as your unprivileged user. Asset loaders enforce frame / dimension / byte caps so a malicious file can't OOM you; config + cache writes are atomic so a crash can't corrupt either. Full invariants in docs/threat-model.md. Zero network calls. Don't run it as root.

License

MIT. See LICENSE.

About

Resources

Contributing

Security policy

Accessibility

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages