Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

601 lines
22 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 itself.
  5. #env:
  6. # TERM variable
  7. #
  8. # This value is used to set the `$TERM` environment variable for
  9. # each instance of Alacritty. If it is not present, alacritty will
  10. # check the local terminfo database and use `alacritty` if it is
  11. # available, otherwise `xterm-256color` is used.
  12. #TERM: xterm-256color
  13. window:
  14. # Window dimensions (changes require restart)
  15. #
  16. # Specified in number of columns/lines, not pixels.
  17. # If both are `0`, this setting is ignored.
  18. dimensions:
  19. columns: 0
  20. lines: 0
  21. # Window position (changes require restart)
  22. #
  23. # Specified in number of pixels.
  24. # If the position is not set, the window manager will handle the placement.
  25. #position:
  26. # x: 0
  27. # y: 0
  28. # Window padding (changes require restart)
  29. #
  30. # Blank space added around the window in pixels. This padding is scaled
  31. # by DPI and the specified value is always added at both opposing sides.
  32. padding:
  33. x: 0
  34. y: 0
  35. # Spread additional padding evenly around the terminal content.
  36. dynamic_padding: false
  37. # Window decorations
  38. #
  39. # Values for `decorations`:
  40. # - full: Borders and title bar
  41. # - none: Neither borders nor title bar
  42. #
  43. # Values for `decorations` (macOS only):
  44. # - transparent: Title bar, transparent background and title bar buttons
  45. # - buttonless: Title bar, transparent background, but no title bar buttons
  46. decorations: full
  47. # Startup Mode (changes require restart)
  48. #
  49. # Values for `startup_mode`:
  50. # - Windowed
  51. # - Maximized
  52. # - Fullscreen
  53. #
  54. # Values for `startup_mode` (macOS only):
  55. # - SimpleFullscreen
  56. startup_mode: Windowed
  57. # Window title
  58. #title: Alacritty
  59. # Window class (Linux only):
  60. #class: Alacritty
  61. scrolling:
  62. # Maximum number of lines in the scrollback buffer.
  63. # Specifying '0' will disable scrolling.
  64. history: 10000
  65. # Number of lines the viewport will move for every line scrolled when
  66. # scrollback is enabled (history > 0).
  67. multiplier: 3
  68. # Faux Scrolling
  69. #
  70. # The `faux_multiplier` setting controls the number of lines the terminal
  71. # should scroll when the alternate screen buffer is active. This is used
  72. # to allow mouse scrolling for applications like `man`.
  73. #
  74. # Specifying `0` will disable faux scrolling.
  75. # faux_multiplier: 3
  76. # Scroll to the bottom when new text is written to the terminal.
  77. auto_scroll: false
  78. # Spaces per Tab (changes require restart)
  79. #
  80. # This setting defines the width of a tab in cells.
  81. #
  82. # Some applications, like Emacs, rely on knowing about the width of a tab.
  83. # To prevent unexpected behavior in these applications, it's also required to
  84. # change the `it` value in terminfo when altering this setting.
  85. tabspaces: 8
  86. # Font configuration (changes require restart)
  87. font:
  88. # Normal (roman) font face
  89. #normal:
  90. # Font family
  91. #
  92. # Default:
  93. # - (macOS) Menlo
  94. # - (Linux) monospace
  95. # - (Windows) Consolas
  96. #family: monospace
  97. # The `style` can be specified to pick a specific face.
  98. #style: Regular
  99. # Bold font face
  100. #bold:
  101. # Font family
  102. #
  103. # If the bold family is not specified, it will fall back to the
  104. # value specified for the normal font.
  105. #family: monospace
  106. # The `style` can be specified to pick a specific face.
  107. #style: Bold
  108. # Italic font face
  109. #italic:
  110. # Font family
  111. #
  112. # If the italic family is not specified, it will fall back to the
  113. # value specified for the normal font.
  114. #family: monospace
  115. # The `style` can be specified to pick a specific face.
  116. #style: Italic
  117. # Point size
  118. size: 11.0
  119. # Offset is the extra space around each character. `offset.y` can be thought of
  120. # as modifying the line spacing, and `offset.x` as modifying the letter spacing.
  121. offset:
  122. x: 0
  123. y: 0
  124. # Glyph offset determines the locations of the glyphs within their cells with
  125. # the default being at the bottom. Increasing `x` moves the glyph to the right,
  126. # increasing `y` moves the glyph upwards.
  127. glyph_offset:
  128. x: 0
  129. y: 0
  130. # Thin stroke font rendering (macOS only)
  131. #
  132. # Thin strokes are suitable for retina displays, but for non-retina screens
  133. # it is recommended to set `use_thin_strokes` to `false`
  134. #
  135. # macOS >= 10.14.x:
  136. #
  137. # If the font quality on non-retina display looks bad then set
  138. # `use_thin_strokes` to `true` and enable font smoothing by running the
  139. # following command:
  140. # `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
  141. #
  142. # This is a global setting and will require a log out or restart to take
  143. # effect.
  144. use_thin_strokes: true
  145. # If `true`, bold text is drawn using the bright color variants.
  146. draw_bold_text_with_bright_colors: true
  147. # XTerm's default colors
  148. colors:
  149. # Default colors
  150. primary:
  151. background: '0x000000'
  152. foreground: '0xffffff'
  153. # Normal colors
  154. normal:
  155. black: '0x000000'
  156. red: '0xcd0000'
  157. green: '0x00cd00'
  158. yellow: '0xcdcd00'
  159. blue: '0x0000ee'
  160. magenta: '0xcd00cd'
  161. cyan: '0x00cdcd'
  162. white: '0xe5e5e5'
  163. # Bright colors
  164. bright:
  165. black: '0x7f7f7f'
  166. red: '0xff0000'
  167. green: '0x00ff00'
  168. yellow: '0xffff00'
  169. blue: '0x5c5cff'
  170. magenta: '0xff00ff'
  171. cyan: '0x00ffff'
  172. white: '0xffffff'
  173. # Indexed Colors
  174. #
  175. # The indexed colors include all colors from 16 to 256.
  176. # When these are not set, they're filled with sensible defaults.
  177. #
  178. # Example:
  179. # `- { index: 16, color: '0xff00ff' }`
  180. #
  181. # indexed_colors: []
  182. # Visual Bell
  183. #
  184. # Any time the BEL code is received, Alacritty "rings" the visual bell. Once
  185. # rung, the terminal background will be set to white and transition back to the
  186. # default background color. You can control the rate of this transition by
  187. # setting the `duration` property (represented in milliseconds). You can also
  188. # configure the transition function by setting the `animation` property.
  189. #
  190. # Values for `animation`:
  191. # - Ease
  192. # - EaseOut
  193. # - EaseOutSine
  194. # - EaseOutQuad
  195. # - EaseOutCubic
  196. # - EaseOutQuart
  197. # - EaseOutQuint
  198. # - EaseOutExpo
  199. # - EaseOutCirc
  200. # - Linear
  201. #
  202. # Specifying a `duration` of `0` will disable the visual bell.
  203. visual_bell:
  204. animation: EaseOutExpo
  205. duration: 0
  206. color: '0xffffff'
  207. # Background opacity
  208. #
  209. # Window opacity as a floating point number from `0.0` to `1.0`.
  210. # The value `0.0` is completely transparent and `1.0` is opaque.
  211. background_opacity: 1.0
  212. # Mouse bindings
  213. #
  214. # Available fields:
  215. # - mouse
  216. # - action
  217. # - mods (optional)
  218. #
  219. # Values for `mouse`:
  220. # - Middle
  221. # - Left
  222. # - Right
  223. # - Numeric identifier such as `5`
  224. #
  225. # All available `mods` and `action` values are documented in the key binding
  226. # section.
  227. mouse_bindings:
  228. - { mouse: Middle, action: PasteSelection }
  229. mouse:
  230. # Click settings
  231. #
  232. # The `double_click` and `triple_click` settings control the time
  233. # alacritty should wait for accepting multiple clicks as one double
  234. # or triple click.
  235. double_click: { threshold: 300 }
  236. triple_click: { threshold: 300 }
  237. # If this is `true`, the cursor is temporarily hidden when typing.
  238. hide_when_typing: false
  239. url:
  240. # URL launcher
  241. #
  242. # This program is executed when clicking on a text which is recognized as a URL.
  243. # The URL is always added to the command as the last parameter.
  244. #
  245. # When set to `None`, URL launching will be disabled completely.
  246. #
  247. # Default:
  248. # - (macOS) open
  249. # - (Linux) xdg-open
  250. # - (Windows) explorer
  251. #launcher:
  252. # program: xdg-open
  253. # args: []
  254. # URL modifiers
  255. #
  256. # These are the modifiers that need to be held down for opening URLs when clicking
  257. # on them. The available modifiers are documented in the key binding section.
  258. modifiers: None
  259. selection:
  260. semantic_escape_chars: ",│`|:\"' ()[]{}<>"
  261. # When set to `true`, selected text will be copied to the primary clipboard.
  262. save_to_clipboard: false
  263. # Allow terminal applications to change Alacritty's window title.
  264. dynamic_title: true
  265. cursor:
  266. # Cursor style
  267. #
  268. # Values for `style`:
  269. # - ▇ Block
  270. # - _ Underline
  271. # - | Beam
  272. style: Block
  273. # If this is `true`, the cursor will be rendered as a hollow box when the
  274. # window is not focused.
  275. unfocused_hollow: true
  276. # Live config reload (changes require restart)
  277. live_config_reload: true
  278. # Shell
  279. #
  280. # You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
  281. # Entries in `shell.args` are passed unmodified as arguments to the shell.
  282. #
  283. # Default:
  284. # - (macOS) /bin/bash --login
  285. # - (Linux) user login shell
  286. # - (Windows) powershell
  287. #shell:
  288. # program: /bin/bash
  289. # args:
  290. # - --login
  291. # Startup directory
  292. #
  293. # Directory the shell is started in. If this is unset, or `None`, the working
  294. # directory of the parent process will be used.
  295. working_directory: None
  296. # Windows 10 ConPTY backend (Windows only)
  297. #
  298. # This will enable better color support and may resolve other issues,
  299. # however this API and its implementation is still young and so is
  300. # disabled by default, as stability may not be as good as the winpty
  301. # backend.
  302. #
  303. # Alacritty will fall back to the WinPTY automatically if the ConPTY
  304. # backend cannot be initialized.
  305. enable_experimental_conpty_backend: false
  306. # Send ESC (\x1b) before characters when alt is pressed.
  307. alt_send_esc: true
  308. debug:
  309. # Display the time it takes to redraw each frame.
  310. render_timer: false
  311. # Keep the log file after quitting Alacritty.
  312. persistent_logging: false
  313. # Log level
  314. #
  315. # Values for `log_level`:
  316. # - None
  317. # - Error
  318. # - Warn
  319. # - Info
  320. # - Debug
  321. # - Trace
  322. log_level: Warn
  323. # Print all received window events.
  324. print_events: false
  325. # Record all characters and escape sequences as test data.
  326. ref_test: false
  327. # Key bindings
  328. #
  329. # Key bindings are specified as a list of objects. Each binding will specify a
  330. # key and modifiers required to trigger it, terminal modes where the binding is
  331. # applicable, and what should be done when the key binding fires. It can either
  332. # send a byte sequence to the running application (`chars`), execute a
  333. # predefined action (`action`) or fork and execute a specified command plus
  334. # arguments (`command`).
  335. #
  336. # Bindings are always filled by default, but will be replaced when a new binding
  337. # with the same triggers is defined. To unset a default binding, it can be
  338. # mapped to the `None` action.
  339. #
  340. # Example:
  341. # `- { key: V, mods: Control|Shift, action: Paste }`
  342. #
  343. # Available fields:
  344. # - key
  345. # - mods (optional)
  346. # - chars | action | command (exactly one required)
  347. # - mode (optional)
  348. #
  349. # Values for `key`:
  350. # - `A` -> `Z`
  351. # - `F1` -> `F12`
  352. # - `Key1` -> `Key0`
  353. #
  354. # A full list with available key codes can be found here:
  355. # https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
  356. #
  357. # Instead of using the name of the keys, the `key` field also supports using
  358. # the scancode of the desired key. Scancodes have to be specified as a
  359. # decimal number.
  360. # This command will allow you to display the hex scancodes for certain keys:
  361. # `showkey --scancodes`
  362. #
  363. # Values for `mods`:
  364. # - Command
  365. # - Control
  366. # - Option
  367. # - Super
  368. # - Shift
  369. # - Alt
  370. #
  371. # Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
  372. # Whitespace and capitalization is relevant and must match the example.
  373. #
  374. # Values for `chars`:
  375. # The `chars` field writes the specified string to the terminal. This makes
  376. # it possible to pass escape sequences.
  377. # To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
  378. # the command `showkey -a` outside of tmux.
  379. # Note that applications use terminfo to map escape sequences back to
  380. # keys. It is therefore required to update the terminfo when
  381. # changing an escape sequence.
  382. #
  383. # Values for `action`:
  384. # - Paste
  385. # - PasteSelection
  386. # - Copy
  387. # - IncreaseFontSize
  388. # - DecreaseFontSize
  389. # - ResetFontSize
  390. # - ScrollPageUp
  391. # - ScrollPageDown
  392. # - ScrollLineUp
  393. # - ScrollLineDown
  394. # - ScrollToTop
  395. # - ScrollToBottom
  396. # - ClearHistory
  397. # - Hide
  398. # - Quit
  399. # - ClearLogNotice
  400. # - SpawnNewInstance
  401. # - ToggleFullscreen
  402. # - None
  403. #
  404. # Values for `action` (macOS only):
  405. # - ToggleSimpleFullscreen: Enters fullscreen without occupying another space
  406. #
  407. # Values for `command`:
  408. # The `command` field must be a map containing a `program` string and
  409. # an `args` array of command line parameter strings.
  410. #
  411. # Example:
  412. # `command: { program: "alacritty", args: ["-e", "vttest"] }`
  413. #
  414. # Values for `mode`:
  415. # - ~AppCursor
  416. # - AppCursor
  417. # - ~AppKeypad
  418. # - AppKeypad
  419. key_bindings:
  420. # (Windows/Linux only)
  421. #- { key: V, mods: Control|Shift, action: Paste }
  422. #- { key: C, mods: Control|Shift, action: Copy }
  423. #- { key: Insert, mods: Shift, action: PasteSelection }
  424. #- { key: Key0, mods: Control, action: ResetFontSize }
  425. #- { key: Equals, mods: Control, action: IncreaseFontSize }
  426. #- { key: Add, mods: Control, action: IncreaseFontSize }
  427. #- { key: Subtract, mods: Control, action: DecreaseFontSize }
  428. #- { key: Minus, mods: Control, action: DecreaseFontSize }
  429. #- { key: Return, mods: Alt, action: ToggleFullscreen }
  430. # (macOS only)
  431. #- { key: Key0, mods: Command, action: ResetFontSize }
  432. #- { key: Equals, mods: Command, action: IncreaseFontSize }
  433. #- { key: Add, mods: Command, action: IncreaseFontSize }
  434. #- { key: Minus, mods: Command, action: DecreaseFontSize }
  435. #- { key: K, mods: Command, action: ClearHistory }
  436. #- { key: K, mods: Command, chars: "\x0c" }
  437. #- { key: V, mods: Command, action: Paste }
  438. #- { key: C, mods: Command, action: Copy }
  439. #- { key: H, mods: Command, action: Hide }
  440. #- { key: Q, mods: Command, action: Quit }
  441. #- { key: W, mods: Command, action: Quit }
  442. #- { key: F, mods: Command|Control, action: ToggleFullscreen }
  443. - { key: Paste, action: Paste }
  444. - { key: Copy, action: Copy }
  445. - { key: L, mods: Control, action: ClearLogNotice }
  446. - { key: L, mods: Control, chars: "\x0c" }
  447. - { key: Home, mods: Alt, chars: "\x1b[1;3H" }
  448. - { key: Home, chars: "\x1bOH", mode: AppCursor }
  449. - { key: Home, chars: "\x1b[H", mode: ~AppCursor }
  450. - { key: End, mods: Alt, chars: "\x1b[1;3F" }
  451. - { key: End, chars: "\x1bOF", mode: AppCursor }
  452. - { key: End, chars: "\x1b[F", mode: ~AppCursor }
  453. - { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
  454. - { key: PageUp, mods: Shift, chars: "\x1b[5;2~", mode: Alt }
  455. - { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
  456. - { key: PageUp, mods: Alt, chars: "\x1b[5;3~" }
  457. - { key: PageUp, chars: "\x1b[5~" }
  458. - { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
  459. - { key: PageDown, mods: Shift, chars: "\x1b[6;2~", mode: Alt }
  460. - { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
  461. - { key: PageDown, mods: Alt, chars: "\x1b[6;3~" }
  462. - { key: PageDown, chars: "\x1b[6~" }
  463. - { key: Tab, mods: Shift, chars: "\x1b[Z" }
  464. - { key: Back, chars: "\x7f" }
  465. - { key: Back, mods: Alt, chars: "\x1b\x7f" }
  466. - { key: Insert, chars: "\x1b[2~" }
  467. - { key: Delete, chars: "\x1b[3~" }
  468. - { key: Left, mods: Shift, chars: "\x1b[1;2D" }
  469. - { key: Left, mods: Control, chars: "\x1b[1;5D" }
  470. - { key: Left, mods: Alt, chars: "\x1b[1;3D" }
  471. - { key: Left, chars: "\x1b[D", mode: ~AppCursor }
  472. - { key: Left, chars: "\x1bOD", mode: AppCursor }
  473. - { key: Right, mods: Shift, chars: "\x1b[1;2C" }
  474. - { key: Right, mods: Control, chars: "\x1b[1;5C" }
  475. - { key: Right, mods: Alt, chars: "\x1b[1;3C" }
  476. - { key: Right, chars: "\x1b[C", mode: ~AppCursor }
  477. - { key: Right, chars: "\x1bOC", mode: AppCursor }
  478. - { key: Up, mods: Shift, chars: "\x1b[1;2A" }
  479. - { key: Up, mods: Control, chars: "\x1b[1;5A" }
  480. - { key: Up, mods: Alt, chars: "\x1b[1;3A" }
  481. - { key: Up, chars: "\x1b[A", mode: ~AppCursor }
  482. - { key: Up, chars: "\x1bOA", mode: AppCursor }
  483. - { key: Down, mods: Shift, chars: "\x1b[1;2B" }
  484. - { key: Down, mods: Control, chars: "\x1b[1;5B" }
  485. - { key: Down, mods: Alt, chars: "\x1b[1;3B" }
  486. - { key: Down, chars: "\x1b[B", mode: ~AppCursor }
  487. - { key: Down, chars: "\x1bOB", mode: AppCursor }
  488. - { key: F1, chars: "\x1bOP" }
  489. - { key: F2, chars: "\x1bOQ" }
  490. - { key: F3, chars: "\x1bOR" }
  491. - { key: F4, chars: "\x1bOS" }
  492. - { key: F5, chars: "\x1b[15~" }
  493. - { key: F6, chars: "\x1b[17~" }
  494. - { key: F7, chars: "\x1b[18~" }
  495. - { key: F8, chars: "\x1b[19~" }
  496. - { key: F9, chars: "\x1b[20~" }
  497. - { key: F10, chars: "\x1b[21~" }
  498. - { key: F11, chars: "\x1b[23~" }
  499. - { key: F12, chars: "\x1b[24~" }
  500. - { key: F1, mods: Shift, chars: "\x1b[1;2P" }
  501. - { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
  502. - { key: F3, mods: Shift, chars: "\x1b[1;2R" }
  503. - { key: F4, mods: Shift, chars: "\x1b[1;2S" }
  504. - { key: F5, mods: Shift, chars: "\x1b[15;2~" }
  505. - { key: F6, mods: Shift, chars: "\x1b[17;2~" }
  506. - { key: F7, mods: Shift, chars: "\x1b[18;2~" }
  507. - { key: F8, mods: Shift, chars: "\x1b[19;2~" }
  508. - { key: F9, mods: Shift, chars: "\x1b[20;2~" }
  509. - { key: F10, mods: Shift, chars: "\x1b[21;2~" }
  510. - { key: F11, mods: Shift, chars: "\x1b[23;2~" }
  511. - { key: F12, mods: Shift, chars: "\x1b[24;2~" }
  512. - { key: F1, mods: Control, chars: "\x1b[1;5P" }
  513. - { key: F2, mods: Control, chars: "\x1b[1;5Q" }
  514. - { key: F3, mods: Control, chars: "\x1b[1;5R" }
  515. - { key: F4, mods: Control, chars: "\x1b[1;5S" }
  516. - { key: F5, mods: Control, chars: "\x1b[15;5~" }
  517. - { key: F6, mods: Control, chars: "\x1b[17;5~" }
  518. - { key: F7, mods: Control, chars: "\x1b[18;5~" }
  519. - { key: F8, mods: Control, chars: "\x1b[19;5~" }
  520. - { key: F9, mods: Control, chars: "\x1b[20;5~" }
  521. - { key: F10, mods: Control, chars: "\x1b[21;5~" }
  522. - { key: F11, mods: Control, chars: "\x1b[23;5~" }
  523. - { key: F12, mods: Control, chars: "\x1b[24;5~" }
  524. - { key: F1, mods: Alt, chars: "\x1b[1;6P" }
  525. - { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
  526. - { key: F3, mods: Alt, chars: "\x1b[1;6R" }
  527. - { key: F4, mods: Alt, chars: "\x1b[1;6S" }
  528. - { key: F5, mods: Alt, chars: "\x1b[15;6~" }
  529. - { key: F6, mods: Alt, chars: "\x1b[17;6~" }
  530. - { key: F7, mods: Alt, chars: "\x1b[18;6~" }
  531. - { key: F8, mods: Alt, chars: "\x1b[19;6~" }
  532. - { key: F9, mods: Alt, chars: "\x1b[20;6~" }
  533. - { key: F10, mods: Alt, chars: "\x1b[21;6~" }
  534. - { key: F11, mods: Alt, chars: "\x1b[23;6~" }
  535. - { key: F12, mods: Alt, chars: "\x1b[24;6~" }
  536. - { key: F1, mods: Super, chars: "\x1b[1;3P" }
  537. - { key: F2, mods: Super, chars: "\x1b[1;3Q" }
  538. - { key: F3, mods: Super, chars: "\x1b[1;3R" }
  539. - { key: F4, mods: Super, chars: "\x1b[1;3S" }
  540. - { key: F5, mods: Super, chars: "\x1b[15;3~" }
  541. - { key: F6, mods: Super, chars: "\x1b[17;3~" }
  542. - { key: F7, mods: Super, chars: "\x1b[18;3~" }
  543. - { key: F8, mods: Super, chars: "\x1b[19;3~" }
  544. - { key: F9, mods: Super, chars: "\x1b[20;3~" }
  545. - { key: F10, mods: Super, chars: "\x1b[21;3~" }
  546. - { key: F11, mods: Super, chars: "\x1b[23;3~" }
  547. - { key: F12, mods: Super, chars: "\x1b[24;3~" }
  548. - { key: NumpadEnter, chars: "\n" }