Dobbie03

Alacritty

Jan 2nd, 2023
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.55 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 Nerd Font"
  88.  
  89. # The `style` can be specified to pick a specific face.
  90. #style: Regular
  91.  
  92. # Bold font face
  93. bold:
  94. #family: Droid Sans Mono
  95. # Font family
  96. #
  97. # If the bold family is not specified, it will fall back to the
  98. # value specified for the normal font.
  99. family: "Fira Code Nerd Font"
  100.  
  101. # The `style` can be specified to pick a specific face.
  102. #style: Bold
  103.  
  104. # Italic font face
  105. italic:
  106. #family: Droid Sans Mono
  107. # Font family
  108. #
  109. # If the italic family is not specified, it will fall back to the
  110. # value specified for the normal font.
  111. family: "Fira Code Nerd Font"
  112.  
  113. # The `style` can be specified to pick a specific face.
  114. #style: Italic
  115.  
  116. # Point size
  117. size: 11.5
  118. # Offset is the extra space around each character. `offset.y` can be thought of
  119. # as modifying the line spacing, and `offset.x` as modifying the letter spacing.
  120. offset:
  121. x: -1
  122. y: 0
  123.  
  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.  
  131. # Thin stroke font rendering (macOS only)
  132. #
  133. # Thin strokes are suitable for retina displays, but for non-retina screens
  134. # it is recommended to set `use_thin_strokes` to `false`
  135. #
  136. # macOS >= 10.14.x:
  137. #
  138. # If the font quality on non-retina display looks bad then set
  139. # `use_thin_strokes` to `true` and enable font smoothing by running the
  140. # following command:
  141. # `defaults write -g CGFontRenderingFontSmoothingDisabled -bool NO`
  142. #
  143. # This is a global setting and will require a log out or restart to take
  144. # effect.
  145. #use_thin_strokes: false
  146.  
  147. # Display the time it takes to redraw each frame.
  148. #render_timer: false
  149.  
  150. # Keep the log file after quitting Alacritty.
  151. debug:
  152. persistent_logging: false
  153.  
  154. # If `true`, bold text is drawn using the bright color variants.
  155. draw_bold_text_with_bright_colors: true
  156.  
  157. cursor:
  158. text: '#a7a7a7'
  159. cursor: '#92b561'
  160.  
  161. selection:
  162. text: '#c6c6c6'
  163. background: '#9d5b61'
  164.  
  165. colors:
  166. # Default colors
  167. primary:
  168. background: '0x202020'
  169. foreground: '0xb7b7b7'
  170.  
  171. # Normal colors
  172. normal:
  173. black: '#2d2d2d'
  174. red: '#9d5b61'
  175. green: '#838d69'
  176. yellow: '#b38d6a'
  177. blue: '#606d84'
  178. magenta: '#766577'
  179. cyan: '#808fa0'
  180. white: '#9c9a9a'
  181.  
  182. # Bright colors
  183. bright:
  184. black: '#605f61'
  185. red: '#9d5b61'
  186. green: '#838b69'
  187. yellow: '#b38d6a'
  188. blue: '#606d84'
  189. magenta: '#766577'
  190. cyan: '#808fa0'
  191. white: '#9c9a9a'
  192.  
  193. # Visual Bell
  194. #
  195. # Any time the BEL code is received, Alacritty "rings" the visual bell. Once
  196. # rung, the terminal background will be set to white and transition back to the
  197. # default background color. You can control the rate of this transition by
  198. # setting the `duration` property (represented in milliseconds). You can also
  199. # configure the transition function by setting the `animation` property.
  200. #
  201. # Values for `animation`:
  202. # - Ease
  203. # - EaseOut
  204. # - EaseOutSine
  205. # - EaseOutQuad
  206. # - EaseOutCubic
  207. # - EaseOutQuart
  208. # - EaseOutQuint
  209. # - EaseOutExpo
  210. # - EaseOutCirc
  211. # - Linear
  212. #
  213. # Specifying a `duration` of `0` will disable the visual bell.
  214. bell:
  215. animation: EaseOutExpo
  216. duration: 100
  217. color: "#a7a7a7"
  218.  
  219. # Background opacity
  220. #
  221. # Window opacity as a floating point number from `0.0` to `1.0`.
  222. # The value `0.0` is completely transparent and `1.0` is opaque.
  223. window.opacity: 1.0
  224.  
  225. # Mouse bindings
  226. #
  227. # Available fields:
  228. # - mouse
  229. # - action
  230. # - mods (optional)
  231. #
  232. # Values for `mouse`:
  233. # - Middle
  234. # - Left
  235. # - Right
  236. # - Numeric identifier such as `5`
  237. #
  238. # All available `mods` and `action` values are documented in the key binding
  239. # section.
  240. mouse_bindings:
  241. - { mouse: Middle, action: PasteSelection }
  242.  
  243. mouse:
  244. # Click settings
  245. #
  246. # The `double_click` and `triple_click` settings control the time
  247. # alacritty should wait for accepting multiple clicks as one double
  248. # or triple click.
  249. double_click: { threshold: 300 }
  250. triple_click: { threshold: 300 }
  251.  
  252. # If this is `true`, the cursor is temporarily hidden when typing.
  253. hide_when_typing: true
  254.  
  255. hints:
  256. # URL launcher
  257. #
  258. # This program is executed when clicking on a text which is recognized as a URL.
  259. # The URL is always added to the command as the last parameter.
  260. #
  261. # When set to `None`, URL launching will be disabled completely.
  262. #
  263. # Default:
  264. # - (macOS) open
  265. # - (Linux) xdg-open
  266. # - (Windows) explorer
  267. #launcher: xdg-open
  268.  
  269. # URL modifiers
  270. #
  271. # These are the modifiers that need to be held down for opening URLs when clicking
  272. # on them. The available modifiers are documented in the key binding section.
  273. modifiers: None
  274.  
  275. selection:
  276. semantic_escape_chars: ',│`|:"'' ()[]{}<>'
  277.  
  278. # When set to `true`, selected text will be copied to the primary clipboard.
  279. save_to_clipboard: true
  280.  
  281. # Allow terminal applications to change Alacritty's window title.
  282. window.dynamic_title: true
  283.  
  284. cursor:
  285. # Cursor style
  286. #
  287. # Values for `style`:
  288. # - ▇ Block
  289. # - _ Underline
  290. # - | Beam
  291. style: Block
  292.  
  293. # If this is `true`, the cursor will be rendered as a hollow box when the
  294. # window is not focused.
  295. unfocused_hollow: true
  296.  
  297. # Live config reload (changes require restart)
  298. live_config_reload: true
  299.  
  300. # Shell
  301. #
  302. # You can set `shell.program` to the path of your favorite shell, e.g. `/bin/fish`.
  303. # Entries in `shell.args` are passed unmodified as arguments to the shell.
  304. #
  305. # Default:
  306. # - (Linux/macOS) /bin/bash --login
  307. # - (Windows) powershell
  308. # args:
  309. # - --login
  310.  
  311. # Windows 10 ConPTY backend (Windows only)
  312. #
  313. # This will enable better color support and may resolve other issues,
  314. # however this API and its implementation is still young and so is
  315. # disabled by default, as stability may not be as good as the winpty
  316. # backend.
  317. #
  318. # Alacritty will fall back to the WinPTY automatically if the ConPTY
  319. # backend cannot be initialized.
  320. enable_experimental_conpty_backend: false
  321.  
  322. # Send ESC (\x1b) before characters when alt is pressed.
  323. alt_send_esc: true
  324.  
  325. # Key bindings
  326. #
  327. # Key bindings are specified as a list of objects. Each binding will specify a
  328. # key and modifiers required to trigger it, terminal modes where the binding is
  329. # applicable, and what should be done when the key binding fires. It can either
  330. # send a byte sequence to the running application (`chars`), execute a
  331. # predefined action (`action`) or fork and execute a specified command plus
  332. # arguments (`command`).
  333. #
  334. # Bindings are always filled by default, but will be replaced when a new binding
  335. # with the same triggers is defined. To unset a default binding, it can be
  336. # mapped to the `None` action.
  337. #
  338. # Example:
  339. # `- { key: V, mods: Control|Shift, action: Paste }`
  340. #
  341. # Available fields:
  342. # - key
  343. # - mods (optional)
  344. # - chars | action | command (exactly one required)
  345. # - mode (optional)
  346. #
  347. # Values for `key`:
  348. # - `A` -> `Z`
  349. # - `F1` -> `F12`
  350. # - `Key1` -> `Key0`
  351. #
  352. # A full list with available key codes can be found here:
  353. # https://docs.rs/glutin/*/glutin/enum.VirtualKeyCode.html#variants
  354. #
  355. # Instead of using the name of the keys, the `key` field also supports using
  356. # the scancode of the desired key. Scancodes have to be specified as a
  357. # decimal number.
  358. # This command will allow you to display the hex scancodes for certain keys:
  359. # `showkey --scancodes`
  360. #
  361. # Values for `mods`:
  362. # - Command
  363. # - Control
  364. # - Super
  365. # - Shift
  366. # - Alt
  367. #
  368. # Multiple `mods` can be combined using `|` like this: `mods: Control|Shift`.
  369. # Whitespace and capitalization is relevant and must match the example.
  370. #
  371. # Values for `chars`:
  372. # The `chars` field writes the specified string to the terminal. This makes
  373. # it possible to pass escape sequences.
  374. # To find escape codes for bindings like `PageUp` ("\x1b[5~"), you can run
  375. # the command `showkey -a` outside of tmux.
  376. # Note that applications use terminfo to map escape sequences back to
  377. # keys. It is therefore required to update the terminfo when
  378. # changing an escape sequence.
  379. #
  380. # Values for `action`:
  381. # - Paste
  382. # - PasteSelection
  383. # - Copy
  384. # - IncreaseFontSize
  385. # - DecreaseFontSize
  386. # - ResetFontSize
  387. # - ScrollPageUp
  388. # - ScrollPageDown
  389. # - ScrollToTop
  390. # - ScrollToBottom
  391. # - ClearHistory
  392. # - Hide
  393. # - Quit
  394. # - ClearLogNotice
  395. # - SpawnNewInstance
  396. # - None
  397. #
  398. # Values for `command`:
  399. # The `command` field must be a map containing a `program` string and
  400. # an `args` array of command line parameter strings.
  401. #
  402. # Example:
  403. # `command: { program: "alacritty", args: ["-e", "vttest"] }`
  404. #
  405. # Values for `mode`:
  406. # - ~AppCursor
  407. # - AppCursor
  408. # - ~AppKeypad
  409. # - AppKeypad
  410. key_bindings:
  411. # (Windows/Linux only)
  412. #- { key: V, mods: Control|Shift, action: Paste }
  413. #- { key: C, mods: Control|Shift, action: Copy }
  414. #- { key: Insert, mods: Shift, action: PasteSelection }
  415. #- { key: Key0, mods: Control, action: ResetFontSize }
  416. #- { key: Equals, mods: Control, action: IncreaseFontSize }
  417. #- { key: Subtract, mods: Control, action: DecreaseFontSize }
  418.  
  419. # (macOS only)
  420. #- { key: Key0, mods: Command, action: ResetFontSize }
  421. #- { key: Equals, mods: Command, action: IncreaseFontSize }
  422. #- { key: Minus, mods: Command, action: DecreaseFontSize }
  423. #- { key: K, mods: Command, action: ClearHistory }
  424. #- { key: K, mods: Command, chars: "\x0c" }
  425. #- { key: V, mods: Command, action: Paste }
  426. #- { key: C, mods: Command, action: Copy }
  427. #- { key: H, mods: Command, action: Hide }
  428. #- { key: Q, mods: Command, action: Quit }
  429. #- { key: W, mods: Command, action: Quit }
  430.  
  431. - { key: Paste, action: Paste }
  432. - { key: Copy, action: Copy }
  433. - { key: L, mods: Control, action: ClearLogNotice }
  434. - { key: L, mods: Control, chars: "\x0c" }
  435. - { key: Home, chars: "\x1bOH", mode: AppCursor }
  436. - { key: Home, chars: "\x1b[H", mode: ~AppCursor }
  437. - { key: End, chars: "\x1bOF", mode: AppCursor }
  438. - { key: End, chars: "\x1b[F", mode: ~AppCursor }
  439. - { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt }
  440. - { key: PageUp, mods: Shift, chars: "\x1b[5;2~", mode: Alt }
  441. - { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
  442. - { key: PageUp, chars: "\x1b[5~" }
  443. - { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt }
  444. - { key: PageDown, mods: Shift, chars: "\x1b[6;2~", mode: Alt }
  445. - { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
  446. - { key: PageDown, chars: "\x1b[6~" }
  447. - { key: Tab, mods: Shift, chars: "\x1b[Z" }
  448. - { key: Back, chars: "\x7f" }
  449. - { key: Back, mods: Alt, chars: "\x1b\x7f" }
  450. - { key: Insert, chars: "\x1b[2~" }
  451. - { key: Delete, chars: "\x1b[3~" }
  452. - { key: Left, mods: Shift, chars: "\x1b[1;2D" }
  453. - { key: Left, mods: Control, chars: "\x1b[1;5D" }
  454. - { key: Left, mods: Alt, chars: "\x1b[1;3D" }
  455. - { key: Left, chars: "\x1b[D", mode: ~AppCursor }
  456. - { key: Left, chars: "\x1bOD", mode: AppCursor }
  457. - { key: Right, mods: Shift, chars: "\x1b[1;2C" }
  458. - { key: Right, mods: Control, chars: "\x1b[1;5C" }
  459. - { key: Right, mods: Alt, chars: "\x1b[1;3C" }
  460. - { key: Right, chars: "\x1b[C", mode: ~AppCursor }
  461. - { key: Right, chars: "\x1bOC", mode: AppCursor }
  462. - { key: Up, mods: Shift, chars: "\x1b[1;2A" }
  463. - { key: Up, mods: Control, chars: "\x1b[1;5A" }
  464. - { key: Up, mods: Alt, chars: "\x1b[1;3A" }
  465. - { key: Up, chars: "\x1b[A", mode: ~AppCursor }
  466. - { key: Up, chars: "\x1bOA", mode: AppCursor }
  467. - { key: Down, mods: Shift, chars: "\x1b[1;2B" }
  468. - { key: Down, mods: Control, chars: "\x1b[1;5B" }
  469. - { key: Down, mods: Alt, chars: "\x1b[1;3B" }
  470. - { key: Down, chars: "\x1b[B", mode: ~AppCursor }
  471. - { key: Down, chars: "\x1bOB", mode: AppCursor }
  472. - { key: F1, chars: "\x1bOP" }
  473. - { key: F2, chars: "\x1bOQ" }
  474. - { key: F3, chars: "\x1bOR" }
  475. - { key: F4, chars: "\x1bOS" }
  476. - { key: F5, chars: "\x1b[15~" }
  477. - { key: F6, chars: "\x1b[17~" }
  478. - { key: F7, chars: "\x1b[18~" }
  479. - { key: F8, chars: "\x1b[19~" }
  480. - { key: F9, chars: "\x1b[20~" }
  481. - { key: F10, chars: "\x1b[21~" }
  482. - { key: F11, chars: "\x1b[23~" }
  483. - { key: F12, chars: "\x1b[24~" }
  484. - { key: F1, mods: Shift, chars: "\x1b[1;2P" }
  485. - { key: F2, mods: Shift, chars: "\x1b[1;2Q" }
  486. - { key: F3, mods: Shift, chars: "\x1b[1;2R" }
  487. - { key: F4, mods: Shift, chars: "\x1b[1;2S" }
  488. - { key: F5, mods: Shift, chars: "\x1b[15;2~" }
  489. - { key: F6, mods: Shift, chars: "\x1b[17;2~" }
  490. - { key: F7, mods: Shift, chars: "\x1b[18;2~" }
  491. - { key: F8, mods: Shift, chars: "\x1b[19;2~" }
  492. - { key: F9, mods: Shift, chars: "\x1b[20;2~" }
  493. - { key: F10, mods: Shift, chars: "\x1b[21;2~" }
  494. - { key: F11, mods: Shift, chars: "\x1b[23;2~" }
  495. - { key: F12, mods: Shift, chars: "\x1b[24;2~" }
  496. - { key: F1, mods: Control, chars: "\x1b[1;5P" }
  497. - { key: F2, mods: Control, chars: "\x1b[1;5Q" }
  498. - { key: F3, mods: Control, chars: "\x1b[1;5R" }
  499. - { key: F4, mods: Control, chars: "\x1b[1;5S" }
  500. - { key: F5, mods: Control, chars: "\x1b[15;5~" }
  501. - { key: F6, mods: Control, chars: "\x1b[17;5~" }
  502. - { key: F7, mods: Control, chars: "\x1b[18;5~" }
  503. - { key: F8, mods: Control, chars: "\x1b[19;5~" }
  504. - { key: F9, mods: Control, chars: "\x1b[20;5~" }
  505. - { key: F10, mods: Control, chars: "\x1b[21;5~" }
  506. - { key: F11, mods: Control, chars: "\x1b[23;5~" }
  507. - { key: F12, mods: Control, chars: "\x1b[24;5~" }
  508. - { key: F1, mods: Alt, chars: "\x1b[1;6P" }
  509. - { key: F2, mods: Alt, chars: "\x1b[1;6Q" }
  510. - { key: F3, mods: Alt, chars: "\x1b[1;6R" }
  511. - { key: F4, mods: Alt, chars: "\x1b[1;6S" }
  512. - { key: F5, mods: Alt, chars: "\x1b[15;6~" }
  513. - { key: F6, mods: Alt, chars: "\x1b[17;6~" }
  514. - { key: F7, mods: Alt, chars: "\x1b[18;6~" }
  515. - { key: F8, mods: Alt, chars: "\x1b[19;6~" }
  516. - { key: F9, mods: Alt, chars: "\x1b[20;6~" }
  517. - { key: F10, mods: Alt, chars: "\x1b[21;6~" }
  518. - { key: F11, mods: Alt, chars: "\x1b[23;6~" }
  519. - { key: F12, mods: Alt, chars: "\x1b[24;6~" }
  520. - { key: F1, mods: Super, chars: "\x1b[1;3P" }
  521. - { key: F2, mods: Super, chars: "\x1b[1;3Q" }
  522. - { key: F3, mods: Super, chars: "\x1b[1;3R" }
  523. - { key: F4, mods: Super, chars: "\x1b[1;3S" }
  524. - { key: F5, mods: Super, chars: "\x1b[15;3~" }
  525. - { key: F6, mods: Super, chars: "\x1b[17;3~" }
  526. - { key: F7, mods: Super, chars: "\x1b[18;3~" }
  527. - { key: F8, mods: Super, chars: "\x1b[19;3~" }
  528. - { key: F9, mods: Super, chars: "\x1b[20;3~" }
  529. - { key: F10, mods: Super, chars: "\x1b[21;3~" }
  530. - { key: F11, mods: Super, chars: "\x1b[23;3~" }
  531. - { key: F12, mods: Super, chars: "\x1b[24;3~" }
  532. - { key: NumpadEnter, chars: "\n" }
  533.  
Add Comment
Please, Sign In to add comment