All Projects → dylanaraps → Paleta

dylanaraps / Paleta

Licence: mit
Change terminal colors on-the-fly independent of terminal emulator.

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Paleta

Hyperterm Overlay
A complete and customizable solution for a overlay window in your Hyper.app
Stars: ✭ 127 (-6.62%)
Mutual labels:  terminal
Progressbar
A really basic thread-safe progress bar for Golang applications
Stars: ✭ 2,212 (+1526.47%)
Mutual labels:  terminal
Tunnel
Use Ngrok In Termux With Advanced Options
Stars: ✭ 133 (-2.21%)
Mutual labels:  terminal
Colorthief
Color Thief for .NET
Stars: ✭ 128 (-5.88%)
Mutual labels:  color-palette
Asciigraph
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.
Stars: ✭ 1,805 (+1227.21%)
Mutual labels:  terminal
Vtebench
Generate benchmarks for terminal emulators
Stars: ✭ 131 (-3.68%)
Mutual labels:  terminal
Desktoppr
Simple command line tool to set the desktop picture on macOS
Stars: ✭ 127 (-6.62%)
Mutual labels:  terminal
Programmer Calculator
Terminal calculator made for programmers working with multiple number representations, sizes, and overall close to the bits
Stars: ✭ 135 (-0.74%)
Mutual labels:  terminal
Web Bluetooth Terminal
Progressive Web Application for serial communication with your own Bluetooth Low Energy (Smart) devices
Stars: ✭ 130 (-4.41%)
Mutual labels:  terminal
Rust Battop
Interactive batteries viewer
Stars: ✭ 133 (-2.21%)
Mutual labels:  terminal
Panda Motd
a utility for generating a more useful MOTD
Stars: ✭ 129 (-5.15%)
Mutual labels:  terminal
Ansiweather
Weather in terminal, with ANSI colors and Unicode symbols
Stars: ✭ 1,663 (+1122.79%)
Mutual labels:  terminal
Terminal App
🧛🏻‍♂️ Dark theme for Terminal.app
Stars: ✭ 131 (-3.68%)
Mutual labels:  terminal
Neix
neix - a RSS/Atom feed reader for your terminal.
Stars: ✭ 128 (-5.88%)
Mutual labels:  terminal
Lazyhub
lazyhub - Terminal UI Client for GitHub using gocui.
Stars: ✭ 133 (-2.21%)
Mutual labels:  terminal
Pyxtermjs
A fully functional terminal in your browser.
Stars: ✭ 127 (-6.62%)
Mutual labels:  terminal
Quickwall
Set latest wallpapers from Unsplash from the commandline
Stars: ✭ 131 (-3.68%)
Mutual labels:  terminal
Build
Netlify Build runs the build command, Build Plugins and bundles Netlify Functions.
Stars: ✭ 135 (-0.74%)
Mutual labels:  terminal
Atom Terminal Tab
Simple terminal for the Atom text editor.
Stars: ✭ 134 (-1.47%)
Mutual labels:  terminal
Elixir Oh My Zsh
Oh My Zsh plugin for Elixir, IEX, Mix and Phoenix
Stars: ✭ 131 (-3.68%)
Mutual labels:  terminal

paleta


Change terminal colors on-the-fly independent of terminal emulator.

Most terminal emulators support a set of escape sequences which allow for the modification of the terminal's color palette. Combined with the ability to write to all open terminal devices, this allows for theming in a truly independent way.

Paleta reads a list of colors over , transforms the input into the set of escape sequences and sends these sequences to every open terminal in the system. It additionally prints the sequences to .

+------------------------------------------------------------------------------+ | | | $ paleta < palettes/jellybeans-dark > ~/.cache/current-palette | | | +------------------------------------------------------------------------------+

This tool is small and generic. It reads input and writes output. Effortless to incorporate with the system. This repository also contains 150~ popular palettes ready for use with paleta.

terminal support


+------------------------------------------------------------------------------+ | | | this list is not complete | | | | | | alacritty good https://github.com/alacritty/alacritty/issues/656 | | kitty good | | vte [0] good 1a651cf990e67c4046fbff7674249259bcaa89a8 | | xterm good | | urxvt good | | | | st patch ./misc/st-osc_10_11_12-20200418-66520e1.patch | | | | hyper clueless https://github.com/vercel/hyper/issues/2038 | | | | | +------------------------------------------------------------------------------+

[0] vte includes Termite, XFCE terminal, GNOME terminal, Konsole and many more.

dependencies


  • POSIX <stdio.h> <stdlib.h> <glob.h>
  • C99 compiler

build


See src/config.h for configuration.

+------------------------------------------------------------------------------+ | | | Using make (recommended) | | | | $ make | | $ make install | | | | | | Invoking the compiler directly | | | | $ c99 $CFLAGS -o paleta src/paleta.c | | | | | +------------------------------------------------------------------------------+

usage


+------------------------------------------------------------------------------+ | | | 1. Set the colorscheme to jellybeans-dark in all open terminals. | | | | $ paleta < palettes/jellybeans-dark > ~/.cache/current-palette | | | +------------------------------------------------------------------------------+

Saving paleta's to a file is how the current palette is stored. This file is used to set the palette in newly opened terminals. Scripts might instead store this in a variable or ignore it entirely as they maintain state.

setup


This line must be added to $SHELL's startup file. It tells future terminals to load the current palette at launch.

+------------------------------------------------------------------------------+ | | | $ echo 'cat ~/.cache/current-palette' >> ~/.bashrc | | | +------------------------------------------------------------------------------+

input format


Input is one hex color per line, without #. The first three lines are reserved for , and with the remaining lines filling the numerical palette (0-256).

Example: https://github.com/dylanaraps/paleta/blob/master/palettes/gruvbox-dark

+------------------------------------------------------------------------------+ | format | example | +-------------------------------------+----------------------------------------+ | | | | | dedede | | | 121212 | | | dedede | | | 929292 | | | e27373 | | | 94b979 | | | | | ... | ,,, | | | | | | 1ab2a8 | | | | | | | +-------------------------------------+----------------------------------------+

The maximum palette is (3 + 256). This is configurable at compile-time.

software written around paleta


todo


  • [ ] Find good 256 color palettes to include. All are currently 16 colors. 256 color palettes added to this repository should contain -256 in their filenames.
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].