Skip to content

About

Your wallpapers, inside Opencode Desktop

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

OpenCode Backdrop

Use your own wallpapers in OpenCode Desktop.

Wallpaper preview
video.wallpapers.-.under.10MB.mp4

Install

opencode plugin add 'github:viralcodex/opencode-backdrop#v0.3.1'

This installs the plugin globally. Alternatively, add it to your global opencode.json or opencode.jsonc, keeping any existing plugins. Do not add it to cli.json.

{
  "$schema": "https://opencode.ai/config.json",
  "plugins": ["github:viralcodex/opencode-backdrop#v0.3.1"],
}

Use

Images and HTML (WebGL self-contained animated wallpapers) must be non-empty and no larger than 8 MiB and videos can be up to 256 MiB.

  1. Open Settings > Wallpapers.
  2. Choose Change folder to use a local folder, or + to upload an image.
  3. Select a wallpaper and adjust tint, brightness and fit.

Features

  1. Use /wallpaper in chat to switch images or turn wallpaper off.
  2. Folders support PNG, JPEG, WebP, SVG, GIF, APNG, MP4, WebM, and self-contained HTML, including subfolders.
  3. Uploads support PNG, JPEG, WebP, GIF and APNG. Add video and HTML through the wallpaper folder.
  4. Videos play muted and loop continuously. MP4 with H.264 is recommended; other codecs depend on Desktop support.
  5. HTML wallpapers run in a sandbox without access to the OpenCode interface or local storage. (CSP blocks external scripts, styles, assets, and fetch requests. Add only from trusted sources.)
  6. Turn Wallpaper slideshow on to cycle through all wallpapers in gallery order, regardless of the gallery filter.
  7. Choose Fade and set Display time in seconds, from 5 to 86400. The default is 60 seconds.

Optional folder configuration

You can set an initial folder with an absolute path instead of choosing one in Settings:

{
  "$schema": "https://opencode.ai/config.json",
  "plugins": [
    {
      "package": "github:viralcodex/opencode-backdrop#v0.3.1",
      "options": { "folder": "/absolute/path/to/wallpapers" },
    },
  ],
}

The folder chosen in Settings takes precedence over this option.

Development

Use Bun 1.4.4, as pinned in package.json.

bun run check
bun run test:storage /path/to/opencode

About

Your wallpapers, inside Opencode Desktop

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages