alacritty: dark green and light mint colors

This commit is contained in:
Łukasz Pankowski 2020-07-10 23:35:11 +02:00
parent e747fe6f64
commit caf2ff3f7e
2 changed files with 7 additions and 7 deletions

View File

@ -5,8 +5,8 @@ env:
colors: colors:
primary: primary:
background: '#424242' background: '#1a3a34'
foreground: '#eeeeee' foreground: '#e2f6e1'
font: font:
size: 13.5 size: 13.5

View File

@ -5,11 +5,11 @@ import os
path = os.path.join(os.getenv('HOME'), '.config/alacritty/alacritty.yml') path = os.path.join(os.getenv('HOME'), '.config/alacritty/alacritty.yml')
with open(path, 'r+') as f: with open(path, 'r+') as f:
cfg = f.read() cfg = f.read()
if " background: '#424242'" in cfg: if " background: '#1a3a34'" in cfg:
cfg = cfg.replace(" background: '#424242'", " background: '#fafafa'") cfg = cfg.replace(" background: '#1a3a34'", " background: '#e2f6e1'")
cfg = cfg.replace(" foreground: '#eeeeee'", " foreground: '#424242'") cfg = cfg.replace(" foreground: '#e2f6e1'", " foreground: '#1a3a34'")
else: else:
cfg = cfg.replace(" background: '#fafafa'", " background: '#424242'") cfg = cfg.replace(" background: '#e2f6e1'", " background: '#1a3a34'")
cfg = cfg.replace(" foreground: '#424242'", " foreground: '#eeeeee'") cfg = cfg.replace(" foreground: '#1a3a34'", " foreground: '#e2f6e1'")
f.seek(0) f.seek(0)
f.write(cfg) f.write(cfg)