tinted-theming / tinty

A base16 and base24 color scheme manager
MIT License
43 stars 5 forks source link

Is there a option to change the name of the generated file? #1

Closed italovieira closed 7 months ago

italovieira commented 7 months ago

In flavours, you can set the file that will be generated by setting the file option.

[[item]]
file = "~/.config/alacritty/colors.toml"
template = "alacritty"

Is there a equivalent option in tinty?

JamyGolden commented 7 months ago

It looks like I haven't set up notifications for issues yet :sweat_smile: I'll do that now.

This is how you could replicate what you have with flavours at the moment:

[[items]]
path = "https://github.com/aarowill/base16-alacritty"
name = "base16-alacritty"
hook = "cp -f %f ~/.config/alacritty/colors.toml"
themes-dir = "colors"

Here the hook copies the generated theme from the data directory (using the %f template variable) and places it in the desired directory.

Can you try it out and let me know if you manage to get it behaving correctly?

italovieira commented 7 months ago

Can you try it out and let me know if you manage to get it behaving correctly?

That worked. Thank you! Now I can migrate to tinty 😅

JamyGolden commented 7 months ago

I'm glad that worked!

It's becoming quite stable now, but I've just pushed a breaking change renaming the subcommands setup to install and set to apply. tinty setup -> tinty install tinty set base16-mocha -> tinty apply base16-mocha

I think it's more descriptive and apply puts it more in line with how flavours worked. Letting you know since you're currently the only tinty user I'm aware of right now and changing set to apply is a change you'll probably notice :sweat_smile: