Gogh icon indicating copy to clipboard operation
Gogh copied to clipboard

Alacritty: Switch to toml config

Open UltraBlackLinux opened this issue 1 year ago • 6 comments

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!

UltraBlackLinux avatar Jan 07 '24 19:01 UltraBlackLinux

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

asalois avatar May 25 '24 18:05 asalois

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.

UltraBlackLinux avatar May 25 '24 19:05 UltraBlackLinux

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 avatar May 28 '24 02:05 asalois

You also may want to look at https://github.com/Gogh-Co/Gogh/issues/304 and see if that helps too.

asalois avatar May 28 '24 02:05 asalois

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.

UltraBlackLinux avatar May 28 '24 05:05 UltraBlackLinux

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.

+1. Really confused too. For example I am setting up my xubuntu, and alacritty on it ( I have no previous config), but it wanted me to fill these values. Which I thought was pretty bizarre. Maybe intentional.

Lauel09 avatar Aug 12 '24 17:08 Lauel09