Skip to content
Change terminal colors on the fly.
Shell Roff Makefile
Branch: master
Clone or download
Latest commit f6a4691 Nov 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml travis: fix lint Nov 24, 2019
LICENSE.md docs: update Jun 11, 2019
Makefile pal: rename to paleta. Closes #1 Nov 10, 2019
README.md pal: rename to paleta. Closes #1 Nov 10, 2019
paleta pal: rename to paleta. Closes #1 Nov 10, 2019
paleta.1 pal: rename to paleta. Closes #1 Nov 10, 2019

README.md

paleta

Change terminal colors on the fly.

A list of hex colors are supplied via command-line arguments, stdin or a file and paleta sends these colors to all open terminals, modifying their palette. The purpose of this tool is to allow theme managers and individual scripts to effortlessly modify the current color-scheme without needing a reload of running terminals.

Installation

  • Add paleta to your path.

Full Installation.

  1. Download paleta.
  2. Change working directory to paleta.
    • cd paleta
  3. Run make install inside the script directory to install the script.
    • NOTE: You may have to run this as root.

NOTE: paleta can be uninstalled easily using make uninstall. This removes all of files from your system.

Usage

paleta takes 16 colors as input. Color 0 is assumed to be the background color and color 15 is assumed to be the foreground color. When less than 16 colors are supplied, paleta repeats the last color till 16.

NOTE: The input colors can optionally contain #, it doesn't matter.

# ARGUMENTS

# arguments
paleta 1f221f a0ab9e b6bfb4 67a96c 90a992 79a985 47a961 c7c7c7 575957 a0ab9e b6bfb4 67a96c 90a992 79a985 47a961 c7c7c7

# arguments (string)
paleta "1f221f a0ab9e b6bfb4 67a96c 90a992 79a985 47a961 c7c7c7 575957 a0ab9e b6bfb4 67a96c 90a992 79a985 47a961 c7c7c7"

# arguments (file)
# Colors inside of a file can be separated by either new-lines or spaces.
paleta file


# STDIN

# stdin
echo 1f221f a0ab9e b6bfb4 67a96c 90a992 79a985 47a961 c7c7c7 575957 a0ab9e b6bfb4 67a96c 90a992 79a985 47a961 c7c7c7 | paleta

# stdin (file)
# Colors inside of a file can be separated by either new-lines or spaces.
paleta < file

# stdin (string)
paleta <<< "1f221f a0ab9e b6bfb4 67a96c 90a992 79a985 47a961 c7c7c7 575957 a0ab9e b6bfb4 67a96c 90a992 79a985 47a961 c7c7c7"


# EXTRA

# Two tone palette.
# Color 0 is black and colors 1-15 are white.
paleta "000000" "FFFFFF"

Applying colors to newly opened terminals.

Add the following line to your shell configuration file.

# Inside .bashrc, .zshrc, .profile or equivalent.
(paleta -r &)

# Faster more verbose method (bash only).
{ read -r < ~/.cache/paleta/colors; printf %b "$REPLY"; } & disown
You can’t perform that action at this time.