Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.74 KB | None | 0 0
  1. # Configuration for Alacritty, the GPU enhanced terminal emulator
  2.  
  3.  
  4. # Any items in the `env` entry below will be added as
  5. # environment variables. Some entries may override variables
  6. # set by alacritty it self.
  7. env:
  8. # TERM env customization.
  9. #
  10. # If this property is not set, alacritty will set it to xterm-256color.
  11. #
  12. # Note that some xterm terminfo databases don't declare support for italics.
  13. # You can verify this by checking for the presence of `smso` and `sitm` in
  14. # `infocmp xterm-256color`.
  15. TERM: xterm-256color
  16.  
  17. # Window dimensions in character columns and lines
  18. # (changes require restart)
  19. dimensions:
  20. columns: 80
  21. lines: 24
  22.  
  23. # Adds this many blank pixels of padding around the window
  24. # Units are physical pixels; this is not DPI aware.
  25. # (change requires restart)
  26. padding:
  27. x: 2
  28. y: 2
  29.  
  30. # The FreeType rasterizer needs to know the device DPI for best results
  31. # (changes require restart)
  32. dpi:
  33. x: 96.0
  34. y: 96.0
  35.  
  36. # Display tabs using this many cells (changes require restart)
  37. tabspaces: 8
  38.  
  39. # When true, bold text is drawn using the bright variant of colors.
  40. draw_bold_text_with_bright_colors: true
  41.  
  42. # Font configuration (changes require restart)
  43. font:
  44. # The normal (roman) font face to use.
  45. normal:
  46. family: Knack Nerd Font # should be "Menlo" or something on macOS.
  47. # Style can be specified to pick a specific face.
  48. # style: Regular
  49.  
  50. # The bold font face
  51. bold:
  52. family: Knack Nerd Font Bold # should be "Menlo" or something on macOS.
  53. # Style can be specified to pick a specific face.
  54. # style: Bold
  55.  
  56. # The italic font face
  57. italic:
  58. family: Knack Nerd Font Italic # should be "Menlo" or something on macOS.
  59. # Style can be specified to pick a specific face.
  60. # style: Italic
  61.  
  62. # Point size of the font
  63. size: 11.0
  64.  
  65. # Offset is the extra space around each character. offset.y can be thought of
  66. # as modifying the linespacing, and offset.x as modifying the letter spacing.
  67. offset:
  68. x: -11.0
  69. y: 0.0
  70.  
  71. # Glyph offset determines the locations of the glyphs within their cells with
  72. # the default being at the bottom. Increase the x offset to move the glyph to
  73. # the right, increase the y offset to move the glyph upward.
  74. glyph_offset:
  75. x: 0.0
  76. y: 0.0
  77.  
  78. # OS X only: use thin stroke font rendering. Thin strokes are suitable
  79. # for retina displays, but for non-retina you probably want this set to
  80. # false.
  81. use_thin_strokes: false
  82.  
  83. # Should display the render timer
  84. render_timer: false
  85.  
  86. # Use custom cursor colors. If true, display the cursor in the cursor.foreground
  87. # and cursor.background colors, otherwise invert the colors of the cursor.
  88. custom_cursor_colors: false
  89.  
  90. # Colors (Gruvbox dark)
  91. colors:
  92. # Default colors
  93. primary:
  94. # hard contrast: background = '0x1d2021'
  95. background: '0x282828'
  96. # soft contrast: background = '0x32302f'
  97. foreground: '0xebdbb2'
  98.  
  99. # Normal colors
  100. normal:
  101. black: '0x282828'
  102. red: '0xcc241d'
  103. green: '0x98971a'
  104. yellow: '0xd79921'
  105. blue: '0x458588'
  106. magenta: '0xb16286'
  107. cyan: '0x689d6a'
  108. white: '0xa89984'
  109.  
  110. # Bright colors
  111. bright:
  112. black: '0x928374'
  113. red: '0xfb4934'
  114. green: '0xb8bb26'
  115. yellow: '0xfabd2f'
  116. blue: '0x83a598'
  117. magenta: '0xd3869b'
  118. cyan: '0x8ec07c'
  119. white: '0xebdbb2'
  120.  
  121. # Dim colors (Optional)
  122. dim:
  123. black: '0x333333'
  124. red: '0xf2777a'
  125. green: '0x99cc99'
  126. yellow: '0xffcc66'
  127. blue: '0x6699cc'
  128. magenta: '0xcc99cc'
  129. cyan: '0x66cccc'
  130. white: '0xdddddd'
  131.  
  132. # Visual Bell
  133. #
  134. # Any time the BEL code is received, Alacritty "rings" the visual bell. Once
  135. # rung, the terminal background will be set to white and transition back to the
  136. # default background color. You can control the rate of this transition by
  137. # setting the `duration` property (represented in milliseconds). You can also
  138. # configure the transition function by setting the `animation` property.
  139. #
  140. # Possible values for `animation`
  141. # `Ease`
  142. # `EaseOut`
  143. # `EaseOutSine`
  144. # `EaseOutQuad`
  145. # `EaseOutCubic`
  146. # `EaseOutQuart`
  147. # `EaseOutQuint`
  148. # `EaseOutExpo`
  149. # `EaseOutCirc`
  150. # `Linear`
  151. #
  152. # To completely disable the visual bell, set its duration to 0.
  153. #
  154. visual_bell:
  155. animation: EaseOutExpo
  156. duration: 0
  157.  
  158. # Background opacity
  159. background_opacity: 1.0
  160.  
  161. # Key bindings
  162. #
  163. # Each binding is defined as an object with some properties. Most of the
  164. # properties are optional. All of the alphabetical keys should have a letter for
  165. # the `key` value such as `V`. Function keys are probably what you would expect
  166. # as well (F1, F2, ..). The number keys above the main keyboard are encoded as
  167. # `Key1`, `Key2`, etc. Keys on the number pad are encoded `Number1`, `Number2`,
  168. # etc. These all match the glutin::VirtualKeyCode variants.
  169. #
  170. # Possible values for `mods`
  171. # `Command`, `Super` refer to the super/command/windows key
  172. # `Control` for the control key
  173. # `Shift` for the Shift key
  174. # `Alt` and `Option` refer to alt/option
  175. #
  176. # mods may be combined with a `|`. For example, requiring control and shift
  177. # looks like:
  178. #
  179. # mods: Control|Shift
  180. #
  181. # The parser is currently quite sensitive to whitespace and capitalization -
  182. # capitalization must match exactly, and piped items must not have whitespace
  183. # around them.
  184. #
  185. # Either an `action`, `chars`, or `command` field must be present.
  186. # `action` must be one of `Paste`, `PasteSelection`, `Copy`, or `Quit`.
  187. # `chars` writes the specified string every time that binding is activated.
  188. # These should generally be escape sequences, but they can be configured to
  189. # send arbitrary strings of bytes.
  190. # `command` must be a map containing a `program` string, and `args` array of
  191. # strings. For example:
  192. # - { ... , command: { program: "alacritty", args: ["-e", "vttest"] } }
  193. #
  194. # Want to add a binding (e.g. "PageUp") but are unsure what the X sequence
  195. # (e.g. "\x1b[5~") is? Open another terminal (like xterm) without tmux,
  196. # then run `showkey -a` to get the sequence associated to a key combination.
  197. key_bindings:
  198. - { key: V, mods: Control|Shift, action: Paste }
  199. - { key: C, mods: Control|Shift, action: Copy }
  200. - { key: Q, mods: Command, action: Quit }
  201. - { key: W, mods: Command, action: Quit }
  202. - { key: Insert, mods: Shift, action: PasteSelection }
  203. - { key: Home, chars: "\x1bOH", mode: AppCursor }
  204. - { key: Home, chars: "\x1b[H", mode: ~AppCursor }
  205. - { key: End, chars: "\x1bOF", mode: AppCursor }
  206. - { key: End, chars: "\x1b[F", mode: ~AppCursor }
  207. - { key: PageUp, mods: Shift, chars: "\x1b[5;2~" }
  208. - { key: PageUp, mods: Control, chars: "\x1b[5;5~" }
  209. - { key: PageUp, chars: "\x1b[5~" }
  210. - { key: PageDown, mods: Shift, chars: "\x1b[6;2~" }
  211. - { key: PageDown, mods: Control, chars: "\x1b[6;5~" }
  212. - { key: PageDown, chars: "\x1b[6~" }
  213. - { key: Left, mods: Shift, chars: "\x1b[1;2D" }
  214. - { key: Left, mods: Control, chars: "\x1b[1;5D" }
  215. - { key: Left, mods: Alt, chars: "\x1b[1;3D" }
  216. - { key: Left, chars: "\x1b[D", mode: ~AppCursor }
  217. - { key: Left, chars: "\x1bOD", mode: AppCursor }
  218. - { key: Right, mods: Shift, chars: "\x1b[1;2C" }
  219. - { key: Right, mods: Control, chars: "\x1b[1;5C" }
  220. - { key: Right, mods: Alt, chars: "\x1b[1;3C" }
  221. - { key: Right, chars: "\x1b[C", mode: ~AppCursor }
  222. - { key: Right, chars: "\x1bOC", mode: AppCursor }
  223. - { key: Up, mods: Shift, chars: "\x1b[1;2A" }
  224. - { key: Up, mods: Control, chars: "\x1b[1;5A" }
  225. - { key: Up, mods: Alt, chars: "\x1b[1;3A" }
  226. - { key: Up, chars: "\x1b[A", mode: ~AppCursor }
  227. - { key: Up, chars: "\x1bOA", mode: AppCursor }
  228. - { key: Down, mods: Shift, chars: "\x1b[1;2B" }
  229. - { key: Down, mods: Control, chars: "\x1b[1;5B" }
  230. - { key: Down, mods: Alt, chars: "\x1b[1;3B" }
  231. - { key: Down, chars: "\x1b[B", mode: ~AppCursor }
  232. - { key: Down, chars: "\x1bOB", mode: AppCursor }
  233. - { key: Tab, mods: Shift, chars: "\x1b[Z" }
  234. - { key: F1, chars: "\x1bOP" }
  235. - { key: F2, chars: "\x1bOQ" }
  236. - { key: F3, chars: "\x1bOR" }
  237. - { key: F4, chars: "\x1bOS" }
  238. - { key: F5, chars: "\x1b[15~" }
  239. - { key: F6, chars: "\x1b[17~" }
  240. - { key: F7, chars: "\x1b[18~" }
  241. - { key: F8, chars: "\x1b[19~" }
  242. - { key: F9, chars: "\x1b[20~" }
  243. - { key: F10, chars: "\x1b[21~" }
  244. - { key: F11, chars: "\x1b[23~" }
  245. - { key: F12, chars: "\x1b[24~" }
  246. - { key: Back, chars: "\x7f" }
  247. - { key: Back, mods: Alt, chars: "\x1b\x7f" }
  248. - { key: Insert, chars: "\x1b[2~" }
  249. - { key: Delete, chars: "\x1b[3~" }
  250.  
  251. # Mouse bindings
  252. #
  253. # Currently doesn't support modifiers. Both the `mouse` and `action` fields must
  254. # be specified.
  255. #
  256. # Values for `mouse`:
  257. # - Middle
  258. # - Left
  259. # - Right
  260. # - Numeric identifier such as `5`
  261. #
  262. # Values for `action`:
  263. # - Paste
  264. # - PasteSelection
  265. # - Copy (TODO)
  266. mouse_bindings:
  267. - { mouse: Middle, action: PasteSelection }
  268.  
  269. mouse:
  270. double_click: { threshold: 300 }
  271. triple_click: { threshold: 300 }
  272.  
  273. selection:
  274. semantic_escape_chars: ",│`|:\"' ()[]{}<>"
  275.  
  276. hide_cursor_when_typing: false
  277.  
  278. # Live config reload (changes require restart)
  279. live_config_reload: true
  280.  
  281. # Shell
  282. #
  283. # You can set shell.program to the path of your favorite shell, e.g. /bin/fish.
  284. # Entries in shell.args are passed unmodified as arguments to the shell.
  285. #shell:
  286. # program: /bin/bash
  287. # args:
  288. # - --login
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement