Skip to content

thefryscorer/schemer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 

Repository files navigation

Terminal Colorscheme Generator

Please note:

If you have no strong reason to use this version specifically, please instead use schemer2. It has many more features, and a smarter interface. Any new features added will be added to schemer2.

The reason schemer2 is a separate project is to support the AUR package (Now removed), and not break the existing workflow of anybody who has incorporated schemer into scripts or other programs. Additionally, schemer2 does not feature the SDL rendered preview.

Screenshot

Screenshot

Installation

Short version

go get github.com/thefryscorer/schemer

Long Version

Installing and configuring Go

To build this program, you will need to have Go installed and properly configured. After installing the Go package, you will need to configure a GOPATH. This is a directory in which Go will keep its programs and source files. I recommend making the GOPATH directory in your home folder. If your GOPATH is in your root directory a kitten will die.

mkdir ~/Go

You will also need to set the GOPATH variable so that Go knows where to put things. You can do this by running:

export GOPATH=$HOME/Go

NOTE: You don't need to (and shouldn't) set the $GOROOT variable. This is handled for you and you shouldn't mess with it.

Installing SDL1.2

This program also makes use of SDL1.2 for the color preview window (which you can use by adding the "-d" flag in schemer). As such, SDL1.2 will need to be installed on your system for you to build and run schemer.

To install SDL1.2 in ArchLinux:

sudo pacman -S sdl sdl_image sdl_ttf sdl_mixer

To install SDL1.2 in Mac OS:

brew install sdl sdl_image sdl_ttf sdl_mixer

If you haven't installed HomeBrew, you can find it at http://brew.sh

To install SDL1.2 on another system:

Learn how to use Google and your package manager. Both are very useful.

Installing schemer

You should now be able to install schemer using the command:

go get github.com/thefryscorer/schemer

And it will be built in your GOPATH directory, in a subdirectory named 'bin'. To run it, you can either add $HOME/Go/bin to your system path and run it as you would any other command. Or cd into the bin directory and run it with:

./schemer

Usage

schemer -term="xfce" Image.png

Then copy the generated config lines into your terminal config file.

Features

  • Outputs configuration in several different formats for different terminals.
  • Configurable color difference threshold
  • Configurable minimum and maximum brightness value
  • Can preview colorscheme in SDL window

Supported output formats

  • Colours in just plain text (default)
  • Konsole
  • xterm/rxvt/aterm
  • urxvt
  • iTerm2
  • XFCE Terminal
  • Roxterm
  • LilyTerm
  • Terminator
  • Chrome Shell
  • OS X Terminal

About

Generates terminal colours from images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages