-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkitty.conf
81 lines (64 loc) · 2.27 KB
/
kitty.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# kitty config
# docs: https://sw.kovidgoyal.net/kitty/conf.html
font_family ComicCodeLigatures Nerd Font
bold_font ComicCodeLigatures Nerd Font
italic_font ComicCodeLigatures Nerd Font
bold_italic_font ComicCodeLigatures Nerd Font
# to setup a font for kitty: https://sw.kovidgoyal.net/kitty/faq/#kitty-is-not-able-to-use-my-favorite-font
# to test italics: echo -e "\e[3mfoo\e[23m"
font_size 12.0
adjust_line_height 97%
text_composition_strategy legacy
# return to old comp strat, can be customized: https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.text_composition_strategy
cursor_blink_interval 0
confirm_os_window_close 0
enable_audio_bell no
macos_option_as_alt left
# align fps with monitor refresh rate
# might cause flicker with high key repeat
sync_to_monitor no
# hide mouse after inactvity
mouse_hide_wait 1.0
# open url with $BROWSER after removing pluses (linebreaks in neomutt)
# ctrl+shift+o
open_url_with ~/scripts/open-in-browser-without-pluses
# color scheme
include colorscheme.conf
### keyboard shortcuts
# remove all shortcuts
clear_all_shortcuts yes
## clipboard
map ctrl+shift+c copy_to_clipboard
map ctrl+shift+v paste_from_clipboard
# on mac
map cmd+c copy_to_clipboard
map cmd+v paste_from_clipboard
## font size
map ctrl+shift+plus change_font_size all +1.0
map ctrl+shift+minus change_font_size all -1.0
## hints - do smt with text on screen
# examples: https://sw.kovidgoyal.net/kitty/conf.html#select-and-act-on-visible-text
# open url in browser
map ctrl+shift+o kitten hints
# open url in mpv
map ctrl+shift+p kitten hints --program open_clip_mpv
# insert url
map ctrl+shift+i>u kitten hints --program -
# insert word
map ctrl+shift+i>w kitten hints --type word --program -
# insert line
map ctrl+shift+i>l kitten hints --type line --program -
# insert path
map ctrl+shift+i>p kitten hints --type path --program -
# insert hash (git commit hash)
map ctrl+shift+i>h kitten hints --type hash --program -
# copy url to clip
map ctrl+shift+s>u kitten hints --program @
# copy word
map ctrl+shift+s>w kitten hints --type word --program @
# copy line
map ctrl+shift+s>l kitten hints --type line --program @
# copy path
map ctrl+shift+s>p kitten hints --type path --program @
# copy hash (git commit hash)
map ctrl+shift+s>h kitten hints --type hash --program @