Configuration¶
This guide explains how to configure Astronomo's behavior and appearance.
Configuration Methods¶
In-App Settings¶
Press Ctrl+, to open the Settings screen. Changes are saved automatically.
Configuration File¶
Edit ~/.config/astronomo/config.toml directly:
Restart Astronomo for changes to take effect.
Changing the Theme¶
Available Themes¶
| Theme | Description |
|---|---|
textual-dark |
Default dark theme |
textual-light |
Light theme for bright environments |
textual-ansi |
Uses terminal's native colors |
nord |
Arctic, cool blue tones |
dracula |
Dark theme with purple accents |
gruvbox |
Warm, retro color scheme |
tokyo-night |
Vibrant dark theme |
monokai |
Classic code editor colors |
catppuccin-mocha |
Pastel dark theme |
solarized-light |
Low-contrast light theme |
Setting a Theme¶
Setting a Home Page¶
Load a specific page when Astronomo starts:
Without a home page, Astronomo starts with an empty view unless you specify a URL on the command line.
Adjusting Timeouts¶
Control how long Astronomo waits for slow servers:
Tip
Increase this value if you frequently access slow servers or have a slow connection.
Limiting Redirects¶
Control how many redirects Astronomo follows:
This prevents infinite redirect loops and limits exposure to redirect chains.
Complete Example¶
# Astronomo Configuration
# ~/.config/astronomo/config.toml
[appearance]
theme = "tokyo-night"
[browsing]
home_page = "gemini://geminiprotocol.net/"
timeout = 30
max_redirects = 5
Resetting to Defaults¶
Delete the config file to reset:
Astronomo recreates it with defaults on next launch.
Configuration Location¶
Astronomo follows the XDG Base Directory specification:
- Default:
~/.config/astronomo/config.toml - Custom: Set
XDG_CONFIG_HOMEenvironment variable
Troubleshooting¶
Config Not Loading¶
- Check file syntax with a TOML validator
- Ensure file permissions allow reading
- Check for typos in section names
Theme Not Changing¶
- Verify the theme name is spelled correctly
- Restart Astronomo after file changes
- Check that the theme exists in Textual
Invalid Values¶
If Astronomo encounters invalid configuration values, it uses defaults and may show a warning. Check the terminal output for error messages.