Dobbie03

Alacritty

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