Itz-Agasta/metrocity
Sobre
A terminal idle eye candy for Linux. Animated pixel-art scenes take over your idle shell and vanish on any keypress.
Ferramentas de desenvolvimentoO que você pode fazer
- Animated scenes with weather, traffic, wandering cats, and atmosphere
- Random scene on every activation - or pin your favourite
- Pixel-art sprites rendered over the character grid via the Kitty graphics protocol
- Distro detection - renders your distro's logo on a building
Crescimento medido de estrelas
- em 24 h
- +2
- em 7 dias
- +3
- em 15 dias
- +5
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalMetrocity
A terminal screensaver for Linux - animated pixel-art scenes that take over your idle shell.
Install · Scenes · Shell setup · Configuration · Themes
paru -S metrocity · cargo install metrocity
Pixel sprites need a Kitty-graphics terminal: kitty, WezTerm or Ghostty
Metrocity activates when your shell has been idle, takes over the terminal with a randomly picked animated scene (a cyberpunk city skyline, a cozy cat cafe, a sunny meadow, a moonlit sakura lakeside, or a night harbor with a passing train), and exits instantly on any keypress - like a screensaver, but for your terminal. Flashes your distro logo. Goes hard in your Hyprland setup.
Built with Rust, Ratatui, Crossterm, and the Kitty graphics protocol.
Features
- Animated scenes with weather, traffic, wandering cats, and atmosphere
- Random scene on every activation - or pin your favourite
- Pixel-art sprites rendered over the character grid via the Kitty graphics protocol
- Distro detection - renders your distro's logo on a building
- 6 built-in color themes plus custom themes via TOML
- Shell integration for zsh, bash and fish - activates automatically on idle
- Instant exit - any keypress restores your terminal exactly as it was
- Tiny - ~1.4MB release binary, no runtime dependencies
Scenes
| Scene | Preview | Description |
|---|---|---|
city |
![]() |
Cyberpunk skyline: neon buildings, flying traffic, rain, your distro logo - ported from metropolis |
cafe |
![]() |
Cozy cat cafe: two animated pixel cats, neon sign, rain on the window, pastries |
meadow |
![]() |
Meadow: a capybara, a sloth and a honey badger lounging under a big tree, with a beehive, bees, swaying sunflowers, drifting leaves and a pot of hunny. Designed by @sean-d. |
sakura |
![]() |
Moonlit lakeside: a cherry tree shedding petals over the water, a city skyline and pagoda on the far shore, and a pixel fox that gazes at the moon, strolls the bank and naps between two glowing stone lanterns |
harbor |
![]() |
Night harbor: a skyline whose windows switch on and off, a pixel moon in a different phase each night, a train crossing an elevated line, a lighthouse sweeping its beam, and the whole city mirrored in the rippling water |
The cafe, meadow and sakura scenes layer pixel-art sprites on top of the character grid. Sprites need a terminal that supports the Kitty graphics protocol - kitty, WezTerm, or Ghostty. On other terminals the scene still renders, just without the sprites.
Install
From source
git clone https://github.com/Itz-Agasta/metrocity.git
cd metrocity
cargo build --release
sudo cp target/release/metrocity /usr/local/bin/
From crates.io
cargo install metrocity
Arch Linux (AUR)
paru -S metrocity
Setup
Zsh
Add to your ~/.zshrc:
export METROCITY_TIMEOUT=120 # seconds of idle before activation (default: 120)
export METROCITY_SCENE=cafe # optional: pin a scene (default: random)
eval "$(metrocity shell-init zsh)"
Bash
Add to your ~/.bashrc:
export METROCITY_TIMEOUT=120
export METROCITY_SCENE=cafe
eval "$(metrocity shell-init bash)"
Fish
Add to your ~/.config/fish/config.fish:
set -gx METROCITY_TIMEOUT 120
set -gx METROCITY_SCENE cafe
metrocity shell-init fish | source
METROCITY_SCENE is optional. If unset, metrocity picks a random scene every time it activates. Set it to any scene name to pin one (see Scenes or run metrocity list scenes).
Add these lines to your shell config file, not just the current terminal.
eval(or| sourcein fish) only affects the shell that runs it, so pasting it into one terminal activates metrocity there only. Put it in~/.zshrc/~/.bashrc/~/.config/fish/config.fish, then open a new terminal (or re-source the file) so every shell picks it up.
Manual launch
Just run metrocity - it takes over the terminal, press any key to exit.
Usage
metrocity # Start immediately (random scene)
metrocity --scene cafe # Pin a specific scene
metrocity --theme cyberpunk # Override color theme
metrocity --weather rain # Force weather mode (rain, snow, clear)
metrocity --fps 60 # Target frame rate
metrocity shell-init zsh # Print zsh integration snippet
metrocity shell-init bash # Print bash integration snippet
metrocity shell-init fish # Print fish integration snippet
metrocity list scenes # List available scenes
metrocity list themes # List available themes
metrocity config # Show effective configuration
metrocity config --init # Write default config to disk
metrocity --version # Print version
Configuration
Config file: ~/.config/metrocity/config.toml. Generate it with metrocity config --init:
[engine]
fps = 30
scene = "random" # random (default) or any name from `metrocity list scenes`
[appearance]
theme = "default"
weather = "rain"
[simulation]
max_vehicles = 50
max_pedestrians = 15
vehicle_speed_multiplier = 1.0
weather_speed_multiplier = 1.0
weather_density_multiplier = 1.0
[monolith]
custom_text = ""
custom_color = ""
override_distro = ""
Themes
| Theme | Description |
|---|---|
cyberpunk |
Neon-drenched magenta and cyan |
matrix |
Green-on-black digital rain |
synthwave |
Retro sunset orange and pink |
dracula |
Purple-pink gothic palette |
sin_city |
Stark black, white, and red |
default |
Balanced dark tones |
Custom themes
Place a TOML file at ~/.config/metrocity/themes/<name>.toml and use it with metrocity --theme <name>:
[building]
base_colors = ["#14141e", "#1e141e", "#141e28", "#1e1e1e"]
window_lit = "#ffff55"
window_unlit = "#282828"
window_dark = "#0f0f0f"
[neon]
primary = "#55ffff"
secondary = "#ff55ff"
accent = "#55ff55"
soft = "#ffff55"
[vehicles]
colors = ["#ff0000", "#ffffff", "#ffff00", "#00ffff", "#3296ff"]
police_red = "#ff0000"
police_blue = "#0000ff"
[env]
street_lamp_lit = "#ffff96"
street_lamp_dim = "#646432"
rain = "#00b4b4"
rain_bg = "#003c3c"
snow = "#ffffff"
pedestrian = "#aaaaaa"
ground = "#282832"
[overrides]
logo = "#ff0000"
How it works
- Shell integration - after
METROCITY_TIMEOUTseconds of idle time at the prompt, your shell launchesmetrocity. - Terminal takeover - it enters raw mode, switches to the alternate screen buffer, and hides the cursor.
- Render loop - at the target FPS it updates the simulation and redraws the scene; on Kitty-capable terminals, pixel sprites are composited on top of the character cells.
- Any key exits - a keypress breaks the loop, cleans up sprites, restores the terminal, and returns control to your shell.
Pairs well with Hyprland, fastfetch, and ~/.config tinkering.
Explore projetos relacionados
Carregando…




