blob: bab6f8c957689f136a5327f820215b5a78617fd5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
Schemer2
=========
## Screenshots


[More Screenshots](http://imgur.com/a/Kz9Av)
## Installation
### Short version
If you already have Go installed and configured:
> go get github.com/thefryscorer/schemer2
### Less Short Version
This method doesn't require a GOPATH, but it is recommended that you configure one.
- Install Go
- Clone this repository
- Run 'go build' inside directory with main.go file to build binary
- Run newly created binary from the command line
### 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 schemer
You should now be able to install schemer using the command:
> go get github.com/thefryscorer/schemer2
And it will be built in your GOPATH directory, in a subdirectory named 'bin'. To run it, you can either add $GOPATH/bin to your system path and run it as you would any other command. Or cd into the bin directory and run it with:
> ./schemer2
## Usage
#### Reading from terminal config and outputting to image
> schemer2 -format xterm::img -in .Xresources -out image.png
#### Reading from that image and outputting terminal config (lilyterm)
> schemer2 -format img::lilyterm -in image.png
#### Reading from Xresources and outputting in termite format
> schemer2 -format xterm::termite -in .Xresources
#### Getting colors from image, and outputting a new image
> schemer2 -format img::img -in image.png -out new.png
## Features
- Reads configuration for several different terminals
- Outputs configuration in several different formats for different terminals.
- Can output colors as a generated image/wallpaper either random or customized
- Configurable color difference threshold
- Configurable minimum and maximum brightness value
## Supported input formats
- Images (png, jpeg)
- Xfce4 terminalrc
- Lilyterm config
- Terminator config
- Termite config
- Xterm/URXvt and variants
## Supported output formats
- Images (png)
- Colors in plain text
- Konsole
- xterm/rxvt/aterm
- urxvt
- iTerm2
- XFCE Terminal
- Roxterm
- LilyTerm
- Terminator
- Chrome Shell
- OS X Terminal
- Gnome Terminal (dconf only for now)
|