Giter Site home page Giter Site logo

colorscheme-sync's Introduction

Colorscheme

Dead simple tool to sync colorschemes across alacritty, tmux and astronvim.

Warning

UNDER ACTIVE DEVELOPMENT, NOT YET PUBLISHED

Installation

  cargo install colorscheme

Via homebrew:

  brew tap rawnly/tap
  brew installl colorscheme

Usage

Usage: colorscheme [THEME] <COMMAND>

Commands:
  list  List available themes
  new   Generates template code for a new theme
  set   Sets the current theme
  help  Print this message or the help of the given subcommand(s)

Arguments:
  [THEME]  name of the theme

Options:
  -h, --help     Print help information
  -V, --version  Print version information

Alacritty Setup

To get started make sure to have the import keyword defined inside your alacritty.yml

import:
  # your imports here.
  # it can be empty
  - path/to/theme.yml

NOTE: colorscheme replaces the last import with the path to the new theme

Tmux Setup

Paste the following snippet somewhere inside your .tmux.conf

# <THEME
{{YOUR_THEME_IMPORT_OR_TPM_PLUGIN_HERE}}
# THEME>
Example
# <THEME
source ~/.tmux/themes/tokyonight/moon.tmux
# THEME>

run '~/.tmux/plugins/tpm/tpm'

Add a new theme

Once you run colorscheme for the first time, it will initialize a configuration file inside $XDG_CONFIG_HOME/.config/colorscheme/colorscheme.json Run colorscheme new <theme-name> to add a template entry to it. This will add the following to the config file:

  {
    "name": "<theme-name>",
    "config": {
      // name of the astronvim theme
      "astronvim": null,
      // path to the alacritty theme
      "alacritty": null,

      // tmux configuration (default is null)
      "tmux": {
        "path": "path to the tmux theme",
        "is_plugin": false,
        // use with `is_plugin: true` to pass options to the TPM plugin
        "options": []
      }
    }
  }

colorscheme-sync's People

Contributors

rawnly avatar

Stargazers

 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.