Kitty: Difference between revisions
Jump to navigation
Jump to search
Line 47: | Line 47: | ||
# map ctrl+shift+backspace change_font_size current 0 |
# map ctrl+shift+backspace change_font_size current 0 |
||
map ctrl+0 change_font_size current 0 |
map ctrl+0 change_font_size current 0 |
||
# Note: use ctrl-shift-r to resize the current window |
|||
</source> |
</source> |
||
Revision as of 13:59, 18 July 2023
A cross-platform, fast, feature-rich, GPU based terminal, with support for hyperlinks, image viewer.
References
Install / config
- See also Kitty FAQ
- 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
- Add font resize shortcut:
# See https://sw.kovidgoyal.net/kitty/conf/#conf-kitty-shortcuts-layout
# Resize fonts in current OS window
map ctrl+shift+equal change_font_size current +1.0
map ctrl+shift+plus change_font_size current +1.0
map ctrl+shift+kp_add change_font_size current +1.0
map ctrl+minus change_font_size current -1.0
map ctrl+shift+kp_subtract change_font_size current -1.0
# map ctrl+shift+backspace change_font_size current 0
map ctrl+0 change_font_size current 0
# Note: use ctrl-shift-r to resize the current window
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