Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alacritty: Switch to toml config #415

Open
UltraBlackLinux opened this issue Jan 7, 2024 · 5 comments
Open

Alacritty: Switch to toml config #415

UltraBlackLinux opened this issue Jan 7, 2024 · 5 comments

Comments

@UltraBlackLinux
Copy link

Alacritty recently deprecated their yml config and switched to toml. Gogh does not yet seem to be aware of this and doesn't change the colorscheme properly.
Are you able to fix that?
Thanks!

@asalois
Copy link
Contributor

asalois commented May 25, 2024

If you remove the alacritty.yml file from ~/.config/alacritty/ does Gogh still not set the theme?

@UltraBlackLinux
Copy link
Author

If you remove the alacritty.yml file from ~/.config/alacritty/ does Gogh still not set the theme?

I have already done so expecting that to be the issue, but no dice.

Here's the error I'm getting:

Could not find existing 'colors' settings in your alacritty.yml file
please make sure to uncomment
'colors', as well as 'primary', 'normal' and 'bright'
Check the example config at
https://github.com/alacritty/alacritty/releases/download/v0.12.2/alacritty.yml for more information
Note that alacritty following release 0.13.0 uses toml configuration.

@asalois
Copy link
Contributor

asalois commented May 28, 2024

Do you have section that looks like below in ~/.config/alacritty.toml ? I believe you will need to have the colors section in that file in order for Gogh to be able to update the colors.

[colors.primary]
background = "#15141b"
foreground = "#edecee"

[colors.cursor]
cursor = "#a277ff"

[colors.selection]
text = "CellForeground"
background = "#29263c"

[colors.normal]
black = "#110f18"
red = "#ff6767"
green = "#61ffca"
yellow = "#ffca85"
blue = "#a277ff"
magenta = "#a277ff"
cyan = "#61ffca"
white = "#edecee"

[colors.bright]
black = "#4d4d4d"
red = "#ff6767"
green = "#61ffca"
yellow = "#ffca85"
blue = "#a277ff"
magenta = "#a277ff"
cyan = "#61ffca"
white = "#edecee"

This came from https://github.com/alacritty/alacritty-theme/blob/master/themes/aura.toml BTW

@asalois
Copy link
Contributor

asalois commented May 28, 2024

You also may want to look at #304 and see if that helps too.

@UltraBlackLinux
Copy link
Author

UltraBlackLinux commented May 28, 2024

that worked, thank you so much!

Now I'm wondering - why does it check at all? If I want a theme I know that before I run gogh, I don't think gogh should that check itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants