Skip to content

Latest commit

 

History

History
148 lines (146 loc) · 6.78 KB

kitty-config.md

File metadata and controls

148 lines (146 loc) · 6.78 KB

KiTTY configuration

kitty.ini

Here we override wrong or missing key sequences sent to the server by utilizing KiTTY's extra functoinality of user-bindable key actions. These also override standard built-in functions of the program (priority is: user shortcut > terminfo definition > built-in function). Only necessary keys are specified.
\x1b is hex for escape sequence (most commonly \E or \e in linux configuration files). All key sequence definitions must end with \.
Place the following block at the end of your kitty.ini file. This sets up proper key sequences to be sent to the server and cleans up messy key sequences by unbinding them. Make sure there are no extra whitespaces present (especially at the end of list argument), as they will be interpreted as part of the key sequence. This part is necessary for modifiers with function keys to work properly.
If you don't know what you're looking at, copy it as-is.

[Shortcuts]
list={SHIFT}{ALT}{UP} {SHIFT}{ALT}{DOWN} {SHIFT}{ALT}{RIGHT} {SHIFT}{ALT}{LEFT} {CONTROL}{ALT}{UP} {CONTROL}{ALT}{DOWN} {CONTROL}{ALT}{RIGHT} {CONTROL}{ALT}{LEFT} {SHIFT}{CONTROL}{ALT}{UP} {SHIFT}{CONTROL}{ALT}{DOWN} {SHIFT}{CONTROL}{ALT}{RIGHT} {SHIFT}{CONTROL}{ALT}{LEFT} {ALT}{INS} {SHIFT}{ALT}{INS} {CONTROL}{INS} {SHIFT}{CONTROL}{INS} {ALT}{CONTROL}{INS} {SHIFT}{ALT}{CONTROL}{INS} {SHIFT}{DEL} {ALT}{DEL} {SHIFT}{ALT}{DEL} {CONTROL}{DEL} {SHIFT}{CONTROL}{DEL} {SHIFT}{ALT}{CONTROL}{DEL} {SHIFT}{HOME} {ALT}{HOME} {SHIFT}{ALT}{HOME} {CONTROL}{HOME} {SHIFT}{CONTROL}{HOME} {ALT}{CONTROL}{HOME} {SHIFT}{ALT}{CONTROL}{HOME} {SHIFT}{END} {ALT}{END} {SHIFT}{ALT}{END} {CONTROL}{END} {SHIFT}{CONTROL}{END} {ALT}{CONTROL}{END} {SHIFT}{ALT}{CONTROL}{END} {ALT}{PRIOR} {SHIFT}{ALT}{PRIOR} {CONTROL}{PRIOR} {SHIFT}{CONTROL}{PRIOR} {ALT}{CONTROL}{PRIOR} {SHIFT}{ALT}{CONTROL}{PRIOR} {ALT}{NEXT} {SHIFT}{ALT}{NEXT} {CONTROL}{NEXT} {SHIFT}{CONTROL}{NEXT} {ALT}{CONTROL}{NEXT} {SHIFT}{ALT}{CONTROL}{NEXT} {SHIFT}{F1} {ALT}{F1} {SHIFT}{ALT}{F1} {CONTROL}{F1} {SHIFT}{CONTROL}{F1} {ALT}{CONTROL}{F1} {SHIFT}{ALT}{CONTROL}{F1} {SHIFT}{F2} {ALT}{F2} {SHIFT}{ALT}{F2} {CONTROL}{F2} {SHIFT}{CONTROL}{F2} {ALT}{CONTROL}{F2} {SHIFT}{ALT}{CONTROL}{F2} {SHIFT}{F3} {ALT}{F3} {SHIFT}{ALT}{F3} {CONTROL}{F3} {SHIFT}{CONTROL}{F3} {ALT}{CONTROL}{F3} {SHIFT}{ALT}{CONTROL}{F3} {SHIFT}{F4} {SHIFT}{ALT}{F4} {CONTROL}{F4} {SHIFT}{CONTROL}{F4} {ALT}{CONTROL}{F4} {SHIFT}{ALT}{CONTROL}{F4} {SHIFT}{F5} {ALT}{F5} {SHIFT}{ALT}{F5} {CONTROL}{F5} {SHIFT}{CONTROL}{F5} {ALT}{CONTROL}{F5} {SHIFT}{ALT}{CONTROL}{F5} {ALT}{F6} {SHIFT}{ALT}{F6} {CONTROL}{F6} {SHIFT}{CONTROL}{F6} {ALT}{CONTROL}{F6} {SHIFT}{ALT}{CONTROL}{F6} {SHIFT}{F7} {ALT}{F7} {SHIFT}{ALT}{F7} {CONTROL}{F7} {SHIFT}{CONTROL}{F7} {ALT}{CONTROL}{F7} {SHIFT}{ALT}{CONTROL}{F7} {ALT}{F8} {SHIFT}{ALT}{F8} {CONTROL}{F8} {SHIFT}{CONTROL}{F8} {ALT}{CONTROL}{F8} {SHIFT}{ALT}{CONTROL}{F8} {SHIFT}{F9} {ALT}{F9} {SHIFT}{ALT}{F9} {CONTROL}{F9} {SHIFT}{CONTROL}{F9} {ALT}{CONTROL}{F9} {SHIFT}{ALT}{CONTROL}{F9} {SHIFT}{F10} {ALT}{F10} {SHIFT}{ALT}{F10} {CONTROL}{F10} {SHIFT}{CONTROL}{F10} {ALT}{CONTROL}{F10} {SHIFT}{ALT}{CONTROL}{F10} {SHIFT}{F11} {ALT}{F11} {SHIFT}{ALT}{F11} {CONTROL}{F11} {SHIFT}{CONTROL}{F11} {ALT}{CONTROL}{F11} {SHIFT}{ALT}{CONTROL}{F11} {SHIFT}{F12} {ALT}{F12} {SHIFT}{ALT}{F12} {CONTROL}{F12} {SHIFT}{CONTROL}{F12} {ALT}{CONTROL}{F12} {SHIFT}{ALT}{CONTROL}{F12}
{SHIFT}{ALT}{UP}=\x1b[1;4A\
{SHIFT}{ALT}{DOWN}=\x1b[1;4B\
{SHIFT}{ALT}{RIGHT}=\x1b[1;4C\
{SHIFT}{ALT}{LEFT}=\x1b[1;4D\
{CONTROL}{ALT}{UP}=\x1b[1;7A\
{CONTROL}{ALT}{DOWN}=\x1b[1;7B\
{CONTROL}{ALT}{RIGHT}=\x1b[1;7C\
{CONTROL}{ALT}{LEFT}=\x1b[1;7D\
{SHIFT}{CONTROL}{ALT}{UP}=\x1b[1;8A\
{SHIFT}{CONTROL}{ALT}{DOWN}=\x1b[1;8B\
{SHIFT}{CONTROL}{ALT}{RIGHT}=\x1b[1;8C\
{SHIFT}{CONTROL}{ALT}{LEFT}=\x1b[1;8D\
{ALT}{INS}=\x1b[2;3~\
{SHIFT}{ALT}{INS}=\x1b[2;4~\
{CONTROL}{INS}=\x1b[2;5~\
{SHIFT}{CONTROL}{INS}=\x1b[2;6~\
{ALT}{CONTROL}{INS}=\x1b[2;7~\
{SHIFT}{ALT}{CONTROL}{INS}=\x1b[2;8~\
{SHIFT}{DEL}=\x1b[3;2~\
{ALT}{DEL}=\x1b[3;3~\
{SHIFT}{ALT}{DEL}=\x1b[3;4~\
{CON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{ALT}{F11}=\
{SHIFT}{ALT}{F11}=\
{CONTROL}{F11}=\
{SHIFT}{CONTROL}{F11}=\
{ALT}{CONTROL}{F11}=\
{SHIFT}{ALT}{CONTROL}{F11}=\
{SHIFT}{F12}=\
{ALT}{F12}=\
{SHIFT}{ALT}{F12}=\
{CONTROL}{F12}=\
{SHIFT}{CONTROL}{F12}=\
{ALT}{CONTROL}{F12}=\
{SHIFT}{ALT}{CONTROL}{F12}=\

Session settings

Start KiTTY, make sure to set correct terminal-type string, found in Connection -> Data -> Terminal-type string: xterm-kitty-256color
Other optional settings include:
Terminal -> Enable blinking text: on
Terminal -> Features -> Disable xterm-style mouse reporting: on