Skip to content

Latest commit

 

History

History
125 lines (85 loc) · 5.15 KB

web-handler.md

File metadata and controls

125 lines (85 loc) · 5.15 KB

aether:// Web Handler

Apply themes, color schemes, and wallpapers in Aether with one click from a web page on Omarchy 4.5 and later.

URL Scheme

One action is supported: apply.

aether://apply?<param>=<value>[&<param>=<value>...]
Parameter Value Effect
external_theme HTTPS URL to a blueprint JSON Loads the palette and extended colors from an Aether blueprint
colors HTTPS URL to a colors.toml Loads the 16-color palette verbatim without running extraction
wallpaper HTTPS URL to an image Sets the wallpaper without running extraction
mode light or dark Forces light or dark mode before applying
silent true Applies directly after validation without opening the confirmation dialog
edit true Opens the colors and wallpaper in Editor without writing to disk
as_omarchy_theme theme name Installs into ~/.config/omarchy/themes/<name>/ and activates with omarchy theme set <name>

external_theme and colors cannot be combined. wallpaper can be combined with either parameter or used alone. edit=true takes precedence over as_omarchy_theme and silent=true.

Examples

Colors and wallpaper:

aether://apply?colors=https://themes.example.com/nord/colors.toml&wallpaper=https://themes.example.com/nord/wp.jpg

Wallpaper only:

aether://apply?wallpaper=https://wallhaven.cc/full/85/wallhaven-85oxw9.jpg

Blueprint JSON:

aether://apply?external_theme=https://themes.example.com/my-theme.json

Light mode override:

aether://apply?colors=https://themes.example.com/solarized/light.toml&wallpaper=https://themes.example.com/solarized/wp.jpg&mode=light

Install as a named Omarchy theme:

aether://apply?colors=https://themes.example.com/nord/colors.toml&wallpaper=https://themes.example.com/nord/wp.jpg&as_omarchy_theme=nord

Open in the editor without applying:

aether://apply?colors=https://themes.example.com/nord/colors.toml&wallpaper=https://themes.example.com/nord/wp.jpg&edit=true

HTML Link

<a href="aether://apply?colors=https://themes.example.com/nord/colors.toml&wallpaper=https://themes.example.com/nord/wp.jpg">
  Apply in Aether
</a>

URL-encode any value that contains &, ?, =, or spaces.

What Happens on Click

  1. Your browser asks to allow aether:// links.
  2. Aether downloads referenced assets into ~/.cache/aether/web-imports/ using SHA-256 filenames so repeated clicks reuse the cache.
  3. Unless silent=true is set, Aether opens a confirmation dialog showing the palette, wallpaper thumbnail, source URL, and requested theme name. If Aether is closed, the handler launches it automatically.
  4. On confirmation:
    • colors.toml or blueprint JSON colors load into the editor verbatim without running extraction.
    • A normal link writes ~/.config/omarchy/themes/aether/, renders custom app folders, runs omarchy theme set aether, and starts custom post-apply.sh scripts.
    • An as_omarchy_theme link writes ~/.config/omarchy/themes/<name>/, renders custom app folders, runs omarchy theme set <name>, and starts custom post-apply.sh scripts.
  5. Web imports do not save a blueprint in Library. Click Save blueprint in Editor if you want to keep the theme.

as_omarchy_theme=NAME

Installs the theme into ~/.config/omarchy/themes/<name>/ and activates it with omarchy theme set <name>. Existing user and stock Omarchy themes are never overwritten. Theme names must match [A-Za-z0-9][A-Za-z0-9_.-]*, up to 64 characters, and are normalized to lowercase.

Wallpaper-only as_omarchy_theme links read the active Omarchy theme palette from ~/.local/state/omarchy/current/theme/colors.toml.

Light and Dark Precedence

A published colors.toml can set mode = "light" or mode = "dark". Precedence order is:

  1. Explicit mode= query parameter in the URL
  2. mode or legacy light_mode field in colors.toml
  3. Current Aether editor setting

edit=true

Loads the colors and wallpaper into Editor after confirmation without writing to disk or changing your desktop theme.

silent=true

Applies the validated theme directly in the handler process without opening the GUI. Use silent links only where the click itself is an explicit apply action.

Validation and Limits

  • Only aether://apply is accepted.
  • Asset URLs must use https:// on public hosts. HTTP, loopback, private-network, link-local, file://, and credential-bearing URLs are rejected.
  • Remote palette and blueprint files are limited to 1 MiB.
  • Remote wallpapers are limited to 50 MiB, up to 16,384 pixels per side and 40 million total pixels.
  • All imported palette values must be 3-digit or 6-digit hex colors.

CLI Equivalent

aether --handle-url 'aether://apply?colors=https://themes.example.com/nord/colors.toml&wallpaper=https://themes.example.com/nord/wp.jpg'

For scripts that do not need the confirmation dialog, pass HTTPS URLs directly to --import-colors-toml, --import-base16, or --import-blueprint:

aether --import-colors-toml https://themes.example.com/nord/colors.toml \
  --wallpaper https://themes.example.com/nord/wp.jpg