Giter Club home page Giter Club logo

color4tilix's Introduction

Color4Tilix

This is a library to convert existing terminal color schemes in Tilix compatibly color schemes.

How

Tilix uses json in to save color schemes. This library provides a struct TilixColor which is responsible to the translation.

The library also provides an interface, Paletter, to allow the creation of parsers. Parses will used by NewTilixColor function which is in charge to provide a correct TilixColor struct.

Generally a conversion process uses a list of input files, an output directory where to save results and a set of instruction to translate input files to output ones. For this reason the library provides CreateBatch function which given a FncTransformer transform function, translates files for Tilix color schemes.

Example

The library provides a parser (itermcolors_parser.go) in order to translate iTerm color schemes in Tilix color schemes.

The CLI tool (convert.go) provided by the library allow you to convert Iterm color schemes and can be used as an example to create your own color scheme translator.

To get cli tool for conver .itermcolors schema file into Tilix color scheme, install the tool using:

go get -u github.com/tux-eithel/color4tilix/...

download the iTerm2 schemes from here https://iterm2colorschemes.com/ and then run iterm2tilix -d dir_with_itermcolors_files (they are inside schemes folder).

Download

You can find inside release Tilix color schemes translated starting from Iterm2-color-schemes.

After the download, copy the json files inside ~/.config/tilix/schemes directory.

How to transform *term* color schemes into Tilix color schemes

If you'd like to transform another terminal schemes into Tilix color schemes, (and you're fine with CreateBatch workflow) you should do:

  • define a new struct which implements Paletter interface
  • provide a compatible FncTransformer function to transform input files
  • use the (convert.go) as base

color4tilix's People

Contributors

tux-eithel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.