A simple, interactive TUI for switching Alacritty themes on the fly, written in Rust.
-
Alacritty: Ensure you have Alacritty installed on your system.
-
Themes: Download the collection of themes from the official
alacritty-themerepository. Use the following command to clone it into the correct location:mkdir -p ~/.config/alacritty/themes git clone https://github.com/alacritty/alacritty-theme.git ~/.config/alacritty/theme
- Download the release binary file.
- Place the binary in a directory that is in your system's
PATH(e.g.,/usr/local/bin).
(Alternatively, you can build from source by cloning this repository and running cargo build --release.)
To use the theme switcher, simply run the executable from your terminal:
alacritty-theme-switcherThe application operates in two modes:
This is the default mode on startup. You can scroll through the entire list of your installed themes.
- Press
Enterto apply the selected theme to youralacritty.tomlfile and exit the application. - Press any letter to start searching, or
/to enter search mode.
A search bar will appear at the bottom of the screen. As you type, the list of themes will be filtered in real-time.
- Scroll through the filtered list using the arrow keys.
- Press
Enterto confirm your selection and return to Normal Mode. - Press
EscorCtrl+Cto clear the search query and return to Normal Mode.
| Key(s) | Action |
|---|---|
Up |
Move selection up |
Down |
Move selection down |
Any letter or / |
Enter Search mode |
Enter |
Apply selected theme and exit |
Esc / Ctrl+C |
Exit the app or return to Normal Mode |
