Skip to main content

ClearFX
Because a blank screen is boring

Install · Usage · Animations · Create · Config


I got tired of just seeing my terminal text vanish instantly when I ran clear, so I built ClearFX. It swaps out the standard clear command for a quick, random terminal animation. One second you're clearing some messy logs, and the next you're watching a tiny city shut off its lights or some ASCII birds fly away.

It runs completely offline during playback, has a declarative package format so you can safely run community animations, and has a marketplace you can browse right from your terminal.

Installation

pip install clearfx

Shell Integration

To make your regular clear command actually use ClearFX, run:

clearfx setup-shell

It'll auto-detect what you're using (Bash, Zsh, or Fish) and show you exactly what it's adding before it does anything. It automatically backs up your config too, just in case.

If you need to force a specific shell:

clearfx setup-shell --shell zsh

Restart your shell or source your config file, and you're good to go!

If you ever want to go back to normal:

clearfx remove-shell

Usage

Play a random animation

clearfx play

Play a specific one

clearfx play aurora-fold

List what's available

clearfx list
clearfx list --builtin
clearfx list --community

Tweak the playback

clearfx play --duration 700       # Speed it up (ms)
clearfx play --fps 24             # Change frame rate
clearfx play --seed 42            # Get the exact same animation output
clearfx play --ascii              # Force ASCII mode
clearfx play --monochrome         # No colors
clearfx play --reduced-motion     # Accessibility mode

Emergency disable

If something goes wrong or you just need it off right now:

export CLEARFX_DISABLE=1

It'll completely bypass the animation and run a standard clear.

Animations

I've built 36 animations so far. Here's what's included:

# Animation Description
1 Aurora Fold Smooth ribbons fold inward like northern lights
2 Black Hole Terminal Characters orbit and collapse into a central void
3 Pixel Avalanche Screen breaks into blocks that fall away
4 Neon Koi Glowing fish circle each other
5 Gravity Well A grid bends toward a moving point
6 Constellation Weaver Stars connect into patterns and dissolve
7 Origami Crane Lines fold into a crane and fly away
8 Cyber Shutter Mechanical panels close with glowing seams
9 Ink in Water Organic tendrils spread and fade
10 Signal Bloom Radio waves expand into flower shapes
11 Terminal Rain Garden Falling glyphs grow tiny plants
12 Wormhole Tunnel of distorted rings
13 Glitch Cathedral Symmetrical columns build, glitch, collapse
14 Comet Sweep A comet wipes the terminal diagonally
15 Paper Burn A burning edge turns content to ash
16 Liquid Mirror Wave distortion flattens to clean
17 Circuit Pulse Circuit paths grow with racing pulses
18 Moonlit Waves Ocean waves beneath a reflected moon
19 Fractal Branch A branching tree grows and retracts
20 Magnetic Sand Particles organize along field lines
21 Portal Door A portal opens, shows depth, closes
22 Retro Vector Horizon 80s-style perspective grid
23 Glass Fracture Cracks spread from an impact point
24 Clockwork Reset Interlocking gears pull screen inward
25 Solar Flare A sun emits curved flares
26 Data Serpent A hex-digit snake slithers through
27 Rain on Window Droplets descend, merge, leave trails
28 Quantum Split Objects split into probability states
29 Snow Globe Swirling snow in a shrinking globe
30 Typewriter Ghost Text types itself and fades as ghosts
31 Mosaic Flip Tiles flip in waves revealing blank space
32 Firefly Field Warm points drift and communicate
33 Tidal Vortex Opposing whirlpools create S-shaped flow
34 Laser Loom Beams weave and cut geometric fabric
35 Mechanical Iris Camera aperture blades close
36 Tiny City Shutdown A skyline's windows turn off one by one

Note: Built-in animations use fictional creator handles to demonstrate how marketplace attribution works.

Configuration

Settings live in your platform's standard config directory (like ~/.config/clearfx/config.toml on Linux).

clearfx config                      # Check current settings
clearfx config set duration_ms 900   # Change something

Example config:

enabled = true
duration_ms = 1100
fps = 30
reduced_motion = false
ascii_only = false
attribution_position = "auto"

Accessibility

ClearFX respects NO_COLOR for monochrome mode out of the box.

If you want simpler, gentler animations with fewer particles and no rapid flashing:

clearfx config set reduced_motion true

If your terminal doesn't like Unicode:

clearfx config set ascii_only true

Marketplace

You can grab designs other people have made:

clearfx search "space"
clearfx install aurora-fold
clearfx update

Creating Designs

I wanted to make it easy to build your own.

clearfx create my-animation
cd my-animation
# Edit src/design.py
clearfx preview .
clearfx validate .
clearfx pack .

Security Model

Running some random python code every time you clear your screen is a terrible idea. So, community packages use a .clearfx file format. It's just a ZIP archive with a declarative JSON scene definition.

There are no .py files, no arbitrary code execution, no shell scripts, and zero network access when playing. It's completely sandboxed.

Development Setup

If you want to poke around the code:

git clone https://github.com/random-unknown-username/clearfx.git
cd clearfx
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev,client,recording]"
pre-commit install

To run the web marketplace locally for testing, the frontend code is included in the repo. Just start it up!

Troubleshooting

If things go weird:

  1. Run clearfx doctor
  2. If your terminal gets messed up if you hit Ctrl+C at the wrong time (it shouldn't, but just in case), type reset and hit enter.

License

MIT License.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clearfx-0.2.6.tar.gz (66.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clearfx-0.2.6-py3-none-any.whl (95.1 kB view details)

Uploaded Python 3

File details

Details for the file clearfx-0.2.6.tar.gz.

File metadata

  • Download URL: clearfx-0.2.6.tar.gz
  • Upload date:
  • Size: 66.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for clearfx-0.2.6.tar.gz
Algorithm Hash digest
SHA256 c88bc9ba1bc2084618a1b32d1cbeef7121167a60bfaa7e0cc9a9000e5eecdf11
MD5 0121fda9478d999c65deac39a647f971
BLAKE2b-256 0d30d8917138b32b1cbd92600d83110068a0e4e4fbf44445ac6402c38ed1e5a0

See more details on using hashes here.

File details

Details for the file clearfx-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: clearfx-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 95.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for clearfx-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 578d131fc57f46c12549c93255c515cb353351cff1d55ada9f98a356b332abae
MD5 707b42c452d6e7018b428a38f342ad1e
BLAKE2b-256 b3b783d1c9b3035e07a2130b092004198ebb7f0f691e17cf89640d61f1634193

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page