All Projects → NearHuscarl → Termite Color Switcher

NearHuscarl / Termite Color Switcher

Licence: bsd-3-clause
termite color switcher

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Termite Color Switcher

Closestx11color
Find the closest xterm-256 colors (between 0 and 255) to an arbitrary HTML hexa color (e.g. #ABCDEF)
Stars: ✭ 13 (-53.57%)
Mutual labels:  terminal, color
Mordant
Full-featured text styling for Kotlin command-line applications
Stars: ✭ 382 (+1264.29%)
Mutual labels:  terminal, color
Hues
Colored terminal text made easy for Python and happiness.
Stars: ✭ 345 (+1132.14%)
Mutual labels:  terminal, color
Colorizeswift
Terminal string styling for Swift.
Stars: ✭ 253 (+803.57%)
Mutual labels:  terminal, color
Imgcat
It's like cat, but for images.
Stars: ✭ 577 (+1960.71%)
Mutual labels:  terminal, color
Nord Gnome Terminal
An arctic, north-bluish clean and elegant GNOME Terminal color theme.
Stars: ✭ 258 (+821.43%)
Mutual labels:  terminal, color
Nord Emacs
An arctic, north-bluish clean and elegant Emacs theme.
Stars: ✭ 379 (+1253.57%)
Mutual labels:  terminal, color
Nord Terminal App
An arctic, north-bluish clean and elegant Terminal.app color theme.
Stars: ✭ 198 (+607.14%)
Mutual labels:  terminal, color
Nord Tmux
An arctic, north-bluish clean and elegant tmux color theme.
Stars: ✭ 567 (+1925%)
Mutual labels:  terminal, color
Vivid
A themeable LS_COLORS generator with a rich filetype datebase
Stars: ✭ 535 (+1810.71%)
Mutual labels:  terminal, color
Nord Alacritty
An arctic, north-bluish clean and elegant Alacritty color scheme.
Stars: ✭ 238 (+750%)
Mutual labels:  terminal, color
Term
Unix terminal drain and formatter for slog-rs
Stars: ✭ 17 (-39.29%)
Mutual labels:  terminal, color
Php Console Spinner
Colorful highly configurable spinner for php cli applications (suitable for async apps)
Stars: ✭ 225 (+703.57%)
Mutual labels:  terminal, color
Chalk
🖍 Terminal string styling done right
Stars: ✭ 17,566 (+62635.71%)
Mutual labels:  terminal, color
Rainbow
🌈 Colorize commands output or STDIN using patterns.
Stars: ✭ 217 (+675%)
Mutual labels:  terminal, color
Colorls
A Ruby gem that beautifies the terminal's ls command, with color and font-awesome icons. 🎉
Stars: ✭ 3,896 (+13814.29%)
Mutual labels:  terminal, color
Box Cli Maker
Make Highly Customized Boxes for your CLI
Stars: ✭ 115 (+310.71%)
Mutual labels:  terminal, color
Sty
String styling for your terminal.
Stars: ✭ 129 (+360.71%)
Mutual labels:  terminal, color
Gradient String
🌈 Beautiful color gradients in terminal output
Stars: ✭ 476 (+1600%)
Mutual labels:  terminal, color
Pixterm
Draw images in your ANSI terminal with true color
Stars: ✭ 782 (+2692.86%)
Mutual labels:  terminal, color

Termite color switcher

Colorscheme switcher for termite terminal

Animated demonstration

Dependency

  • termite

Setup

Download

If you already have custom path in $PATH just copy the source file there

$ cd custom/path/in/$PATH
$ git clone https://github.com/NearHuscarl/termite-color-switcher
$ cp termite-color-switcher/bin/color color

If you dont have one yet, create a directory and add it to $PATH then copy the source file to the created path. In this example, the custom path will be ~/bin

$ mkdir ~/bin && cd $_
$ echo 'export PATH=$PATH:$HOME/bin' >> .bashrc # replace .bashrc with .zshrc if you use zsh
$ git clone https://github.com/NearHuscarl/termite-color-switcher
$ cp termite-color-switcher/bin/color color

Optional: Enable autocompletion for bash and zsh

For bash, source the completion file completion/bash on shell startup by adding one line in ~/.bashrc

$ mkdir ~/.bash_completion.d
$ cp termite-color-switcher/completion/bash ~/.bash_completion.d/termite-color-switcher.bash
$ echo 'source ~/.bash_completion.d/termite-color-switcher.bash' >> ~/.bashrc

For zsh, copy the completion file to one of the paths in $fpath, where the completion files will be sourced when invoke completion on the command at the first time

If you already have custom path in $fpath just copy the completion file there

$ echo $fpath
$ cd custom/path/in/$fpath
$ cp termite-color-switcher/completion/zsh termite-color-switcher.zsh

If you dont, add one to $fpath first, the rest should be similar as above

$ fpath=( ~/.zfunc "${fpath[@]}" )

Setup config

$ cd termite-color-switcher && ./setup.sh

This script split the termite config file ~/.config/termite/config into 2 new files

One is ~/.config/termite/option which will store all configuration except color (the [options] and [hints] section)

Another is ~/.config/termite/color/default which will store the [colors] section. The file name is the name of the colorscheme. In this case the current color in your config is the default colorscheme

Usage

$ color --help
color <colorscheme>
Commands:
  -h, --help                  print this help message
  -c, --cycle                 cycle through available colorschemes
  -C, --Cycle                 cycle backward
  -e, --edit [<colorscheme>]  edit <colorscheme> file using $EDITOR
                              default is current colorscheme
  -l, --list                  print all available colorschemes
  -r, --reload                reload current colorscheme
  -s, --switch <colorscheme>  switch to <colorscheme>
  <colorscheme>               same as above

List all available colorschemes:

$ color --list
flat
gotham
solarized

Cycle through colorscheme list:

$ color --cycle
Switch to colorscheme gotham
$ color --cycle
Switch to colorscheme solarized
$ color --cycle
Switch to colorscheme flat

Switch to a specified colorscheme:

$ color gotham # or $ color --switch gotham

Edit a colorscheme file:

$ color --edit solarized

Create new colorscheme:

terminal.sexy is a good site to create new colorscheme for various terminal (including termite)

License

BSD 3-Clause

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].