Skip to content

Latest commit

 

History

History
318 lines (226 loc) · 8.56 KB

cli.md

File metadata and controls

318 lines (226 loc) · 8.56 KB

Command Line Interface

Aether provides a CLI for scripting, automation, and headless theme management on Omarchy 4.5 and later.

Requirement

Aether requires Omarchy 4.5 or later. On any other system, every command prints a 3-line message to stderr and exits with code 1. The options -h, --help, -v, and --version work on every system.

aether --help
aether --version

Quick Reference

# List saved themes
aether --list-blueprints

# Apply a saved theme
aether --apply-blueprint "my-theme"

# Generate and apply a theme from an image
aether --generate ~/Wallpapers/sunset.jpg

# Import a Base16 scheme
aether --import-base16 ~/themes/dracula.yaml

# Import a colors.toml file
aether --import-colors-toml ~/themes/colors.toml

# Upgrade a non-package install
aether upgrade

Theme Generation

Generate Theme

Extract colors from an image and apply the theme through Omarchy:

aether --generate /path/to/wallpaper.jpg
Option Description
--light-mode Generate a light theme instead of a dark theme
--extract-mode MODE Select one of the 23 extraction modes
--no-apply Render template files without activating the theme
--output PATH Custom output folder for --no-apply, default ~/.config/aether/theme
--no-zed Skip Zed output when using --no-apply
--no-vscode Skip VS Code output when using --no-apply
--no-neovim Skip Neovim output

Run aether --list-modes to list all 23 extraction modes:

  • Auto: normal
  • Style: pastel, muted, bright, colorful, material
  • Color Theory: monochromatic, analogous, complementary, triadic, split-complementary, tetradic
  • Mood: fire, ocean, forest, earthtone, neon, sunset, vaporwave, midnight, aurora
  • Practical: high-contrast, duotone

Examples:

# Light theme with pastel colors
aether --generate ~/wallpaper.jpg --light-mode --extract-mode pastel

# Generate files without applying
aether --generate ~/wallpaper.jpg --no-apply --output ~/my-themes/generated

Blueprint Management

List Blueprints

aether --list-blueprints
aether --list-blueprints --json

Show Blueprint

aether --show-blueprint "Nord"
aether --show-blueprint "Nord" --json

Apply Blueprint

aether --apply-blueprint "Nord"

Delete Blueprint

aether --delete-blueprint "Old Theme"

Export Blueprint

aether --export-blueprint "Nord"
aether --export-blueprint "Nord" --output ~/themes/nord.json

Imports

All import commands accept either a local file path or a public https:// URL.

Import Blueprint

aether --import-blueprint "/path/to/theme.json"
aether --import-blueprint "https://example.com/blueprint.json" --auto-apply

Import Base16 Scheme

aether --import-base16 /path/to/scheme.yaml
aether --import-base16 /path/to/scheme.yaml --wallpaper ~/wallpaper.jpg --light-mode

See Base16 Schemes for the bundled 374 presets, YAML format, and color mapping.

Import colors.toml

aether --import-colors-toml /usr/share/omarchy/themes/tokyo-night/colors.toml
aether --import-colors-toml ~/themes/colors.toml --wallpaper ~/wallpaper.jpg --light-mode

Aether accepts both Omarchy v4 semantic colors.toml files and legacy color0 to color15 files.

Handle aether:// Links

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

See Web Handler for all link parameters.

Open GUI at a Specific Screen

Launch the GUI directly at a named screen or tab:

aether --tab <name>
Name Destination
editor Editor screen
wallhaven, github, local, favorites Wallpapers screen on that source
blueprints, system Library screen on that tab
settings, about Settings screen

Color Utilities

These commands work with colors and need no running GUI.

# All representations of a hex color
aether --color-info "#7cd480" --json

# Convert between formats: rgb, hsl, oklab, oklch
aether --color-convert "#7cd480" --to oklch

# WCAG contrast ratio and AA/AAA grading
aether --contrast "#0a180a" "#a5baa7"

# Run the 12-step adjustment pipeline on one color
aether --adjust-color "#7cd480" --vibrance 20 --saturation -10

# Darken or lighten in RGB
aether --darken "#7cd480" 70
aether --lighten "#7cd480" 20

Adjustment flags: --vibrance, --saturation, --contrast, --brightness, --shadows, --highlights, --hue-shift, --temperature, --tint, --gamma, --black-point, and --white-point.

Palette Operations

# Read-only extraction from a wallpaper
aether --extract-palette ~/wallpaper.jpg --extract-mode pastel --light-mode --json

# Full 16-color palette from one base color
aether --palette-from-color "#7cd480"

# Gradient between two colors, default 16 steps
aether --gradient "#0a180a" "#bed3c0" --steps 8

# Adjust a palette JSON array or saved blueprint
aether --adjust-palette "Nord" --temperature 15

# Analyze contrast, light or dark mode, and monochrome detection
aether --palette-info "Nord" --json

Inspection

aether --list-apps --json
aether --list-modes --json
aether --show-variables ~/wallpaper.jpg --json
aether --current-theme --json
aether --preview-template kitty ~/wallpaper.jpg

--current-theme reads the active Omarchy theme at ~/.local/state/omarchy/current/theme/colors.toml.

Wallpapers and Favorites

# Search Wallhaven metadata
aether --search-wallhaven "dark forest" --sorting relevance --purity 100 --at-least 1920x1080 --json

# Search and download small thumbnails to cache
aether --wallhaven-thumbs "mountains" --pages 2 --json

# Show metadata or download a full Wallhaven image by ID or URL
aether --wallhaven-info j3qv85 --json
aether --wallhaven-download j3qv85

# List local wallpapers or pick one at random
aether --list-wallpapers --with-previews --json
aether --random-wallpaper

# Manage favorites
aether --list-favorites --json
aether --toggle-favorite ~/Wallpapers/forest.jpg
aether --is-favorite ~/Wallpapers/forest.jpg

Wallhaven search options:

Option Description
--page N Starting page number, default 1
--pages N Number of consecutive pages for --wallhaven-thumbs
--categories 111 Bitmask for General, Anime, and People
--purity 100 Bitmask for SFW, Sketchy, and NSFW
--sorting MODE date_added, relevance, random, views, favorites, or toplist
--order DIR desc or asc
--at-least WxH Minimum resolution such as 1920x1080
--resolution WxH Exact resolution such as 5120x1440
--colors HEX 6-digit hex color without #

Remote Control

When the GUI is running, bare subcommands control it over ~/.config/aether/aether.sock:

aether status
aether extract ~/wallpaper.jpg
aether set-color 4 "#53ba97"
aether adjust --vibrance 20
aether set-mode pastel
aether toggle-light-mode
aether apply
aether load-blueprint "Nord"
aether apply-blueprint "Nord"
aether list-blueprints
aether set-wallpaper ~/wall.jpg
aether get-variables

See Remote Control for the full IPC protocol.

Upgrades

aether upgrade

For pre-built binary installs, aether upgrade downloads and installs the latest Linux release binary and refreshes the aether:// handler. For pacman-managed installs, it prints the package manager update command instead.

Scripting Examples

Hyprland Keybinds

Add to ~/.config/hypr/bindings.conf:

bind = SUPER ALT, W, exec, omarchy-shell shell toggle aether.wallpapers '{}'
bind = SUPER ALT, B, exec, omarchy-shell shell toggle aether.blueprints '{}'
bind = SUPER ALT, T, exec, aether --generate "$(readlink -f ~/.local/state/omarchy/current/background)"

Random Wallpaper Theme

#!/bin/bash
wallpaper=$(aether --random-wallpaper)
aether --generate "$wallpaper"

Exit Codes

Code Meaning
0 Success
1 Error or unsupported Omarchy version

Environment Variables

  • XDG_CONFIG_HOME controls ~/.config/aether/.
  • XDG_CACHE_HOME controls ~/.cache/aether/.
  • XDG_DATA_HOME controls ~/.local/share/aether/.
  • AETHER_EXTRA_THEME_DIRS is a colon-separated list of extra theme roots scanned before ~/.config/omarchy/themes, $OMARCHY_PATH/themes, and ~/.config/themes for the System themes tab in Library.
AETHER_EXTRA_THEME_DIRS="$HOME/dotfiles/themes:$HOME/work/themes" aether