Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 
 

422 Zeilen
17 KiB

  1. # Configuration for Alacritty, the GPU enhanced terminal emulator
  2. # Any items in the `env` entry below will be added as
  3. # environment variables. Some entries may override variables
  4. # set by alacritty it self.
  5. env:
  6. # TERM env customization.
  7. #
  8. # If this property is not set, alacritty will set it to xterm-256color.
  9. #
  10. # Note that some xterm terminfo databases don't declare support for italics.
  11. # You can verify this by checking for the presence of `smso` and `sitm` in
  12. # `infocmp xterm-256color`.
  13. TERM: xterm-256color
  14. window:
  15. # Window dimensions in character columns and lines
  16. # Falls back to size specified by window manager if set to 0x0.
  17. # (changes require restart)
  18. dimensions:
  19. columns: 80
  20. lines: 24
  21. # Adds this many blank pixels of padding around the window
  22. # Units are physical pixels; this is not DPI aware.
  23. # (change requires restart)
  24. padding:
  25. x: 2
  26. y: 2
  27. # Window decorations
  28. # Setting this to false will result in window without borders and title bar.
  29. decorations: full
  30. scrolling:
  31. # How many lines of scrollback to keep,
  32. # '0' will disable scrolling.
  33. history: 1000
  34. # Number of lines the viewport will move for every line
  35. # scrolled when scrollback is enabled (history > 0).
  36. multiplier: 3
  37. # Faux Scrolling
  38. #
  39. # The `faux_multiplier` setting controls the number
  40. # of lines the terminal should scroll when the alternate
  41. # screen buffer is active. This is used to allow mouse
  42. # scrolling for applications like `man`.
  43. #
  44. # To disable this completely, set `faux_multiplier` to 0.
  45. faux_multiplier: 3
  46. # Automatically scroll to the bottom when new text is written
  47. # to the terminal.
  48. auto_scroll: true
  49. # Display tabs using this many cells (changes require restart)
  50. tabspaces: 8
  51. # When true, bold text is drawn using the bright variant of colors.
  52. draw_bold_text_with_bright_colors: true
  53. # Font configuration (changes require restart)
  54. #
  55. # Important font attributes like antialiasing, subpixel aa, and hinting can be
  56. # controlled through fontconfig. Specifically, the following attributes should
  57. # have an effect:
  58. #
  59. # * hintstyle
  60. # * antialias
  61. # * lcdfilter
  62. # * rgba
  63. #
  64. # For instance, if you wish to disable subpixel antialiasing, you might set the
  65. # rgba property to "none". If you wish to completely disable antialiasing, you
  66. # can set antialias to false.
  67. #
  68. # Please see these resources for more information on how to use fontconfig
  69. #
  70. # * https://wiki.archlinux.org/index.php/font_configuration#Fontconfig_configuration
  71. # * file:///usr/share/doc/fontconfig/fontconfig-user.html
  72. font:
  73. # The normal (roman) font face to use.
  74. normal:
  75. family: "Fantasque sans mono" # should be "Menlo" or something on macOS.
  76. # Style can be specified to pick a specific face.
  77. # style: Regular
  78. # The bold font face
  79. bold:
  80. family: "Fantasque sans mono" # should be "Menlo" or something on macOS.
  81. # Style can be specified to pick a specific face.
  82. # style: Bold
  83. # The italic font face
  84. italic:
  85. family: "Fantasque sans mono" # should be "Menlo" or something on macOS.
  86. # Style can be specified to pick a specific face.
  87. # style: Italic
  88. # Point size of the font
  89. size: 11.0
  90. # Offset is the extra space around each character. offset.y can be thought of
  91. # as modifying the linespacing, and offset.x as modifying the letter spacing.
  92. offset:
  93. x: 0
  94. y: 0
  95. # Glyph offset determines the locations of the glyphs within their cells with
  96. # the default being at the bottom. Increase the x offset to move the glyph to
  97. # the right, increase the y offset to move the glyph upward.
  98. glyph_offset:
  99. x: 0
  100. y: 0
  101. # OS X only: use thin stroke font rendering. Thin strokes are suitable
  102. # for retina displays, but for non-retina you probably want this set to
  103. # false.
  104. use_thin_strokes: true
  105. # Should display the render timer
  106. render_timer: false
  107. # Colors (Tomorrow Night Bright)
  108. colors:
  109. # Default colors
  110. primary:
  111. background: '0x000000'
  112. foreground: '0xeaeaea'
  113. # (Optional) Bright and Dim foreground colors
  114. #
  115. # The dimmed foreground color is calculated automatically if it is not present.
  116. # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
  117. # is `false`, the normal foreground color will be used.
  118. #
  119. # dim_foreground: '0x9a9a9a'
  120. # bright_foreground: '0xffffff'
  121. # Colors the cursor will use if `custom_cursor_colors` is true
  122. cursor:
  123. text: '0x000000'
  124. cursor: '0xffffff'
  125. # Normal colors
  126. normal:
  127. black: '0x171717'
  128. red: '0xff5e5e'
  129. green: '0x9ce82b'
  130. yellow: '0xf0e68c'
  131. blue: '0x008aff'
  132. magenta: '0xe88cff'
  133. cyan: '0x87cefa'
  134. white: '0xdcdccc'
  135. # Bright colors
  136. bright:
  137. black: '0x737373'
  138. red: '0xff7878'
  139. green: '0x9acd32'
  140. yellow: '0xeee8aa'
  141. blue: '0x4f98ff'
  142. magenta: '0xeda6ff'
  143. cyan: '0xb0e2ff'
  144. white: '0xffffff'
  145. # Dim colors (Optional)
  146. dim:
  147. black: '0x333333'
  148. red: '0xf2777a'
  149. green: '0x99cc99'
  150. yellow: '0xffcc66'
  151. blue: '0x6699cc'
  152. magenta: '0xcc99cc'
  153. cyan: '0x66cccc'
  154. white: '0xdddddd'
  155. # Visual Bell
  156. #
  157. # Any time the BEL code is received, Alacritty "rings" the visual bell. Once
  158. # rung, the terminal background will be set to white and transition back to the
  159. # default background color. You can control the rate of this transition by
  160. # setting the `duration` property (represented in milliseconds). You can also
  161. # configure the transition function by setting the `animation` property.
  162. #
  163. # Possible values for `animation`
  164. # `Ease`
  165. # `EaseOut`
  166. # `EaseOutSine`
  167. # `EaseOutQuad`
  168. # `EaseOutCubic`
  169. # `EaseOutQuart`
  170. # `EaseOutQuint`
  171. # `EaseOutExpo`
  172. # `EaseOutCirc`
  173. # `Linear`
  174. #
  175. # To completely disable the visual bell, set its duration to 0.
  176. #
  177. visual_bell:
  178. animation: EaseOutExpo
  179. duration: 0
  180. # Background opacity
  181. background_opacity: 0.8
  182. # Mouse bindings
  183. #
  184. # Currently doesn't support modifiers. Both the `mouse` and `action` fields must
  185. # be specified.
  186. #
  187. # Values for `mouse`:
  188. # - Middle
  189. # - Left
  190. # - Right
  191. # - Numeric identifier such as `5`
  192. #
  193. # Values for `action`:
  194. # - Paste
  195. # - PasteSelection
  196. # - Copy (TODO)
  197. mouse_bindings:
  198. - { mouse: Middle, action: PasteSelection }
  199. mouse:
  200. # Click settings
  201. #
  202. # The `double_click` and `triple_click` settings control the time
  203. # alacritty should wait for accepting multiple clicks as one double
  204. # or triple click.
  205. double_click: { threshold: 300 }
  206. triple_click: { threshold: 300 }
  207. hide_when_typing: false
  208. selection:
  209. semantic_escape_chars: ",│`|:\"' ()[]{}<>"
  210. dynamic_title: true
  211. # Style of the cursor
  212. #
  213. # Values for 'cursor.style':
  214. # - Block
  215. # - Underline
  216. # - Beam
  217. cursor:
  218. style: Block
  219. unfocused_hollow: false
  220. # Live config reload (changes require restart)
  221. live_config_reload: true
  222. # Shell
  223. #
  224. # You can set shell.program to the path of your favorite shell, e.g. /bin/fish.
  225. # Entries in shell.args are passed unmodified as arguments to the shell.
  226. #
  227. # shell:
  228. # program: /bin/bash
  229. # args:
  230. # - --login
  231. # Key bindings
  232. #
  233. # Each binding is defined as an object with some properties. Most of the
  234. # properties are optional. All of the alphabetical keys should have a letter for
  235. # the `key` value such as `V`. Function keys are probably what you would expect
  236. # as well (F1, F2, ..). The number keys above the main keyboard are encoded as
  237. # `Key1`, `Key2`, etc. Keys on the number pad are encoded `Number1`, `Number2`,
  238. # etc. These all match the glutin::VirtualKeyCode variants.
  239. #
  240. # A list with all available `key` names can be found here:
  241. # https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
  242. #
  243. # Possible values for `mods`
  244. # `Command`, `Super` refer to the super/command/windows key
  245. # `Control` for the control key
  246. # `Shift` for the Shift key
  247. # `Alt` and `Option` refer to alt/option
  248. #
  249. # mods may be combined with a `|`. For example, requiring control and shift
  250. # looks like:
  251. #
  252. # mods: Control|Shift
  253. #
  254. # The parser is currently quite sensitive to whitespace and capitalization -
  255. # capitalization must match exactly, and piped items must not have whitespace
  256. # around them.
  257. #
  258. # Either an `action`, `chars`, or `command` field must be present.
  259. # `action` must be one of the following:
  260. # - `Paste`
  261. # - `PasteSelection`
  262. # - `Copy`
  263. # - `IncreaseFontSize`
  264. # - `DecreaseFontSize`
  265. # - `ResetFontSize`
  266. # - `ScrollPageUp`
  267. # - `ScrollPageDown`
  268. # - `ScrollToTop`
  269. # - `ScrollToBottom`
  270. # - `Quit`
  271. # `chars` writes the specified string every time that binding is activated.
  272. # These should generally be escape sequences, but they can be configured to
  273. # send arbitrary strings of bytes.
  274. # `command` must be a map containing a `program` string, and `args` array of
  275. # strings. For example:
  276. # - { ... , command: { program: "alacritty", args: ["-e", "vttest"] } }
  277. #
  278. # Want to add a binding (e.g. "PageUp") but are unsure what the X sequence
  279. # (e.g. "\x1b[5~") is? Open another terminal (like xterm) without tmux,
  280. # then run `showkey -a` to get the sequence associated to a key combination.
  281. key_bindings:
  282. - { key: V, mods: Control|Shift, action: Paste }
  283. - { key: C, mods: Control|Shift, action: Copy }
  284. - { key: Paste, action: Paste }
  285. - { key: Copy, action: Copy }
  286. - { key: Q, mods: Command, action: Quit }
  287. - { key: W, mods: Command, action: Quit }
  288. - { key: Insert, mods: Shift, action: PasteSelection }
  289. - { key: Key0, mods: Control, action: ResetFontSize }
  290. - { key: Equals, mods: Control, action: IncreaseFontSize }
  291. - { key: Subtract, mods: Control, action: DecreaseFontSize }
  292. - { key: Home, chars: "\x1bOH", mode: AppCursor }
  293. - { key: Home, chars: "\x1b[H", mode: ~AppCursor }
  294. - { key: End, chars: "\x1bOF", mode: AppCursor }
  295. - { key: End, chars: "\x1b[F", mode: ~AppCursor }
  296. - { key: PageUp, mods: Shift, chars: "\x1b[5;2~" }
  297. - { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
  298. - { key: PageUp, chars: "\x1b[5~" }
  299. - { key: PageDown, mods: Shift, chars: "\x1b[6;2~" }
  300. - { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
  301. - { key: PageDown, chars: "\x1b[6~" }
  302. - { key: Tab, mods: Shift, chars: "\x1b[Z" }
  303. - { key: Back, chars: "\x7f" }
  304. - { key: Back, mods: Alt, chars: "\x1b\x7f" }
  305. - { key: Insert, chars: "\x1b[2~" }
  306. - { key: Delete, chars: "\x1b[3~" }
  307. - { key: Left, mods: Shift, chars: "\x1b[1;2D" }
  308. - { key: Left, mods: Control, chars: "\x1b[1;5D" }
  309. - { key: Left, mods: Alt, chars: "\x1b[1;3D" }
  310. - { key: Left, chars: "\x1b[D", mode: ~AppCursor }
  311. - { key: Left, chars: "\x1bOD", mode: AppCursor }
  312. - { key: Right, mods: Shift, chars: "\x1b[1;2C" }
  313. - { key: Right, mods: Control, chars: "\x1b[1;5C" }
  314. - { key: Right, mods: Alt, chars: "\x1b[1;3C" }
  315. - { key: Right, chars: "\x1b[C", mode: ~AppCursor }
  316. - { key: Right, chars: "\x1bOC", mode: AppCursor }
  317. - { key: Up, mods: Shift, chars: "\x1b[1;2A" }
  318. - { key: Up, mods: Control, chars: "\x1b[1;5A" }
  319. - { key: Up, mods: Alt, chars: "\x1b[1;3A" }
  320. - { key: Up, chars: "\x1b[A", mode: ~AppCursor }
  321. - { key: Up, chars: "\x1bOA", mode: AppCursor }
  322. - { key: Down, mods: Shift, chars: "\x1b[1;2B" }
  323. - { key: Down, mods: Control, chars: "\x1b[1;5B" }
  324. - { key: Down, mods: Alt, chars: "\x1b[1;3B" }
  325. - { key: Down, chars: "\x1b[B", mode: ~AppCursor }
  326. - { key: Down, chars: "\x1bOB", mode: AppCursor }
  327. - { key: F1, chars: "\x1bOP" }
  328. - { key: F2, chars: "\x1bOQ" }
  329. - { key: F3, chars: "\x1bOR" }
  330. - { key: F4, chars: "\x1bOS" }
  331. - { key: F5, chars: "\x1b[15~" }
  332. - { key: F6, chars: "\x1b[17~" }
  333. - { key: F7, chars: "\x1b[18~" }
  334. - { key: F8, chars: "\x1b[19~" }
  335. - { key: F9, chars: "\x1b[20~" }
  336. - { key: F10, chars: "\x1b[21~" }
  337. - { key: F11, chars: "\x1b[23~" }
  338. - { key: F12, chars: "\x1b[24~" }
  339. - { key: F1, mods: Shift, chars: "\x1b[1;2P" }
  340. - { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
  341. - { key: F3, mods: Shift, chars: "\x1b[1;2R" }
  342. - { key: F4, mods: Shift, chars: "\x1b[1;2S" }
  343. - { key: F5, mods: Shift, chars: "\x1b[15;2~" }
  344. - { key: F6, mods: Shift, chars: "\x1b[17;2~" }
  345. - { key: F7, mods: Shift, chars: "\x1b[18;2~" }
  346. - { key: F8, mods: Shift, chars: "\x1b[19;2~" }
  347. - { key: F9, mods: Shift, chars: "\x1b[20;2~" }
  348. - { key: F10, mods: Shift, chars: "\x1b[21;2~" }
  349. - { key: F11, mods: Shift, chars: "\x1b[23;2~" }
  350. - { key: F12, mods: Shift, chars: "\x1b[24;2~" }
  351. - { key: F1, mods: Control, chars: "\x1b[1;5P" }
  352. - { key: F2, mods: Control, chars: "\x1b[1;5Q" }
  353. - { key: F3, mods: Control, chars: "\x1b[1;5R" }
  354. - { key: F4, mods: Control, chars: "\x1b[1;5S" }
  355. - { key: F5, mods: Control, chars: "\x1b[15;5~" }
  356. - { key: F6, mods: Control, chars: "\x1b[17;5~" }
  357. - { key: F7, mods: Control, chars: "\x1b[18;5~" }
  358. - { key: F8, mods: Control, chars: "\x1b[19;5~" }
  359. - { key: F9, mods: Control, chars: "\x1b[20;5~" }
  360. - { key: F10, mods: Control, chars: "\x1b[21;5~" }
  361. - { key: F11, mods: Control, chars: "\x1b[23;5~" }
  362. - { key: F12, mods: Control, chars: "\x1b[24;5~" }
  363. - { key: F1, mods: Alt, chars: "\x1b[1;6P" }
  364. - { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
  365. - { key: F3, mods: Alt, chars: "\x1b[1;6R" }
  366. - { key: F4, mods: Alt, chars: "\x1b[1;6S" }
  367. - { key: F5, mods: Alt, chars: "\x1b[15;6~" }
  368. - { key: F6, mods: Alt, chars: "\x1b[17;6~" }
  369. - { key: F7, mods: Alt, chars: "\x1b[18;6~" }
  370. - { key: F8, mods: Alt, chars: "\x1b[19;6~" }
  371. - { key: F9, mods: Alt, chars: "\x1b[20;6~" }
  372. - { key: F10, mods: Alt, chars: "\x1b[21;6~" }
  373. - { key: F11, mods: Alt, chars: "\x1b[23;6~" }
  374. - { key: F12, mods: Alt, chars: "\x1b[24;6~" }
  375. - { key: F1, mods: Super, chars: "\x1b[1;3P" }
  376. - { key: F2, mods: Super, chars: "\x1b[1;3Q" }
  377. - { key: F3, mods: Super, chars: "\x1b[1;3R" }
  378. - { key: F4, mods: Super, chars: "\x1b[1;3S" }
  379. - { key: F5, mods: Super, chars: "\x1b[15;3~" }
  380. - { key: F6, mods: Super, chars: "\x1b[17;3~" }
  381. - { key: F7, mods: Super, chars: "\x1b[18;3~" }
  382. - { key: F8, mods: Super, chars: "\x1b[19;3~" }
  383. - { key: F9, mods: Super, chars: "\x1b[20;3~" }
  384. - { key: F10, mods: Super, chars: "\x1b[21;3~" }
  385. - { key: F11, mods: Super, chars: "\x1b[23;3~" }
  386. - { key: F12, mods: Super, chars: "\x1b[24;3~" }