ron_way

Crates.ioron_way
lib.rsron_way
version0.1.0
sourcesrc
created_at2024-09-13 20:15:07.828534
updated_at2024-09-13 20:15:07.828534
descriptionConvert Alacritty terminal themes in TOML format to RON format for use with Cosmic Terminal
homepage
repository
max_upload_size
id1374123
size12,604
Jason (SloKart)

documentation

README

Ron_Way

Ron_Way is a command-line tool designed to convert Alacritty terminal themes in TOML format to Cosmic Terminal themes in RON format. This is my first Rust project and I hope it helps others, even if it's janky as hell.

Features

  • TOML to RON Conversion: Easily convert Alacritty color schemes from TOML to RON format.
  • Dynamic Color Adjustment: Automatically generates dim color values based on the normal color values.

Installation

To install Ron_Way, clone this repository and build the project using Cargo.

git clone https://github.com/SloKart/Ron_Way.git
cd Ron_Way
cargo install --path .

Alternatively, you can build and install it locally without adding it to Cargo's global install path:

cargo build --release

Usage

Once installed, you can use Ron_Way from the command line to convert your theme files.

Ron_Way <input.toml> <output.ron>

Arguments

  • <input.toml>: Path to the input TOML file containing the Alacritty theme.
  • <output.ron>: Path to the output RON file where the converted Cosmic Terminal theme will be saved.

Example

Ron_Way ~/Downloads/gruvbox_light.toml ~/Downloads/gruvbox_light.ron

This command will read the gruvbox_light.toml file from the Downloads directory and output the converted RON file as gruvbox_light.ron in the same directory.

Configuration

Ron_Way will automatically extract the name for the theme from the input TOML file. If the name is not found, it defaults to using the file name (without extension) as the theme name.

Contributing

Feel free to open issues or submit pull requests if you have suggestions for improvements or encounter any bugs.

License

This project is licensed under the MIT License. See the LICENSE file for details.

.


Commit count: 0

cargo fmt