https://github.com/rawnly/colorscheme-sync
keep your ide / terminal / multiplexer themes in sync
https://github.com/rawnly/colorscheme-sync
alacritty astronvim neovim tmux
Last synced: 7 months ago
JSON representation
keep your ide / terminal / multiplexer themes in sync
- Host: GitHub
- URL: https://github.com/rawnly/colorscheme-sync
- Owner: rawnly
- Created: 2022-12-19T12:53:09.000Z (over 3 years ago)
- Default Branch: develop
- Last Pushed: 2023-02-04T00:18:13.000Z (over 3 years ago)
- Last Synced: 2024-12-28T09:43:26.683Z (over 1 year ago)
- Topics: alacritty, astronvim, neovim, tmux
- Language: Rust
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Colorscheme
Dead simple tool to sync colorschemes across alacritty, tmux and astronvim.
> **Warning**
>
> UNDER ACTIVE DEVELOPMENT, NOT YET PUBLISHED
## Installation
```sh
cargo install colorscheme
```
Via homebrew:
```sh
brew tap rawnly/tap
brew installl colorscheme
```
## Usage
```
Usage: colorscheme [THEME]
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`
```yaml
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`
```sh
#
```
##### Example
```sh
#
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 ` to add a template entry to it.
This will add the following to the config file:
```jsonc
{
"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": []
}
}
}
```