dylanaraps / pywal

🎨 Generate and change color-schemes on the fly.
MIT License
8.23k stars 313 forks source link

Alacritty color template. #611

Open zBumblB opened 2 years ago

zBumblB commented 2 years ago

The wiki should also be updated.

For this template to work you have to add the following to your alacritty.yml:

import:
  - ~/.cache/wal/colors-alacritty.yml
zBumblB commented 2 years ago

This should be cross-platform. Alacritty should auto reload the config file unless you turned that off. This allows setting of opacity. Only thing is, that if you omit alpha flag when setting new colorscheme, the terminal background will be completely transparent (opacity 0). It should work better than the wiki solution (which involves a new script).

agorgl commented 2 years ago

Waiting for this too! Why hasn't this merged?

agorgl commented 2 years ago

@zBumblB I've found out that the above template is incorrect! The bright and normal colors are swapped. You can verify this by comparing the rendered template with the rendered ANSI color sequences from pywal.

Magnitudexx commented 2 years ago

@dylanaraps could this be added if its fixed?

anthonyma94 commented 9 months ago

Any updates on this? Alacritty now uses toml files instead.

evantaur commented 5 months ago

Any updates on this? Alacritty now uses toml files instead.

In case you or someone still needs it here's the toml version, throw it in your .config/wal/templates and include it with import=["~/.cache/wal/alacritty.toml"]

[colors.primary]
background = '{background}'
foreground = '{foreground}'

[colors.cursor]
text = '{foreground}'
cursor = '{cursor}'

[colors.normal]
black   = '{color0}'
red     = '{color1}'
green   = '{color2}'
yellow  = '{color3}'
blue    = '{color4}'
magenta = '{color5}'
cyan    = '{color6}'
white   = '{color7}'

[colors.bright]
black   = '{color8}'
red     = '{color9}'
green   = '{color10}'
yellow  = '{color11}'
blue    = '{color12}'
magenta = '{color13}'
cyan    = '{color14}'
white   = '{color15}'
eylles commented 3 months ago

alacritty toml templates are now part of pywal16 tho still not "released"

eylles commented 2 months ago

pywal16 3.5.1 is out with the alacritty toml template available.