← XeFM English | 日本語 · crftwr/xefm on GitHub · craftware

Color Schemes Feature

English | 日本語

Overview

XeFM ships a range of themes — palettes that look good in different terminal environments, plus a few richer “screen” themes that pair a palette with a screen effect and a moving background on the GUI backend. You switch between them at run time; XeFM remembers the last one you chose.

This page covers the themes themselves, the animated backgrounds a theme can draw behind the panes, and the motion (dialogs, text effects, pane-focus cues) that a theme can turn on — including the single REDUCED_MOTION switch that quiets all of it.

Available themes

XeFM starts on Dark+ and includes a set of standard palettes:

Retro themes with screen effects

Beyond the standard palettes, XeFM ships four screen themes, each pairing a palette with a recommended screen effect:

Select any of them from View → Theme.

The screen effect is composited over the whole frame and is only rendered by the desktop app (macOS/Windows) — a terminal shows the palette alone. The effect turns on when you switch to the theme and off when you switch away. You can add your own themes (with or without an effect) via the THEMES dict in ~/.xefm/config.py; see Configuration.

Picture themes

Four themes put a picture behind the panes rather than a pattern: a scene lit and filmed like a photograph, slowly moving, kept dim so the file list stays readable on top. Like the screen effects, the picture is drawn only by the desktop app; a terminal shows the palette alone.

What Gets Colored

Every theme changes:

Hidden Files

With hidden files shown (toggle_hidden, View → Show Hidden Files), a hidden entry is drawn in its own type color faded toward the background, so it still reads as a folder or a link while being visibly set apart from everything else in the pane. On Windows this is the only thing that tells you: hidden there is a file attribute, not a dot at the front of the name, so desktop.ini and an ordinary file look alike otherwise.

To change how far they fade — or to give them a single flat color instead — name hidden in a theme’s file_types in ~/.xefm/config.py:

THEMES = {
    'Ocean': {
        'file_types': {
            'hidden': 0.6,             # fade harder (0 = not at all)
            # 'hidden': (110, 110, 110),  # ...or one flat gray for every hidden entry
        },
    },
}

The number is what you get, up to a point: XeFM holds a hidden name to a minimum contrast against the pane behind it, so a high number — or a flat color close to the background — fades as far as that floor and no further. A hidden entry ends up quiet enough to skip over and still solid enough to read when you look at it.

The Title Bar

In desktop mode the window’s title bar follows the theme: a light theme gets a light title bar and a dark theme a dark one, whatever the OS is set to. On macOS the menu bar’s menus and the context menus follow it too; on Windows the menus stay light.

XeFM tells a light theme from a dark one by its background. A theme whose chrome is far from its background says which it is with appearance (Pelagic, with its white shell over dark water, is light):

THEMES = {
    'Ocean': {
        'appearance': 'light',   # or 'dark'; left out, the background decides
    },
}

How to Use

Switch Themes

Pick a theme directly from View → Theme while XeFM is running. The change happens immediately.

Default Theme

XeFM starts on the Dark+ theme and remembers whichever theme you last switched to across restarts — there is no single default-scheme setting. To add or customize themes, use the THEMES dict in ~/.xefm/config.py (see Configuration).

Assign a Theme Key

Cycling themes has no key by default. To cycle from the keyboard, bind toggle_color_scheme in ~/.xefm/config.py:

KEY_BINDINGS = {
    'toggle_color_scheme': ['Y'],  # Pick any free key
    # ... other bindings
}

Terminal Compatibility

XeFM automatically detects what your terminal supports:

Background animations

A theme can draw a slow animated scene behind the file panes. The animation is rendered under the whole UI and shows through wherever the interface is not fully opaque, so it reads as a living wallpaper rather than as decoration on top of your files.

Animations are drawn in your theme’s own colours — the line colour comes from the theme foreground and the backdrop from the theme background — so a scene stays on-palette whichever theme (or custom palette) you use. In blocks the colour is the light that leaks between the columns, and in crystal it is the glass. The exceptions are earth and pelagic, pictures in their natural colours: they take only the theme background, as the colour they are shown over.

Desktop mode only. Animations need real pixels. They are rendered by the desktop backend, on macOS/Windows. In a terminal there are no sub-cell pixels to draw into, so the setting is silently ignored and you simply get the theme’s plain background colour.

Available animations

Name What it looks like
starfield Stars streaming toward you out of a vanishing point, drawn as motion streaks that lengthen and brighten as they approach.
rain Falling streaks with fading tails, each column at its own speed — the classic phosphor-terminal rain.
constellation Slowly drifting points that link to their near neighbours, the links fading in and out as points pass.
grid Flying down a wireframe corridor — floor, ceiling and both walls gridded, converging on a vanishing point that wanders as the camera slowly drifts and turns.
wave A dense field of particles flowing over a rolling wave surface, with a colour gradient sweeping along it.
datastream Horizontal telemetry traffic: layered rows of dashes streaming past at different rates, mostly short with the occasional long streak, each leading with a bright head and some ending in a small upright tick. Busy and quiet regions drift across the field.
earth The Earth from orbit — surface, clouds at three heights that slide against the ground as the camera moves, a glowing atmosphere with sunrise and sunset along the edge, sunlight glinting off the oceans, a dark night side with no city lights, stars and a faint Milky Way. A slow camera moves between composed shots, and a choice of lens looks (film, anamorphic, CRT and more) is applied to the picture only, never to the panes. See The Earth scene.
blocks A field of rounded metal columns in blue fog, rising and falling slowly and unevenly, with light leaking up through the gaps now and then and glowing on their sides; a camera loops through composed shots over about five minutes. See The Blocks scene.
crystal A macro of small cyan crystals growing out of craggy black basalt: refracting glass with green inclusions, a mossy coat where glass meets rock, a swinging studio key light and a cyan rim, cyan-tinted shadows, and a depth of field that keeps what is in the middle of the frame sharp. See The Crystal scene.
pelagic Open water from about ten metres down, looking up: moon jellyfish swimming slow paths with their tentacles streaming behind, pulsing as they go; the rippling surface with the sun and sky seen through it; sun shafts that sway with the swell; drifting marine snow; the sea floor along the bottom, white sand or dark coral, melting into the water further off; and, every few minutes, a distant turtle. See The Pelagic scene.
hologram A depth of holographic panels drifting toward you, each a small flat readout — pseudo-text that types itself out left to right, bar and line charts, progress bars, ring gauges, wireframe meshes — struck here and there with a warm accent. Panels fade up, hold and vanish on their own clock as the field flies slowly past, with a fine haze of distant ones behind, a few thick speed streaks raking outward from the vanishing point, soft out-of-focus dots and strokes drifting slowly across it all, and bright traffic — barcode bursts, dashes and dots — running fast along horizontal lanes.

The UI toolkit’s own cube (a spinning wireframe) also works. It exists as a reference scene for the rendering path rather than as a finished look.

Where they run

Every scene is a GPU shader, computed for each pixel on the graphics card. That is what lets them be dense, use real colour gradients rather than a single flat line colour, and cost almost nothing while XeFM sits idle — the graphics card advances the scene behind the UI without XeFM having to redraw the interface.

They need desktop mode, on macOS or Windows. In a terminal there are no pixels to draw into, so the animation key is ignored and you get the plain theme background. The same is true on the rare desktop setup with no usable GPU shader support. earth, blocks, crystal and pelagic also need desktop mode in the strict sense: the browser (web) mode shows the plain background for them.

Turning one on

Animations are chosen per theme. Among the built-in themes, Sci-Fi ships with the starfield, Cyber with the hologram, Shinagawa with the wave, Earth with the earth, Blocks with the blocks, Crystal with the crystal and Pelagic with the pelagic scene; select one from View → Theme.

To use one in your own theme, add an animation key to a theme in the THEMES dict in ~/.xefm/config.py:

THEMES = {
    'Deep Space': {
        'base': 'Dark+',
        'animation': 'starfield',
        'opacity': 0.6,          # let the scene show through the panes
    },
}

opacity — letting the animation show through

An animation is drawn behind the UI, so with a fully opaque interface you would only see it in whatever gaps the layout leaves. The theme’s opacity value (0–1) controls how opaque the pane and row backgrounds are; lower it and the scene becomes visible through them.

Text, outlines and dialog boxes always stay opaque, so lowering opacity does not make the interface unreadable.

It fades away when you’re not using it

An animation that ran forever would keep your machine busy — and drain the battery — while you were reading something else. So it doesn’t:

If your system’s reduce motion setting is on, the scene stops but stays — the fade would itself be motion, and you are still at the machine.

There is nothing to configure and no interruption to what you’re doing — while parked, XeFM uses no more power than it would with a plain background.

Tuning speed and strength

Give animation a dict instead of a name to adjust it:

'animation': {'type': 'rain', 'speed': 1.0, 'opacity': 0.8},
Key Meaning
type Which animation (see the table above).
speed Motion-rate multiplier. 1.0 is the tuned look; XeFM’s default is 0.6. 0 freezes the scene.
opacity How strongly the scene itself is drawn, 0–1. Not to be confused with the theme-level opacity, which is about the UI on top of it.
color The colour the scene is built on, if you want something other than the theme foreground. Scenes anchor their own colouring on it rather than using it flat, so a scene with a gradient shifts with it instead of losing the gradient.

All animations are deliberately slow and understated — they sit behind a working file manager, so they are tuned to stay in the background rather than compete with filenames for attention. Raising speed much above 1.0 works, but is likely to be distracting during real use.

The Earth scene

Left to itself, earth makes scenes by pairing a shot (one of thirteen, each in twelve compositions — moved round the planet, higher or lower, tilted, and turned so the Earth can lie at the bottom, the side or the top of the frame) with a lens look (one of ten) — 1,560 combinations. Each scene lasts about 50 seconds at speed 1.0 — about half a minute held, then a slow move of about 18 seconds into the next — with the camera moving slowly and steadily the whole time — around the planet, closer or further, the planet drifting and turning across the frame and the sun creeping with it — and then goes on to the next, picked at random. When the next scene is close enough to reach at a calm pace, the camera travels there in one smooth move, the drift within a scene and the move between scenes flowing into each other; when it is not, the picture fades out and the next scene fades in, so the planet and the sun are never swung round faster than they drift. Three of the shots, approach, departure and sunrise, are longer — about 100 seconds — and tell a small story of their own (see the table below). XeFM opens on a random scene, and returns from idle to a fresh one.

The picture is kept dim on purpose: no pixel of it is brighter than 35% of white (brightness), so file names stay readable over a sunlit ocean.

It takes five keys of its own in the same dict:

'animation': {'type': 'earth', 'shot': 'rise', 'lens': 'film',
              'clouds': 3.0, 'exposure': 0.85},
Key Meaning
shot Hold one shot (below), or leave it out (or 'auto') to pick one at random for every scene.
lens The camera look (below). Leave it out (or 'auto') to pick one at random for every scene; name one to keep it, or give a list to pick among those: ['clean', 'film', 'anamorphic']. A dict tunes a look: {'preset': 'film', 'grain': 0}.
clouds How far the clouds are lifted above the ground, 0–8. 1 is their real height; the default 3 lets them visibly slide against the surface from orbit.
exposure How much light the camera takes in, 0.1–4. Default 1.
brightness The brightest the picture may be, as a fraction of white, 0–1. Default 0.35.

The shots:

shot What you see
day The full disc in daylight, Africa and Europe.
dawn Morning over the western Pacific: the line between night and day sweeping across the curve of the Earth.
crescent The Earth half in daylight, lit from the side and a little behind, the atmosphere glowing on the edge.
leo Low orbit, about 250 km up, looking across the Himalaya to the horizon.
terminator The line between day and night across the Andes.
glint The sun reflected off the central Pacific.
rise The sun slipping behind the edge of the Earth and back out — it shrinks and reddens as it goes, and the air beside it flares.
polar Over the Arctic.
horizon Low orbit at the edge of morning: still night below, the ground lit toward the horizon and the sun beside it.
ocean The daylit Pacific seen obliquely from low orbit.
approach A long scene: falling from high above northern India toward the low evening sun, down into the clouds, then tilting up to the horizon as the sun sets.
departure A long scene: climbing away from low orbit over Africa, tilting down and slowly turning as the whole lit disc comes into view and shrinks among the stars.
sunrise A long scene: watching the horizon from low orbit over the Pacific as the sun comes up over it and the ground and clouds below light up.

A held shot still moves slowly, and keeps its composition as listed here; the other eleven compositions of each shot only come up when shot is left to choose.

The lenses. They are applied to the picture only; the panes, text and dialogs are never distorted, blurred or grained:

lens Look
clean A light glow around the brightest light.
aberration Colour fringing toward the edges.
cyanotype One colour, as a blueprint: the Earth in shades of Prussian blue, with grain.
vivid Saturated colour: deep blue oceans, rich deserts and forests.
film Warm highlights, cool shadows, a red halo around light, grain.
anamorphic A blue horizontal streak through the sun, faint flare.
flare Lens-flare ghosts mirrored through the centre of the frame.
crt Scanlines and an aperture grille.
infrared False colour, as infrared film renders foliage and sky.
night-vision A green intensified image.

None of the looks darkens the edges or crops the frame: the picture always reaches every edge of the window.

The textures are NASA’s Blue Marble imagery; their credits are in xefm/assets/earth/SOURCES.md. On a laptop the scene costs noticeably more GPU time than the other animations while it is moving — it stops (and costs nothing) when XeFM is idle, like the rest.

The Blocks scene

blocks takes these keys of its own:

'animation': {'type': 'blocks', 'leaks': 1.5, 'motion': 0.6, 'camera': 0.5},
Key Meaning
leaks How often light leaks between the columns, 0–3. 1 is as tuned; 0 never.
leak_strength How bright a leak gets, 0–3. Default 1.
motion How far the columns rise and fall, 0–2. 0 holds them still. Default 1.
camera How fast the camera moves along its loop, 0–3. 0 holds one view. Default 1.
exposure How much light the camera takes in, 0.1–4.
brightness The brightest the picture may be, as a fraction of white, 0–1. Default 0.5.

The leak light is the theme colour (color, or the foreground), and the fog is the theme background. The scene was tuned at speed 1.0, which the Blocks theme uses.

The Crystal scene

crystal takes these keys of its own:

'animation': {'type': 'crystal', 'focus': 0.5, 'brightness': 0.6},
Key Meaning
focus How strong the depth of field is, 0–2. 1 is as tuned; 0 keeps everything sharp.
exposure How much light the camera takes in, 0.1–4.
brightness The brightest the picture may be, as a fraction of white, 0–1. Default 0.5.

The glass takes the theme colour (color, or the foreground): its tint, the glow inside it, the colour of its shadows and the rim light all follow it, and the icon’s cyan gives the look as designed. It is the most demanding scene XeFM has, so it renders at 30 frames a second, which its slow camera does not show. When the theme is chosen it spends its first half-second preparing the rock, with the plain background shown meanwhile. The scene was tuned at speed 1.0, which the Crystal theme uses.

The Pelagic scene

pelagic takes these keys of its own:

'animation': {'type': 'pelagic', 'jellyfish': 3, 'brightness': 0.6},
Key Meaning
jellyfish How many jellyfish swim through the scene, 0–6. Default 6. Fewer also make the scene lighter work for the graphics card.
exposure How much light the camera takes in, 0.1–4.
brightness The brightest the picture may be, as a fraction of white, 0–1. Default 0.7.

The water is drawn in its natural colours, so the scene does not follow the theme colour. Its colour drifts slowly between blue-green and a clearer blue over about eight and a half minutes, and the floor along the bottom of the frame between white sand and dark coral over about eleven and a half. A jellyfish that drifts very close to the camera fades away rather than filling the window. It renders at 30 frames a second, which its slow drift does not show. The turtle’s passes are timed to the camera’s own slow tilt, so it comes by while the floor is in view, about once every three and a half minutes. The scene was tuned at speed 1.0, which the Pelagic theme uses.

Using an image instead

The background can be a static image rather than an animation — see the wallpaper key in the theme documentation. A theme has one background: naming both wallpaper and animation uses the wallpaper.

Motion & text effects

XeFM animates a few things on a GUI backend — dialogs arriving, the Sci-Fi theme’s starfield drifting behind the UI — and marks which file pane has focus. This section covers what you see and how to change it.

Dialogs

Every modal (input prompts, the filter and favorites pickers, batch rename, the text / diff / directory-diff viewers) enters the same way: it grows from 92% to full size while fading in, decelerating sharply and gliding to a stop.

Pickers take 180 ms, full-screen viewers 140 ms — viewers are usually opened deliberately, and a shorter beat keeps them from feeling like they lag behind the keystroke.

In a terminal there is no compositing, so the same intent plays as two frames — one inset frame, then the finished box. Nothing is lost; the beat is just coarser.

Arriving text (Sci-Fi)

Under the Sci-Fi theme, text types itself into place as it arrives: a file pane filling in left to right when you enter a directory, a dialog’s labels doing the same as it opens, and each new line in the log pane as it is written. Every other theme draws text plainly.

It fires when something arrives — a new listing, a dialog, a fresh log line. It deliberately does not fire while you scroll, or when a status value ticks over, so it never sits between you and something you are reading. Scrolling back over log lines you have already read leaves them alone.

Choosing a different one

Five styles ship. Any theme can name one in your config.py:

THEMES = {
    'Dracula': {
        'text_effect': 'scatter',   # or 'typewriter', 'decode', 'wipe', 'flicker'
        # ...or tune it:
        # 'text_effect': {'kind': 'typewriter', 'duration_ms': 300,
        #                 'stagger_ms': 8, 'max_rows': 120},
    },
}

duration_ms is how long one string takes; stagger_ms is the delay added per row, so a listing cascades down the pane; max_rows caps how many rows animate before the rest simply appear, so a very tall window does not cascade for seconds. A misspelled name turns the effect off rather than breaking anything.

Options

Two knobs work with typewriter, scatter and decode:

'text_effect': {
    'kind': 'typewriter',
    'flash': 0.08,        # each character flashes as a solid block as it lands
    'hidden': 'scramble', # not-yet-revealed characters churn instead of staying blank
},

Text you are editing never animates — an input field always shows its real value, whatever the theme asks for.

Not everything uses the same one

The text viewer uses scatter with flash regardless of which style the theme names, because a full screen of text has no single place for the eye to follow — a left-to-right reveal reads as a slow wipe, while landing everywhere at once fills the page in the same time.

It still obeys the theme on everything that matters: if your theme has no text effect the viewer opens plainly like everything else, and it takes its timing from the theme rather than setting its own.

The cursor row

The row your cursor is on is marked in the theme’s cursor color. In the desktop app it is an outline around the row; in a terminal it is a line under the whole row, which is what makes it findable on a wide listing.

Only the pane you are working in gets that color. The other pane marks its cursor in plain gray — so the two never look alike, and a glance at the color tells you which side Enter will act on. (Before, the resting cue was a dimmed version of the same color, which at the width of a rule read as the same cue.)

XeFM picks the marking your terminal can actually show, by itself. Most modern terminals (Windows Terminal, iTerm2, WezTerm, kitty, GNOME Terminal, Ghostty, Alacritty, Konsole, …) can draw an underline in a color of its own, and there you get the line. Where a terminal cannot — macOS’s own Terminal.app among them — a line would come out in the row’s own text color, saying only “this row is underlined” and nothing about which pane you are in, so the cursor row is marked [ … ] instead, in the cursor color. Both spellings say the same thing, neither needs configuring, and both cost the listing the same one column at each edge — so a pane looks the same on every terminal but for how its cursor row is marked.

Pane focus

Two cues mark which pane you are working in. Both are per-theme, and only the Sci-Fi theme turns them on by default:

Filenames in the resting pane stay readable: the wash is applied before XeFM’s legibility pass, which lifts any color pushed under the contrast floor back over it. A theme cannot configure its resting pane into illegibility.

In a terminal the brackets are skipped. A character grid has no sub-cell room for them, and reserving whole columns and rows for decoration would cost real listing space — so terminal focus stays marked by the cursor cue, which is colored on the focused pane and gray on the resting one. The ink wash still applies, since a color change costs no space.

Turning them on for another theme

Both are plain theme data in your config.py:

THEMES = {
    'Dracula': {
        # Brackets in the theme accent, default arm length:
        'pane_frame': True,
        # ...or spell it out:
        # 'pane_frame': {'color': (130, 205, 255), 'arm': 2, 'thickness': 1.0},

        # Default wash strength:
        'pane_dim': True,
        # ...or set your own, 0.0 (untouched) to 1.0 (invisible):
        # 'pane_dim': 0.15,
    },
}

Reduced motion

To suppress decorative motion everywhere — the dialog scale-in, the text effects, and the animated theme backgrounds above — set this in config.py:

REDUCED_MOTION = True

With it on:

Everything lands in its final state, never frozen part-way, so nothing is hidden by turning it on.

Worth knowing: this only affects decoration. Progress bars, file-list reloads, search results and every other functional update keep running exactly as before.

It is also worth setting over a slow SSH link, where each animated frame is a full screen repaint.

Troubleshooting

Colors Don’t Change When Switching Themes

Colors Look Wrong

Colors Are Too Bright/Dark

Tips

Getting More Information

The theme feature makes XeFM look good in any terminal environment!

See also