less intensive light and urgent color; restrictive FIFO mode

This commit is contained in:
2020-07-13 22:53:37 +02:00
parent 25a350d962
commit 0aaad0a08f
3 changed files with 8 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ env:
colors:
primary:
background: '#1a3a34'
foreground: '#e2f6e1'
foreground: '#f2f6e1'
font:
size: 13.5

View File

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