Kitty: Difference between revisions

From miki
Jump to navigation Jump to search
Line 30: Line 30:
<source lang="bash">
<source lang="bash">
# See kitty.conf help text or https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.text_composition_strategy on how to setup this variable
# See kitty.conf help text or https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.text_composition_strategy on how to setup this variable
# See also https://github.com/kovidgoyal/kitty/issues/6226
# See https://github.com/kovidgoyal/kitty/issues/6197
# See background tech details at: https://github.com/kovidgoyal/kitty/pull/5969
# See background tech details at: https://github.com/kovidgoyal/kitty/pull/5969
# This setting gives pixel identical rendering as gnome-terminator with light themes
text_composition_strategy 2.0 0
text_composition_strategy 1.6 0
</source>
</source>



Revision as of 13:26, 18 July 2023

A cross-platform, fast, feature-rich, GPU based terminal, with support for hyperlinks, image viewer.

References

Install / config

  • Setup terminfo
# SSH locally so that kitty will install terminfo file automatically (in ~/.terminfo/kitty.terminfo)
kitty +kitten ssh localhost

# Can also copy the file manually:
# See https://sw.kovidgoyal.net/kitty/kittens/ssh/#manual-terminfo-copy
infocmp -a xterm-kitty | ssh myserver tic -x -o \~/.terminfo /dev/stdin
  • Add xterm-kitty to ~/.dircolors.cfg
 TERM xterm-color
 TERM xterm-debian
+TERM xterm-kitty
 # Below are the color init strings for the basic file types. A color init
 # string consists of one or more of the following numeric codes:
  • Configure font thickness in white themes, .config/kitty/kitty.conf:
# See kitty.conf help text or https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.text_composition_strategy on how to setup this variable
# See https://github.com/kovidgoyal/kitty/issues/6197
# See background tech details at: https://github.com/kovidgoyal/kitty/pull/5969
# This setting gives pixel identical rendering as gnome-terminator with light themes
text_composition_strategy 1.6 0

Tips

Increase font size

Increasing the font size dynamically seems to require to enable remote control

kitty -c NONE -o font_size=12 -o allow_remote_control=yes # Or through config
kitty @ set-font-size -- +2