Getting Started
First you will need to install the tattoy
binary. Instructions for your operating system and distro should be on the downloads page.
Requirements
- The only hard requirement is a terminal that supports true color (and has it enabled), which most modern terminal emulators do. For an in-depth overview of the technical aspects of terminal true color and for a list of terminals that support it, see: https://github.com/termstandard/colors.
- For shader support you will also need a GPU, which almost all modern machines have, even if it's just an integrated one. Most Tattoy features still work without a GPU.
Palette Parsing
In order for Tattoy to be able to composite the colours of your terminal's palette theme it will need to associate the palette index values (0-255) with actual true color RGB values. This usually happens automatically without any user interaction. However some terminal emulators don't support this. It's not just older terminals that suffer from this but multiplexors like tmux
too. On failure, Tattoy will offer to parse your palette via a screenshot. But before that it may also be worth re-running Tattoy in a modern terminal without any multiplexors. Once the palette is parsed you can always return to your preferred terminal and multiplexor and Tattoy should work normally.
If you would rather provide your own screenshot then you can take a screenshot yourselfg and provide the file with the argument tattoy --parse-palette <path/to/file>
.
You can always re-capture your terminal's palette at any time with tattoy --capture-palette
. It will always try the automatic method first and then fallback to the screenshot method.
Starting Tattoy
Simply run tattoy
from the CLI.
Tattoy uses your current theme, shell and prompt, so it's not always visually obvious that Tattoy has successfully started. The default configuration has the following notable features:
- The Blue Indicator: This is a small, blue, UTF8 half-block "pixel" located in the very top-right of your terminal. Tattoy goes to great lengths to ensure that it always cleans up the screen whether it exits successfully or not. Therefore the presence of the blue indicator should be a reliable cue to show that Tattoy is running. Note that it is possible to disable the indicator in the config file.
- Scrollbar: Tattoy has a transparent scrollbar on the right hand side that appears when you scroll your terminal (
ALT+s
or mouse scrollwheel) whilst it has scrollback contents (therefore it doesn't appear when scrolling a fresh terminal instance).
Common Keybindings
ALT+t
: Toggle Tattoy's renderer. This returns your terminal back to its normal state without exiting Tattoy itself.ALT+s
: Start scrolling.ALT+9
/ALT+0
: Cycle back and forth through shaders in the same directory as the current shader.
Tips
- If you use
is_vim
intmux
, it is better to use atmux set-option -p @is_vim yes
approach to detect when atmux
pane is running (n)vim. See this comment for inspiration.