Skip to content
joexk1Public

About

Turn your wallpaper into a window into another world — open-source Rust Three.js 3D wallpaper engine for macOS & Linux

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

wallrus logo

wallrus

Agent-first Three.js live 3D wallpaper engine in Rust for Linux & macOS.
Zero-asset ES modules · 3D cursor depth parallax · Spotlight orbit & WASD camera · Built-in Agent Skills & MCP Server

Frosted Glass Garden, a Wallrus wallpaper scene

Orbit the scene, pin your angle, and see it respond to your cursor as you work.
Watch on macOS (22s) · Watch on Hyprland (17s) · Download

Live Gallery (wallrus.pages.dev) · Installation · Agent Skills & MCP Pack · CLI Reference · Configuration & Ricing


Point any coding agent (Claude Code, Codex, Antigravity, Cursor, OpenCode, Windsurf) at this repository — or browse wallrus.pages.dev — and ask:

"Build me an interactive 3D wallpaper and set it with wallrus."

Your agent reads AGENTS.md and the bundled skills/wallrus/ pack, writes a single zero-asset Three.js .js module, validates it with wallrus check + wallrus set, visually inspects the rendered WebGL backbuffer via wallrus screenshot (without ever capturing your open windows), and hot-swaps it onto your Linux or macOS desktop in milliseconds.


Features

  • Unified Native Linux & macOS Engine (Single Rust Binary):
    • macOS (Apple Silicon / Aqua): Renders via Metal-backed WKWebView at kCGDesktopIconWindowLevel - 1 edge-to-edge behind the translucent Menu Bar & Camera Notch while keeping Desktop icons and Finder windows cleanly on top. Zero Dock icon clutter, zero TCC/Accessibility permission prompts (CGEventGetLocation 30Hz cursor tracking + Carbon RegisterEventHotKey ⌃⌥I).
    • Linux (Wayland & X11): Native zwlr_layer_shell_v1 (gtk-layer-shell) on Hyprland, Sway, Niri, KDE Wayland, COSMIC, automatic _NET_WM_WINDOW_TYPE_DESKTOP fallback on GNOME / X11, and zero-overhead Hyprland socket cursor tracking (Ctrl+Alt+I Interactive Mode).
  • True 3D Window-Pivot Cursor Parallax + Interactive Spotlight Mode:
    • Smooth 3D perspective depth parallax tracks your desktop cursor passively while you work.
    • Press Ctrl + Alt + I (Linux) or ⌃⌥I (Ctrl + Option + I, macOS) to elevate the wallpaper into Interactive Spotlight Mode: orbit/pan/zoom with your mouse, fly through the scene with WASD + Q/E (+ Shift), toggle scene presets (1–9, Space), tune parallax depth live, and press Esc to pin your new camera angle permanently (seamlessly returning focus to your active window).
  • Zero npm install — Everything Pre-Bundled Offline:
    • Embeds Three.js r170, OrbitControls, EffectComposer, UnrealBloomPass, Sky, Water, RoundedBoxGeometry, BufferGeometryUtils, and seeded 2D/3D Simplex, FBM, and Ridged procedural noise directly inside the binary.
    • Runs ergonomic export function setup(ctx) modules, vanilla Three.js .js scripts, standalone .html scenes, and direct https:// URLs.
  • Canonical Scene Checker & Crash-Proof Hot-Swap:
    • Shared verification across wallrus check, wallrus set, and wallrus.pages.dev uploads blocks desktop-hijacking patterns (PointerLockControls, audio autoplay, gamepads, runaway draw-call/triangle budgets) and validates GLSL compilation before swapping — rolling back cleanly on error so your desktop never breaks.
  • Smart Battery & Fullscreen Power Policy:
    • Automatically drops to 0% GPU when your display is asleep/locked or covered by a fullscreen game/video, and scales background FPS on battery power.

Installation

Linux (x86_64) and macOS (Apple Silicon)

curl -fsSL https://wallrus.pages.dev/install.sh | bash

The installer verifies the release checksum and installs the binary and bundled scenes. The setup wizard offers to bind the Inspect shortcut, start Wallrus at login, and install the agent skills. Open a new terminal if the wizard adds Wallrus to your PATH.

Homebrew (Apple Silicon macOS)

brew install joexk1/wallrus/wallrus
wallrus list

The Wallrus tap installs the prebuilt release and bundled scenes. Run wallrus install-skill for the agent skills, wallrus bind for the Inspect shortcut, or wallrus enable to start Wallrus at login.

Arch Linux (x86_64)

Download the wallrus-bin package from GitHub Releases and install the downloaded file with sudo pacman -U wallrus-bin-0.2.0-1-x86_64.pkg.tar.zst. The PKGBUILD uses the published Linux archive and verifies its checksum.

Download a Release Archive

Get the archive and checksums from GitHub Releases. Extract the whole archive, change into the extracted directory, and run ./wallrus list to see the bundled scenes. Linux requires WebKitGTK 4.1 and GTK Layer Shell.

Build from Source

Prerequisites:

  • macOS: Rust toolchain (rustup) + Xcode Command Line Tools (xcode-select --install). No Homebrew runtime libraries required.
  • Linux: Rust toolchain (rustup), gtk3, gtk-layer-shell, and webkit2gtk-4.1 (e.g., sudo pacman -S webkit2gtk-4.1 gtk-layer-shell on Arch, or sudo apt install libwebkit2gtk-4.1-dev libgtk-layer-shell-dev on Ubuntu/Debian).
git clone https://github.com/joexk1/wallrus.git
cd wallrus
./install.sh

./install.sh compiles the optimized release binary, links ~/.local/bin/wallrus, installs the Agent Skills & Tools Pack, and runs wallrus doctor.


Quick Start

# Load the scene shown in the demo
wallrus set frosted_glass_garden

# Or stream directly from the online gallery
wallrus set https://wallrus.pages.dev/scenes/gargantua_black_hole.js

# Pick a random bundled scene or use the online catalog
wallrus random
wallrus random --online

# Bind Interactive Spotlight shortcut (Ctrl+Alt+I on Linux, ⌃⌥I on macOS) & login autostart
wallrus bind
wallrus enable

Interactive Spotlight Controls (Ctrl+Alt+I on Linux · ⌃⌥I on macOS)

Input Action
Left Drag / Right Drag Smooth damped orbit / pan
Scroll Dolly zoom (with automatic near/far frustum protection)
W A S D / Q E (Shift) Fly camera through 3D space (Shift = 2.6x boost)
1 – 9 / Space Trigger scene lighting, weather, or shader presets
P / HUD Slider Toggle 3D cursor parallax or adjust depth intensity (0%–200%)
R Reset camera back to the scene's default composition
Esc Pin current camera angle to desktop & return focus to your active app

Agent Skills & Tools Pack

wallrus ships with a complete, self-contained Skills & Tools Pack in skills/wallrus/ (also embedded inside the wallrus binary and installed automatically via wallrus install-skill into ~/.agents/skills/wallrus/ and ~/.claude/skills/wallrus/):

skills/wallrus/
├── SKILL.md                     # Closed-loop agent workflow, ES module contract & guardrails
├── templates/
│   └── starter_scene.js         # Zero-asset Three.js starter scene (bloom, ridged noise, presets)
├── references/
│   └── scene-recipes.md         # Procedural terrain, GLSL sky domes, 3-plane parallax & HUD ricing
├── scripts/
│   └── verify-scene.sh          # One-command check -> set -> WebGL screenshot -> JSON status
└── tools/
    └── mcp.json                 # Ready-to-use Model Context Protocol (MCP) server config

Built-In MCP Server (wallrus mcp)

Wallrus MCP server score on Glama

For MCPB-compatible clients, download the .mcpb desktop extension from the latest release. The bundle supports Apple Silicon macOS and x86_64 Linux. On Linux, install WebKitGTK 4.1 and GTK layer-shell first. Official MCP Registry entry

Add wallrus to Claude Code, Claude Desktop, Cursor, Antigravity, or Windsurf:

{
  "mcpServers": {
    "wallrus": {
      "command": "wallrus",
      "args": ["mcp"]
    }
  }
}

Exposed MCP tools:

  • get_scene_contract — Full Three.js ES module contract, pre-bundled imports, and noise API
  • check_scene — Validates source size, module exports, and anti-game guardrails
  • set_wallpaper_scene — Hot-swaps a wallpaper from path or inline code with GLSL error rollback
  • capture_scene_screenshot — Privacy-safe PNG capture directly from the WebGL backbuffer
  • send_scene_event — Live JSON event dispatch (ctx.onEvent) without reloading
  • toggle_interactive_mode — Switches Spotlight Mode (on / off / toggle)
  • get_wallpaper_status — Live FPS, GPU renderer, active scene, cursor, and error logs

CLI Reference

wallrus set <path|url>           # Validate & hot-swap .js, .html, or https:// scene
wallrus check <path>             # Run canonical contract & anti-game guardrail check
wallrus list                     # List discovered local scenes
wallrus random [--online]        # Load a random local or wallrus.pages.dev scene
wallrus interact [on|off|toggle] # Toggle Interactive Spotlight Mode
wallrus send <event> '<json>'    # Push live JSON event into ctx.onEvent(...)
wallrus screenshot [out.png]     # Capture pure WebGL backbuffer PNG (privacy-safe)
wallrus status [--json]          # Inspect daemon FPS, layer, GPU, and system metrics
wallrus config --init|--show     # Scaffold or inspect ~/.config/wallrus/config.toml
wallrus hud --position <pos> --theme <theme>
wallrus bind [--key <chord>]     # Bind global shortcut (Ctrl+Alt+I / ⌃⌥I)
wallrus enable / disable         # Enable/disable login autostart (systemd / LaunchAgent)
wallrus install-skill            # Install Agent Skills & Tools Pack to ~/.agents & ~/.claude
wallrus schema [--starter]       # Print full scene contract or starter template to stdout
wallrus mcp                      # Start stdio JSON-RPC 2.0 MCP server
wallrus doctor [--json]          # Run environment & compositor diagnostics

Configuration & Ricing

Both ~/.config/wallrus/config.toml and ~/.config/wallrus/hud.css hot-reload within 250ms whenever saved:

# ~/.config/wallrus/config.toml
[general]
layer = "background"
fps_limit = 60

[power]
pause_when_fullscreen = true
pause_when_locked = true

[camera]
parallax = true
parallax_strength = 1.00
wasd_speed = 1.00

[hud]
position = "bottom"        # bottom | top | bottom-left | bottom-right | top-left | top-right | bar | hidden
theme = "catppuccin"       # default | catppuccin | tokyo-night | gruvbox | nord | rose-pine | kanagawa | transparent
shortcut = "ctrl+opt+i"    # "CTRL ALT, I" on Hyprland/Linux · "ctrl+opt+i" (⌃⌥I) on macOS

License

Released under the MIT License.

About

Turn your wallpaper into a window into another world — open-source Rust Three.js 3D wallpaper engine for macOS & Linux

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages