Advertisement
Guest User

Untitled

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