-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkitty.conf
executable file
·364 lines (356 loc) · 15.4 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
# kitty Konfiguration: kitty.conf
# echo $KITTY_CONFIG_DIRECTORY = /share/kitty
# ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# `7MM db mm mm
# MM MM MM
# MM ,MP`7MM mmMMmm mmMMmm `7M' `MF'
# MM ;Y MM MM MM VA ,V
# MM;Mm MM MM MM VA ,V
# MM `Mb. MM MM MM VVV
# ,V .d' ""
# OOb" dM`
# ,p6"bo ,pW"Wq.`7MMpMMMb. mMMmm
# 6M' OO 6W' `Wb MM MM MM
# 8M 8M M8 MM MM MM
# ,, YM. , YA. ,A9 MM MM MM
# db YMbmd' `Ybmd9'.JMML JMML.JMML.
# ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# kitty --debug-gl, --debug-rendering,
# --debug-input, --debug-keyboard,--debug-font-fallback
# "kitty_mod" Kombination
# map kitty_mod ctrl+shift
map kitty_mod+f6 debug_config
map kitty_mod+f1 show_kitty_doc overview
# kitty config. reload: ctrl+shift+f5
# ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# kitty +list-fonts --psnames
# ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# Kitty-Pager: ctrl+Shift+g
# ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# remove all shortcut bis zu diesem Punkt for debugging,
# to remove the default shortcuts.
clear_all_shortcuts no
focus_follows_mouse yes
enabled_layouts tall,fat,grid,horizontal,vertical,stack,splits
# ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# 8 o o
# .oPYo. 8oPYo. .oPYo. oPYo. o8P .oPYo. o o o8P .oPYo.
# Yb.. 8 8 8 8 8 `' 8 8
#__________________________________
# _ /_ _ __/_ _ _/_ _
# _\ / //_// / /_ /_// _\
# :.....:..:::..:..:..:::..::.....:
map super+i set_tab_title
# Layouts wechseln
map ctrl+1 goto_layout grid
map ctrl+2 goto_layout stack
map ctrl+3 goto_layout fat:bias=50;full_size=1;mirrored=false
map ctrl+4 goto_layout tall:bias=50;full_size=1;mirrored=false
map ctrl+5 goto_layout vertical
# layout_action rotate
map shift+KP_MULTIPLY next_layout
map shift+KP_DIVIDE swap_with_window
map shift+KP_SUBTRACT layout_action bias 10 25 40 55 75 85
map shift+KP_ADD launch --cwd=current --location=vsplit
map shift+KP_ENTER toggle_layout stack
map super+KP_ADD launch --cwd=current --location=split
map super+enter launch --cwd=current --location=hsplit
map super+t launch --cwd=current --type=tab
map kitty_mod+t launch --cwd=current --type=tab
#map ctrl+KP_DIVIDE pass_selection_to_program gnome-text-editor \
#--ignore-session --standalone --new-window
map super+F9 pass_selection_to_program gnome-text-editor --ignore-session --standalone --new-window
# map kitty_mod+3 goto_layout horizontal # map kitty_mod+5 goto_layout splits
# RESIZE_WINDOW_________________________________
map kitty_mod+left resize_window narrower
map kitty_mod+right resize_window wider
map kitty_mod+up resize_window shorter
map kitty_mod+down resize_window taller
# SYNTAX "launch"': map f1 launch cmd path/to/some/file
# map shift+f5 launch --type=overlay sh -c 'echo "Numpad 9 gedrückt!"'
map kitty_mod+f11 focus_visible_window
# map kitty_mod+f11 swap_with_window
map kitty_mod+f12 launch --stdin-source=@screen_scrollback less
dynamic_background_opacity yes
map ctrl+f5 set_background_opacity -0.1
map ctrl+f6 set_background_opacity +0.1
map super+KP_SUBTRACT set_background_opacity -0.1
map super+KP_ADD set_background_opacity +0.1
map ctrl+alt++ set_background_opacity +0.1
map ctrl+alt+- set_background_opacity -0.1
map ctrl+tab next_tab
map shift+tab previous_tab
# SCROLL_UP_&_DOWN___________________________________
map page_up scroll_page_up
map page_down scroll_page_down
map ctrl+page_up scroll_line_up
map ctrl+page_down scroll_line_down
map ctrl+home scroll_home
map ctrl+end scroll_end
map ctrl+shift+escape kitty_shell window
# Run 'notify-send' when a command takes more than 10 seconds in a invisible window
# Here %c is replaced by the current command line and %s by the job exit code
notify_on_cmd_finish invisible 10.0 command notify-send "job finished with status: %s" %c
# _______________________________
# Terminal Background
# -------------------------------
foreground #f8eec4
#d3e356
#dddddd
background #131416
#000000
window_logo_path ./pictures/monster-baby_speia-lq.png
window_logo_position top-right
window_logo_alpha 0.2
# background_image ./pictures/city-neo.png
background_image ./pictures/redsun_breiter.png
background_image_layout cscaled
background_image_linear yes
transparent_background_colors [email protected]
background_tint 0.8
background_tint_gaps 1.0
background_opacity 0.85
background_blur 64
dim_opacity 0.4
resize_debounce_time 0.1 0.5
resize_in_steps yes
# CLOSE-/NEW- Fenster-Management
#map shift+enter new_window
map ctrl+shift+n new_os_window
map alt+f3 close_window
map alt+f6 close_tab
#map ctrl+shift+# next_window
#map ctrl+shift+f move_window_forward
#map ctrl+shift+b move_window_backward
#map ctrl+shift+e move_window_to_top
#map ctrl+shift+r start_resizing_window
#____________________________________________________________
# __________ ______ __ ___ ____ ___ _________________
# / ____/ __ \/ __ \ \/ / ( _ ) / __ \/ | / ___/_ __/ ____/
# / / / / / / /_/ /\ / / __ \/| / /_/ / /| | \__ \ / / / __/
# / /___/ /_/ / ____/ / / / /_/ < / ____/ ___ |___/ // / / /___
# \____/\____/_/ /_/ \____/\/ /_/ /_/ |_/____//_/ /_____/
# & clipboard
# -----------------------------------------------------------
# COPY_&_PASTE_______________________________________________________
# ... aktuelle Auswahl in die Clipboard (Zwischenablage):
map ctrl+shift+c copy_to_clipboard
map ctrl+v paste_from_clipboard
# to copy the current selection to a buffer named BUFFER.
map ctrl+shift+b copy_to_buffer BUFFER
# The buffer names are strings, you can define as many such buffers you need.
map ctrl+shift+v paste_from_buffer BUFFER
# ... COPY - Kopiert Inhalt einer Datei in Clipboard (Zwischenablage):
map ctrl+shift+f copy_file_to_clipboard
# ... Kopiert automatisch den ausgewählten Text in die Zwischenablage.
copy_on_select yes
map crtl+shift+s paste_from_selection
# copy_on_select a1
# _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
clipboard_max_size 512
paste_actions quote-urls-at-prompt,confirm-if-large
clipboard_control write-clipboard write-primary read-clipboard-ask read-primary-ask
# _________________________________________________
# PAGER-Control
# ------------------------
# Definiert das Programm zum Durchblättern des Scrollbacks:
scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER
# scrollback_pager less --no-init --RAW-CONTROL-CHARS --quit-if-one-screen
# ripgrep als Pager verwenden
scrollback_pager kitty @ launch --type=overlay --cwd=current --title=SearchResults sh -c 'rg --color=always --smart-case --line-number "{search_term}" | less --RAW-CONTROL-CHARS --no-init --quit-if-one-screen' #
# default means fully opaque
scrollback_indicator_opacity 0.4
# ... in mb. for interactive scrolling to the pager
scrollback_pager_history_size 512
# Anzahl der Zeilen, die im Scrollback gespeichert werden.
scrollback_lines 10000
# Multiplikator sowie Mindestanzahl
wheel_scroll_multiplier 15
wheel_scroll_min_lines 4
window_resize_step_cells 8
window_resize_step_lines 8
window_border_width 3.5pt
draw_minimal_borders no
remember_window_size yes
# placement_strategy right
window_padding_width 6 6 2 2
single_window_padding_width -1
active_border_color #ffb300
#f2a297 #ca1444 #C04000
inactive_border_color #0d3149
#90EE90
inactive_text_alpha 0.9
text_fg_override_threshold 0.9
# 0.0 ... 1.0, 0 means no
# ________________________
# ______ __ __ ______ ______ ______ ______
# /\ ___\ /\ \/\ \ /\ == \ /\ ___\ /\ __ \ /\ == \
# \ \ \____ \ \ \_\ \ \ \ __< \ \___ \ \ \ \/\ \ \ \ __<
# \ \_____\ \ \_____\ \ \_\ \_\ \/\_____\ \ \_____\ \ \_\ \_\
# \/_____/ \/_____/ \/_/ /_/ \/_____/ \/_____/ \/_/ /_/
# ------------------------------------------------------------------
# Trail-Animation für Cursor. Wert größer als Null, um eine „Cursorspur“ zu ermöglichen.
# Siehe „cursor_trail_decay“, um die Animationsgeschwindigkeit zu steuern, und „cursor_trail_start_threshold“, um zu steuern, wann ein Cursor-Trail gestartet wird.
cursor_trail 3
cursor_trail_decay 0.3 0.9
cursor_trail_start_threshold 2
# Default text cursor color.
cursor #ff0017
#00FFFF # hellblau #4ef0fa
# Setzt die Farbe des Textes unter dem Cursor auf Orange (#cc3500)
cursor_text_color #d730b2
#cc3500
# Gibt dem Cursor die Form eines Strichs. # cursor can be: block, beam, underline, hollow
cursor_shape beam
# Dicke des Cursors, wenn er als Strich dargestellt wird, in 9 Pixel.
cursor_beam_thickness 9
# Dicke des Cursors, wenn er als Unterstrich dargestellt wird, auf 2 Pixel.
cursor_underline_thickness 4.0
# Setzt das Intervall des Cursor-Blinkens auf 0.5 Sekunden.
cursor_blink_interval 0.5
# Zeit, nach der der Cursor aufhört zu blinken. in Sekunden
cursor_stop_blinking_after 66.0
# ___________________________________
# URL-Erkennung und Aktionen
# -----------------------------------
# Setzt die Farbe von URLs auf Grün (ehem. Blau (#0087bd).)
url_color #b7f274
# Setzt den Stil der Darstellung von URLs auf "curly".
url_style curly
open_url_with default
# set of URL prefixes to look for when detecting a URL under the mouse cursor
url_prefixes file ftp ftps gemini git gopher http https irc ircs kitty mailto news sftp ssh
# Zeigt die Zielinformationen von Hyperlinks an.
show_hyperlink_targets yes
# Unterstreicht Hover-Hyperlinks.
underline_hyperlinks hover
# value of smart will do it when using normal selections, but not rectangle selections.
strip_trailing_spaces smart
#Characters considered part of a word when double clicking.
select_by_word_characters @-./_~?&=%+#
# _____________________________
# Registerleiste (Tab-Bar)
# -----------------------------
tab_bar_edge top
# ...or buttom
tab_bar_align center
tab_bar_min_tabs 2
tab_switch_strategy previous
tab_bar_margin_width 2
# Stil der Tabs:: "separator" "fade" slant powerline
# tab_bar_style separator
tab_bar_style fade
tab_powerline_style angled
tab_separator '☣️ '
# Setzt den Stil des Tab-Trenners auf "angled".
tab_powerline_style angled
# Legt ein Symbol für aktive Tabs fest.
tab_activity_symbol ' '
# '⚡☭ '⚡⚡☭ ' ◢◧ ◨◩ ❏ ☣️ ☘️
#U+f0bc8 U+f0312
visual_bell_color #ffb300
window_alert_on_bell yes
bell_on_tab '☘️ '
command_on_bell none
tab_bar_background #140d18
tab_bar_margin_color #cb72ff
# Definiert das Format des Tab-Titels.
tab_title_template "{fmt.fg.green}{bell_symbol}{activity_symbol}{fmt.fg.tab}{tab.active_exe}@'{tab.active_wd}'"
# tab_title_template "{fmt.fg.green}{bell_symbol}{activity_symbol}{fmt.fg.tab}{title}{tab.active_exe}{tab.active_wd}"
# Setzt die Farbe des Textes im aktiven Tab auf Grün (#ABFB5A).
active_tab_foreground #ABFB5A
# Setzt die Hintergrundfarbe des aktiven Tabs auf Dunkelgrau (#243A20).
active_tab_background #243A20
# Aktiven Tabs auf Fettdruck.
active_tab_font_style bold
# Farbe des Textes in inaktiven Tabs auf Lila (#8F18BA).
inactive_tab_foreground #8F18BA
# bg der inaktiven Tabs auf Dunkelviolett (#390C49).
inactive_tab_background #390C49
# Setzt den Schriftstil der inaktiven Tabs auf Kursiv.
inactive_tab_font_style italic
# Farbe des Randes der Tab-Leiste auf Lila (#8F18BA).
tab_bar_margin_color #8F18BA
# ___________________________________
# ________ _ ____________
# / __/ __ \/ |/ /_ __/ __/
# / _// /_/ / / / / _\ \
# /_/ \____/_/|_/ /_/ /___/
# ----------------------------------
# $ kitty +list-fonts --psnames
# -----------------------------------------------------
# font_family kitty +kitten Agave Nerd Font Mono
# font_family kitty +kitten iMWritingMono Nerd Font Mono
# font_family kitty +kitten VictorMono Nerd Font Mono
# font_family kitty +kitten Lekton Nerd Font Mono
font_family kitty +kitten GeistMono-Nerd-Font-Mono
# -----------------------------------------------------
font_size 11.0
bold_font auto
italic_font TT2020 Style E Italic
bold_italic_font ProggyClean Nerd Font Mono
# Schriftarten: spezifische Funktionen und Darstellungsweise
font_features FiraCode-Retina +zero +onum
font_features FiraCode-Bold +zero
font_features HackNFM-Regular +zero +onum
font_features TT2020StyleB-Regular -liga +calt
font_features UnifontMedium +isol -medi -fina -init
font_features GeistMono-Nerd-Font-Mono +liga +calt +zero
font_features VictorMono-Nerd-Font-Mono +onum +ss01 -liga
font_features Hack-Nerd-Font-Mono +zero +tnum +calt
font_features Agave-Nerd-Font-Mono +ss02 +dlig -calt
# liga: Standardligaturen (z. B. fi, fl).
# dlig: Diskretionäre Ligaturen.
# calt: Kontextuelle Alternativen.
# onum: Alte Ziffernformen.
# ss01, ss02, ...: teils mehrere, Font-abhängig.
# tnum: Tabellenziffern
# zero: Slashed Zero (durchgestrichene Null). case: Großbuchstabenformen.
# Definiert eine schmalere Darstellung für spezifische Symbole:
narrow_symbols U+E0A0-U+E0A3,U+E0C0-U+E0C7
# Modify font characteristics. modifications px for pixels or % for percentage
modify_font underline_position -1
modify_font underline_thickness 150%
modify_font strikethrough_position 2px
# modify the size of the cell in which each font glyph
modify_font cell_width 90%
modify_font cell_height -1px
modify_font baseline 3
undercurl_style thin-sparse
text_composition_strategy platform
# sizes of the lines used for the box drawing Unicode
box_drawing_scale 0.001, 1, 1.5, 2
# sonstiges
focus_follows_mouse yes
sync_to_monitor yes
update_check_interval 24
# block, beam, underline, hollow and unchanged
default_pointer_shape beam
pointer_shape_when_dragging beam
# inter_shape_when_grabbed arrow
remember_window_size yes
initial_window_width 640
initial_window_height 400
# mit ctrl+shift+f7 den Focus setzen mit def:
visual_window_select_characters 1234567890
# ______________________________________________________________
# __ ENDE ______________________________________________________
# ____________________________________________________
# Move the active window in the indicated direction
#map shift+up move_window up
#map shift+left move_window left
#map shift+right move_window right
#map shift+down move_window down
# Move the active window to the indicated screen edge
# map alt+up layout_action move_to_screen_edge top
# map alt+left layout_action move_to_screen_edge left
# map alt+right layout_action move_to_screen_edge right
# map alt+down layout_action move_to_screen_edge bottom
# Switch focus to the neighboring window in the indicated direction
# map ctrl+left neighboring_window left
# map ctrl+right neighboring_window right
# map ctrl+up neighboring_window up
# map ctrl+down neighboring_window down
# _______________ENDE___________________________________________
# _____________________________ENDE_____________________________