0.3.3 • Published 7 years ago

teems-cli v0.3.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

teems-cli Build Status codecov

Switch terminal color schemes easily

Why

I have spent obscene amounts of time trying out different color themes for terminals and/or terminal neovim. To this day I haven't really found any program that let's me switch colorschemes on the fly, without having to maintain different configuration files. If I want to change keyboard shortcuts in alacritty I want to do so in one file, without having to propagate those changes to all my other config files (containing different colors) through Git cherrypicking for example. This library is like the third attempt and it seems the most promising so far.

Getting started

npm install --global teems-cli
cd ~/.config/teems
vim themes.json           # Modifiy/add themes
teems-cli [name of theme] # Activate theme

How it works

It looks for configuration files for each supported app. It reads each file and replaces color values with values from the theme you are activating. Before each operation, it performs a backup of all affected files.

An example theme file can be found in the install directory of teems, usually $HOME/.config/teems. Simply add more themes to the array and make sure that foreground, background and colors 0-15 are provided.

You can also add an entry "nvim": "dracula" (replace dracula with the neovim colorscheme you would like to activate). When you activate a theme with such an entry, teems-cli will look for your neovim configuration, find the line colorscheme [...] (stopping at comments) and then simply replace the colorscheme name with the name you set in themes.json (here dracula).

Roadmap

  • Add example themes.json file
  • Add custom locations through config file
  • Support more apps
    • URxvt
    • Gnome terminal
    • XFCE4-Terminal
    • nvim
  • Add support for RGBA (and possibly other) values
  • Add exact names of all supported apps to CLI, for special entries in themes.json

Supported apps

  • Alacritty
  • Termite
  • X (Xresources/Xdefaults)
  • nvim (neovim)

CLI

Usage
  teems-cli [string] When called with one or more options, no theme will be activated and [string] will be ignored.

Options
  -l, --list List all available themes
  -d, --dump Dump teems configuration variables

Help
  teems-cli --help
  Hit me up on twitter @AyanamiVey or write an issue on https://github.com/cideM/teems-cli

Example

teems-cli dracula

License

MIT © Florian Beeres

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago