39 lines
1.7 KiB
Plaintext
39 lines
1.7 KiB
Plaintext
include /home/joe/.config/kitty/theme.conf
|
|
|
|
font_size 14.0
|
|
|
|
allow_remote_control yes
|
|
single_instance yes
|
|
listen_on unix:/tmp/kitty
|
|
|
|
window_padding_width 5
|
|
tab_bar_style powerline
|
|
|
|
sync_to_monitor yes
|
|
input_delay 0
|
|
hide_window_decorations yes
|
|
|
|
map super+f pipe @ansi overlay /home/joe/bin/vim-ansi
|
|
map ctrl+shift+enter launch --cwd=current
|
|
map f5 load_config_file
|
|
|
|
enabled_layouts tall,stack,fat
|
|
|
|
map ctrl+shift+m toggle_layout stack
|
|
|
|
map ctrl+alt+h neighboring_window left
|
|
map ctrl+alt+j neighboring_window down
|
|
map ctrl+alt+k neighboring_window up
|
|
map ctrl+alt+l neighboring_window right
|
|
|
|
map shift+up move_window up
|
|
map shift+left move_window left
|
|
map shift+right move_window right
|
|
map shift+down move_window down
|
|
|
|
map f1 launch --type overlay --stdin-add-formatting --stdin-source=@screen_scrollback ~/.config/kitty/pager.sh
|
|
|
|
# scrollback_pager bash -c 'nvim </dev/null -u ~/.config/nvim/init-kitty.vim -c "map q :qa!<CR>" -c "autocmd TermOpen * normal G" -c "terminal cat /proc/$$/fd/0 -" -c "set clipboard+=unnamedplus" -c "call cursor(CURSOR_LINE, CURSOR_COLUMN)"'
|
|
# scrollback_pager nvim -u ~/.config/nvim/init-kitty.vim -c "map q :qa!<CR>" -c "set norelativenumber nonumber nolist showtabline=0 foldcolumn=0" -c "autocmd TermOpen * normal G" -c "silent! write /tmp/kitty_scrollback_buffer | te cat /tmp/kitty_scrollback_buffer - "
|
|
scrollback_pager bash -c "exec nvim 63<&0 0</dev/null -u NONE -c 'map <silent> q :qa!<CR>' -c 'set shell=bash scrollback=100000 termguicolors laststatus=0 clipboard+=unnamedplus' -c 'autocmd TermEnter * stopinsert' -c 'autocmd TermClose * call cursor(max([0,INPUT_LINE_NUMBER-1])+CURSOR_LINE, CURSOR_COLUMN)' -c 'terminal sed </dev/fd/63 -e \"s/'$'\x1b'']8;;file:[^\]*[\]//g\" && sleep 0.01 && printf \"'$'\x1b'']2;\"'"
|