iTerm2 Theme Generator
This theme generator will produce a color set for iTerm2 from an image.
Check out the gallery
Installation
From pip:
$pip install --upgrade iterm-theme-generator
Usage
To generate a color set from an image:
$ iterm_theme_generator <path-to-image> --parent <your-profile>
This will generate colors and create iTerm2 profile in its DynamicProfiles directory. This theme profile will inherit profile you mention with –parent option. Go to the profiles tab and select this new profile as default and restart iTerm. Now, when you change theme again iTerm will load it dynamically, so no need to restart again.
Options:
usage: iTerm2 Theme Generator [-h] [--parent PROFILE] [--out FILE]
[--tiled TILED] [--blend BLEND]
[--transparency VALUE] [--contrast CONTRAST]
[--saturation-min MIN] [--saturation-max MAX]
[--brightness-min MIN] [--brightness-max MAX]
[--rotate TIMES] [--inverted] [--reversed]
[--no-background]
IMAGE
Generate iTerm2 color scheme based on an image
positional arguments:
IMAGE Image to process
optional arguments:
-h, --help show this help message and exit
--parent PROFILE Profile this theme will inherit. Default:
'Default.Profile'
--out FILE Output file. Default:
/Users/m4yers/Library/Application
Support/iTerm2/DynamicProfiles/theme.json
--tiled TILED Tile the image. Default: False
--blend BLEND Blend(0.0-1.0). Default: 0.10
--transparency VALUE Transparency(0.0-1.0). Default: 0.0
--contrast CONTRAST Contrast(0.0-1.0). Default: 0.0
--saturation-min MIN Minimal saturation(0.0-1.0). Default: 0.0
--saturation-max MAX Maximal saturation(0.0-1.0). Default: 1.0
--brightness-min MIN Minimal brightness(0.0-1.0). Default: 0.0
--brightness-max MAX Maximal brightness(0.0-1.0). Default: 1.0
--rotate TIMES Rotate colors order N times(0-7). Default: 0
--inverted Invert colors. Default: No
--reversed Reverse colors order. Default: No
--no-background Disable background image. Useful if using
transparency.
Features
Some iTerm features are exposed through the generator such as tiling, blending, contrast.
The generator provides rudimentary color control, including:
saturation min/max bound
brightness min/max bound
rotation and reversion of the generated color set
color inversion
Using these features will allow you to capture an awesome color set that will fit your background image neatly.
Thanks To
radiosilence for the original script
metakirby5 for colorz util
Links
Metadata
Release files for iterm-theme-generator 0.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iterm-theme-generator-0.3.8.tar.gz | 5.5 kB | Without provenance | Details for iterm-theme-generator-0.3.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| iterm_theme_generator-0.3.8-py3-none-any.whl | Python 3 | none | any | Details for iterm_theme_generator-0.3.8-py3-none-any.whl |
Total release size: 14.4 kB
Release files / iterm-theme-generator-0.3.8.tar.gz
| Download URL | iterm-theme-generator-0.3.8.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82ee2cd512ca04064b475c9a17fa265ee3ff17fa5e105b634ad2f5467b691082
|
|
BLAKE2b-256 checksum How to use checksums |
78d2f4a7ac095258730cbc878a167947d6590520de084b0f44ff3be6415e625d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / iterm_theme_generator-0.3.8-py3-none-any.whl
| Download URL | iterm_theme_generator-0.3.8-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3311137d54d33f0470832cdc94b66a64dd6268a5c8c7968cb3d2ac6370dcc569
|
|
BLAKE2b-256 checksum How to use checksums |
0fa017903977eeb4107fe311e6e85c34aec606a308e48cd8b1f9e00e8804c256
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for iterm-theme-generator 0.3.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.