Alacritty

Project: https://alacritty.org

Setup

No additional plugins are required to control alacritty themes but there is a tiny amount of setup. Alacritty uses different config languages before/after 0.13.0:

YAML Config (< v0.13.0)

Setup instructions
  1. Split your dark mode and light mode themes into separate .yml files, or skip this step and use pre-defined themes from alacritty-theme or iTerm2-Color-Schemes:
    ~/.config/alacritty/{dark,light}.thcon.yml
  2. Use the paths to those files in thcon.toml (examples below)
  3. Replace the color settings in your main alacritty.yml with a single import entry for ~/.local/share/thcon/alacritty.yml

In other words:

 # alacritty.yml

import:
+ - ~/.local/share/thcon/alacritty.yml

colors:
cursor:
text: CellBackground
cursor: CellForeground
- primary:
- background: '#1d1f21'
- foreground: '#c5c8c6'
- normal:
- black: '#1d1f21'
- red: '#cc6666'
- # ...
- bright:
- black: '#666666'
- red: '#d54e53'
- # ...
- dim:
- black: '#131415'
- red: '#864343'
- # ...

And if you're not using pre-defined theme files, make sure those exist:

# Skip if you're using pre-defined themes
#
# ~/.config/alacritty/dark.thcon.yml
# Colors (Solarized Dark)
colors:
# Default colors
primary:
background: '0x002b36'
foreground: '0x839496'
# ...
# Skip if you're using pre-defined themes
#
# ~/.config/alacritty/light.thcon.yml
# Colors (Solarized Light)
colors:
# Default colors
primary:
background: '0xfdf6e3'
foreground: '0x586e75'
# ...

TOML Config (>= v0.13.0)

Setup instructions
  1. Split your dark mode and light mode themes into separate .toml files, or skip this step and use pre-defined themes from alacritty-theme or iTerm2-Color-Schemes:
    ~/.config/alacritty/{dark,light}.thcon.toml
  2. Use the paths to those files in thcon.toml (examples below)
  3. Replace the color settings in your main alacritty.toml with a single import entry for ~/.local/share/thcon/alacritty.yml

In other words:

 # alacritty.toml

[general]
+import = [ "~/.local/share/thcon/alacritty.yml" ]

[colors.cursor]
text = "CellBackground"
cursor = "CellForeground"

-[colors.primary]
-background = "#1d1f21"
-foreground = "#c5c8c6"
-
-[colors.normal]
-black = "#1d1f21"
-red = "#cc6666"
-# ...
-
-[colors.bright]
-black = "#666666"
-red = "#d54e53"
-# ...
-
-[colors.dim]
-black = "#131415"
-red = "#864343"
-# ...

And if you're not using pre-defined theme files, make sure those exist:

# Skip if you're using pre-defined themes
#
# ~/.config/alacritty/dark.thcon.toml
# Colors (Solarized Dark)
[colors.primary]
background = "0x002b36"
foreground = "0x839496"
# ...
# Skip if you're using pre-defined themes
#
# ~/.config/alacritty/light.thcon.toml
# Colors (Solarized Light)
[colors.primary]
background = "0xfdf6e3"
foreground = "0x586e75"
# ...

Configuration

Section: [alacritty]

Configuration keys, defaults, and descriptions
Key Default Description
dark (none)

Path to the file defining dark mode settings

light (none)

Path to the file defining light mode settings

disabled false Disables Alacritty

Example

# For alacritty < 0.13.0, reference YAML files:
[alacritty]
dark = "~/config/alacritty/themes/themes/solarized_dark.yaml"
light = "~/config/alacritty/themes/themes/solarized_light.yaml"

# For alacritty >= 0.13.0, references TOML files:
[alacritty]
dark = "~/Downloads/solarized_dark.toml"
light = "~/Downloads/solarized_light.toml"