alacritty: migrate from yaml to toml
This commit is contained in:
parent
cf1d0c544b
commit
854a8eafb1
|
@ -0,0 +1,34 @@
|
|||
import = ["/home/nicolas/.config/alacritty/theme.toml"]
|
||||
|
||||
[env]
|
||||
TERM = "xterm-256color"
|
||||
WINIT_X11_SCALE_FACTOR = "1.0"
|
||||
|
||||
[font.bold]
|
||||
family = "JetBrainsMono Nerd Font"
|
||||
style = "Bold"
|
||||
|
||||
[font.bold_italic]
|
||||
family = "JetBrainsMono Nerd Font"
|
||||
style = "Bold Italic"
|
||||
|
||||
[font.italic]
|
||||
family = "JetBrainsMono Nerd Font"
|
||||
style = "Italic"
|
||||
|
||||
[font.normal]
|
||||
family = "JetBrainsMono Nerd Font"
|
||||
style = "Regular"
|
||||
|
||||
[[keyboard.bindings]]
|
||||
action = "ToggleViMode"
|
||||
key = "Z"
|
||||
mode = "~Search"
|
||||
mods = "Shift|Control"
|
||||
|
||||
[window]
|
||||
dynamic_padding = true
|
||||
|
||||
[window.padding]
|
||||
x = 5
|
||||
y = 5
|
|
@ -1,28 +0,0 @@
|
|||
env:
|
||||
WINIT_X11_SCALE_FACTOR: '1.0'
|
||||
TERM: xterm-256color
|
||||
window:
|
||||
padding:
|
||||
x: 5
|
||||
y: 5
|
||||
dynamic_padding: true
|
||||
font:
|
||||
normal:
|
||||
family: JetBrainsMono Nerd Font
|
||||
style: Regular
|
||||
bold:
|
||||
family: JetBrainsMono Nerd Font
|
||||
style: Bold
|
||||
italic:
|
||||
family: JetBrainsMono Nerd Font
|
||||
style: Italic
|
||||
bold_italic:
|
||||
family: JetBrainsMono Nerd Font
|
||||
style: Bold Italic
|
||||
key_bindings:
|
||||
- key: Z
|
||||
mods: Shift|Control
|
||||
mode: ~Search
|
||||
action: ToggleViMode
|
||||
import:
|
||||
- ~/.config/alacritty/theme.yml
|
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
alacritty_config_dir=~/.config/alacritty
|
||||
matches=`grep -c 'dark' "$alacritty_config_dir/theme.yml"`
|
||||
matches=`grep -c 'dark' "$alacritty_config_dir/theme.toml"`
|
||||
|
||||
if [[ $matches > 0 ]]; then
|
||||
sed -i 's/dark/light/' ~/.config/alacritty/theme.yml
|
||||
sed -i 's/dark/light/' ~/.config/alacritty/theme.toml
|
||||
light.sh
|
||||
else
|
||||
sed -i 's/light/dark/' ~/.config/alacritty/theme.yml
|
||||
sed -i 's/light/dark/' ~/.config/alacritty/theme.toml
|
||||
dark.sh
|
||||
fi
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
import = ["/home/nicolas/.config/alacritty/themes/dark.toml"]
|
|
@ -0,0 +1,75 @@
|
|||
[[colors.indexed_colors]]
|
||||
color = "#F5A97F"
|
||||
index = 16
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
color = "#F4DBD6"
|
||||
index = 17
|
||||
|
||||
[colors.bright]
|
||||
black = "#5B6078"
|
||||
blue = "#8AADF4"
|
||||
cyan = "#8BD5CA"
|
||||
green = "#A6DA95"
|
||||
magenta = "#F5BDE6"
|
||||
red = "#ED8796"
|
||||
white = "#A5ADCB"
|
||||
yellow = "#EED49F"
|
||||
|
||||
[colors.cursor]
|
||||
cursor = "#F4DBD6"
|
||||
text = "#24273A"
|
||||
|
||||
[colors.dim]
|
||||
black = "#494D64"
|
||||
blue = "#8AADF4"
|
||||
cyan = "#8BD5CA"
|
||||
green = "#A6DA95"
|
||||
magenta = "#F5BDE6"
|
||||
red = "#ED8796"
|
||||
white = "#B8C0E0"
|
||||
yellow = "#EED49F"
|
||||
|
||||
[colors.hints.end]
|
||||
background = "#A5ADCB"
|
||||
foreground = "#24273A"
|
||||
|
||||
[colors.hints.start]
|
||||
background = "#EED49F"
|
||||
foreground = "#24273A"
|
||||
|
||||
[colors.normal]
|
||||
black = "#494D64"
|
||||
blue = "#8AADF4"
|
||||
cyan = "#8BD5CA"
|
||||
green = "#A6DA95"
|
||||
magenta = "#F5BDE6"
|
||||
red = "#ED8796"
|
||||
white = "#B8C0E0"
|
||||
yellow = "#EED49F"
|
||||
|
||||
[colors.primary]
|
||||
background = "#24273A"
|
||||
bright_foreground = "#CAD3F5"
|
||||
dim_foreground = "#CAD3F5"
|
||||
foreground = "#CAD3F5"
|
||||
|
||||
[colors.footer_bar]
|
||||
background = "#A5ADCB"
|
||||
foreground = "#24273A"
|
||||
|
||||
[colors.search.focused_match]
|
||||
background = "#A6DA95"
|
||||
foreground = "#24273A"
|
||||
|
||||
[colors.search.matches]
|
||||
background = "#A5ADCB"
|
||||
foreground = "#24273A"
|
||||
|
||||
[colors.selection]
|
||||
background = "#F4DBD6"
|
||||
text = "#24273A"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
cursor = "#B7BDF8"
|
||||
text = "#24273A"
|
|
@ -1,79 +0,0 @@
|
|||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
background: "#24273A" # base
|
||||
foreground: "#CAD3F5" # text
|
||||
# Bright and dim foreground colors
|
||||
dim_foreground: "#CAD3F5" # text
|
||||
bright_foreground: "#CAD3F5" # text
|
||||
|
||||
# Cursor colors
|
||||
cursor:
|
||||
text: "#24273A" # base
|
||||
cursor: "#F4DBD6" # rosewater
|
||||
vi_mode_cursor:
|
||||
text: "#24273A" # base
|
||||
cursor: "#B7BDF8" # lavender
|
||||
|
||||
# Search colors
|
||||
search:
|
||||
matches:
|
||||
foreground: "#24273A" # base
|
||||
background: "#A5ADCB" # subtext0
|
||||
focused_match:
|
||||
foreground: "#24273A" # base
|
||||
background: "#A6DA95" # green
|
||||
footer_bar:
|
||||
foreground: "#24273A" # base
|
||||
background: "#A5ADCB" # subtext0
|
||||
|
||||
# Keyboard regex hints
|
||||
hints:
|
||||
start:
|
||||
foreground: "#24273A" # base
|
||||
background: "#EED49F" # yellow
|
||||
end:
|
||||
foreground: "#24273A" # base
|
||||
background: "#A5ADCB" # subtext0
|
||||
|
||||
# Selection colors
|
||||
selection:
|
||||
text: "#24273A" # base
|
||||
background: "#F4DBD6" # rosewater
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: "#494D64" # surface1
|
||||
red: "#ED8796" # red
|
||||
green: "#A6DA95" # green
|
||||
yellow: "#EED49F" # yellow
|
||||
blue: "#8AADF4" # blue
|
||||
magenta: "#F5BDE6" # pink
|
||||
cyan: "#8BD5CA" # teal
|
||||
white: "#B8C0E0" # subtext1
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: "#5B6078" # surface2
|
||||
red: "#ED8796" # red
|
||||
green: "#A6DA95" # green
|
||||
yellow: "#EED49F" # yellow
|
||||
blue: "#8AADF4" # blue
|
||||
magenta: "#F5BDE6" # pink
|
||||
cyan: "#8BD5CA" # teal
|
||||
white: "#A5ADCB" # subtext0
|
||||
|
||||
# Dim colors
|
||||
dim:
|
||||
black: "#494D64" # surface1
|
||||
red: "#ED8796" # red
|
||||
green: "#A6DA95" # green
|
||||
yellow: "#EED49F" # yellow
|
||||
blue: "#8AADF4" # blue
|
||||
magenta: "#F5BDE6" # pink
|
||||
cyan: "#8BD5CA" # teal
|
||||
white: "#B8C0E0" # subtext1
|
||||
|
||||
indexed_colors:
|
||||
- { index: 16, color: "#F5A97F" }
|
||||
- { index: 17, color: "#F4DBD6" }
|
|
@ -0,0 +1,75 @@
|
|||
[[colors.indexed_colors]]
|
||||
color = "#955F61"
|
||||
index = 16
|
||||
|
||||
[[colors.indexed_colors]]
|
||||
color = "#A440B5"
|
||||
index = 17
|
||||
|
||||
[colors.bright]
|
||||
black = "#352c24"
|
||||
blue = "#2848a9"
|
||||
cyan = "#287980"
|
||||
green = "#396847"
|
||||
magenta = "#6e33ce"
|
||||
red = "#a5222f"
|
||||
white = "#f2e9e1"
|
||||
yellow = "#AC5402"
|
||||
|
||||
[colors.cursor]
|
||||
cursor = "#824d5b"
|
||||
text = "#f6f2ee"
|
||||
|
||||
[colors.dim]
|
||||
black = "#352c24"
|
||||
blue = "#2848a9"
|
||||
cyan = "#287980"
|
||||
green = "#396847"
|
||||
magenta = "#6e33ce"
|
||||
red = "#a5222f"
|
||||
white = "#f2e9e1"
|
||||
yellow = "#AC5402"
|
||||
|
||||
[colors.hints.end]
|
||||
background = "#643f61"
|
||||
foreground = "#f6f2ee"
|
||||
|
||||
[colors.hints.start]
|
||||
background = "#AC5402"
|
||||
foreground = "#f6f2ee"
|
||||
|
||||
[colors.normal]
|
||||
black = "#352c24"
|
||||
blue = "#2848a9"
|
||||
cyan = "#287980"
|
||||
green = "#396847"
|
||||
magenta = "#6e33ce"
|
||||
red = "#a5222f"
|
||||
white = "#f2e9e1"
|
||||
yellow = "#AC5402"
|
||||
|
||||
[colors.primary]
|
||||
background = "#f6f2ee"
|
||||
bright_foreground = "#302b5d"
|
||||
dim_foreground = "#643f61"
|
||||
foreground = "#3d2b5a"
|
||||
|
||||
[colors.footer_bar]
|
||||
background = "#643f61"
|
||||
foreground = "#f6f2ee"
|
||||
|
||||
[colors.search.focused_match]
|
||||
background = "#396847"
|
||||
foreground = "#f6f2ee"
|
||||
|
||||
[colors.search.matches]
|
||||
background = "#643f61"
|
||||
foreground = "#f6f2ee"
|
||||
|
||||
[colors.selection]
|
||||
background = "#F4DBD6"
|
||||
text = "#f6f2ee"
|
||||
|
||||
[colors.vi_mode_cursor]
|
||||
cursor = "#a4c1c2"
|
||||
text = "#f6f2ee"
|
|
@ -1,85 +0,0 @@
|
|||
colors:
|
||||
# Default colors
|
||||
primary:
|
||||
background: "#f6f2ee" # base
|
||||
foreground: "#3d2b5a" # text
|
||||
# Bright and dim foreground colors
|
||||
dim_foreground: "#643f61" # text
|
||||
bright_foreground: "#302b5d" # text
|
||||
|
||||
# Cursor colors
|
||||
cursor:
|
||||
text: "#f6f2ee"
|
||||
cursor: "#824d5b"
|
||||
vi_mode_cursor:
|
||||
text: "#f6f2ee"
|
||||
cursor: "#a4c1c2"
|
||||
|
||||
# Search colors
|
||||
search:
|
||||
matches:
|
||||
foreground: "#f6f2ee" # base
|
||||
background: "#643f61"
|
||||
focused_match:
|
||||
foreground: "#f6f2ee" # base
|
||||
background: "#396847"
|
||||
footer_bar:
|
||||
foreground: "#f6f2ee" # base
|
||||
background: "#643f61" # subtext0
|
||||
|
||||
# Keyboard regex hints
|
||||
hints:
|
||||
start:
|
||||
foreground: "#f6f2ee" # base
|
||||
background: "#AC5402"
|
||||
end:
|
||||
foreground: "#f6f2ee" # base
|
||||
background: "#643f61" # subtext0
|
||||
|
||||
# Selection colors
|
||||
selection:
|
||||
text: "#f6f2ee" # base
|
||||
background: "#F4DBD6"
|
||||
|
||||
# Normal colors
|
||||
normal:
|
||||
black: "#352c24"
|
||||
red: "#a5222f"
|
||||
green: "#396847"
|
||||
yellow: "#AC5402"
|
||||
blue: "#2848a9"
|
||||
magenta: "#6e33ce"
|
||||
cyan: "#287980"
|
||||
white: "#f2e9e1"
|
||||
orange: "#955f61"
|
||||
pink: "#a440b5"
|
||||
|
||||
# Bright colors
|
||||
bright:
|
||||
black: "#352c24"
|
||||
red: "#a5222f"
|
||||
green: "#396847"
|
||||
yellow: "#AC5402"
|
||||
blue: "#2848a9"
|
||||
magenta: "#6e33ce"
|
||||
cyan: "#287980"
|
||||
white: "#f2e9e1"
|
||||
orange: "#955f61"
|
||||
pink: "#a440b5"
|
||||
|
||||
# Dim colors
|
||||
dim:
|
||||
black: "#352c24"
|
||||
red: "#a5222f"
|
||||
green: "#396847"
|
||||
yellow: "#AC5402"
|
||||
blue: "#2848a9"
|
||||
magenta: "#6e33ce"
|
||||
cyan: "#287980"
|
||||
white: "#f2e9e1"
|
||||
orange: "#955f61"
|
||||
pink: "#a440b5"
|
||||
|
||||
indexed_colors:
|
||||
- { index: 16, color: "#955F61" }
|
||||
- { index: 17, color: "#A440B5" }
|
Loading…
Reference in New Issue