7e05f1efa603c278f0c3e43692c6a874aa1a6ee2

Author
TheEdgeOfRage <git@theedgeofrage.com>
Committer
TheEdgeOfRage <git@theedgeofrage.com>
Date

Message

Migrate alacritty config to toml

Diff

This diff is truncated to protect this page.

  1diff --git a/dot_config/alacritty/alacritty.toml.tmpl b/dot_config/alacritty/alacritty.toml.tmpl
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..f112135d95675c3a27010702c1f769500db9bd42
  4--- /dev/null
  5+++ b/dot_config/alacritty/alacritty.toml.tmpl
  6@@ -0,0 +1,22 @@
  7+import = ["/home/pavle/.config/alacritty/gruvbox.toml"]
  8+
  9+[font]
 10+size = {{ .alacritty.font.size }}
 11+
 12+[font.normal]
 13+family = "MonoFont"
 14+style = "Regular"
 15+
 16+[font.offset]
 17+x = {{ .alacritty.font.offset.x }}
 18+y = {{ .alacritty.font.offset.y }}
 19+
 20+[scrolling]
 21+history = 40000
 22+
 23+[window]
 24+dynamic_title = true
 25+
 26+[window.class]
 27+general = "Alacritty"
 28+instance = "Alacritty"
 29diff --git a/dot_config/alacritty/alacritty.yml.tmpl b/dot_config/alacritty/alacritty.yml.tmpl
 30deleted file mode 100644
 31index 93493d8cc46e76e407445534560d93e088e28ab0..0000000000000000000000000000000000000000
 32--- a/dot_config/alacritty/alacritty.yml.tmpl
 33+++ /dev/null
 34@@ -1,652 +0,0 @@
 35-# Font configuration
 36-font:
 37-  # Normal (roman) font face
 38-  normal:
 39-    family: MonoFont
 40-    style: Regular
 41-
 42-  size: {{ .alacritty.font.size }}
 43-
 44-  # Offset is the extra space around each character. `offset.y` can be thought
 45-  # of as modifying the line spacing, and `offset.x` as modifying the letter
 46-  # spacing.
 47-  offset:
 48-   x: {{ .alacritty.font.offset.x }}
 49-   y: {{ .alacritty.font.offset.y }}
 50-
 51-  # Glyph offset determines the locations of the glyphs within their cells with
 52-  # the default being at the bottom. Increasing `x` moves the glyph to the
 53-  # right, increasing `y` moves the glyph upward.
 54-  # glyph_offset:
 55-  #  x: 0
 56-  #  y: 26
 57-
 58-  # Use built-in font for box drawing characters.
 59-  #
 60-  # If `true`, Alacritty will use a custom built-in font for box drawing
 61-  # characters (Unicode points 2500 - 259f).
 62-  #
 63-  #builtin_box_drawing: true
 64-
 65-# Import additional configuration files
 66-#
 67-# Imports are loaded in order, skipping all missing files, with the importing
 68-# file being loaded last. If a field is already present in a previous import, it
 69-# will be replaced.
 70-#
 71-# All imports must either be absolute paths starting with `/`, or paths relative
 72-# to the user's home directory starting with `~/`.
 73-import:
 74- - ~/.config/alacritty/gruvbox.yaml
 75-
 76-# Any items in the `env` entry below will be added as
 77-# environment variables. Some entries may override variables
 78-# set by alacritty itself.
 79-#env:
 80-  # TERM variable
 81-  #
 82-  # This value is used to set the `$TERM` environment variable for
 83-  # each instance of Alacritty. If it is not present, alacritty will
 84-  # check the local terminfo database and use `alacritty` if it is
 85-  # available, otherwise `xterm-256color` is used.
 86-  #TERM: alacritty
 87-
 88-window:
 89-  # Window decorations
 90-  #
 91-  # Values for `decorations`:
 92-  #     - full: Borders and title bar
 93-  #     - none: Neither borders nor title bar
 94-  #
 95-  # Values for `decorations` (macOS only):
 96-  #     - transparent: Title bar, transparent background and title bar buttons
 97-  #     - buttonless: Title bar, transparent background and no title bar buttons
 98-  #decorations: full
 99-
100-  # Window title
101-  #title: Alacritty
102-
103-  # Allow terminal applications to change Alacritty's window title.
104-  dynamic_title: true
105-
106-  # Window class (Linux/BSD only):
107-  class:
108-    # Application instance name
109-    instance: Alacritty
110-    # General application class
111-    general: Alacritty
112-
113-scrolling:
114-  # Maximum number of lines in the scrollback buffer.
115-  # Specifying '0' will disable scrolling.
116-  history: 40000
117-
118-  # Scrolling distance multiplier.
119-  #multiplier: 3
120-
121-# If `true`, bold text is drawn using the bright color variants.
122-#draw_bold_text_with_bright_colors: false
123-
124-# Colors (Tomorrow Night)
125-#colors:
126-  # Default colors
127-  #primary:
128-  #  background: '#1d1f21'
129-  #  foreground: '#c5c8c6'
130-
131-    # Bright and dim foreground colors
132-    #
133-    # The dimmed foreground color is calculated automatically if it is not
134diff --git a/dot_config/alacritty/gruvbox.toml b/dot_config/alacritty/gruvbox.toml
135new file mode 100644
136index 0000000000000000000000000000000000000000..4cd9640280b201d62114e6824e14135e0b95f9b2
137--- /dev/null
138+++ b/dot_config/alacritty/gruvbox.toml
139@@ -0,0 +1,168 @@
140+[colors.primary]
141+background = "#282828"
142+bright_foreground = "#fbf1c7"
143+dim_foreground = "#a89984"
144+foreground = "#ebdbb2"
145+
146+[colors.normal]
147+black = "#282828"
148+blue = "#458588"
149+cyan = "#689d6a"
150+green = "#98971a"
151+magenta = "#b16286"
152+red = "#cc241d"
153+white = "#a89984"
154+yellow = "#d79921"
155+
156+[colors.dim]
157+black = "#32302f"
158+blue = "#076678"
159+cyan = "#427b58"
160+green = "#79740e"
161+magenta = "#8f3f71"
162+red = "#9d0006"
163+white = "#928374"
164+yellow = "#b57614"
165+
166+[colors.bright]
167+black = "#928374"
168+blue = "#83a598"
169+cyan = "#8ec07c"
170+green = "#b8bb26"
171+magenta = "#d3869b"
172+red = "#fb4934"
173+white = "#ebdbb2"
174+yellow = "#fabd2f"
175+
176+[colors.cursor]
177+cursor = "CellForeground"
178+text = "CellBackground"
179+
180+[colors.line_indicator]
181+background = "None"
182+foreground = "None"
183+
184+[colors.search.focused_match]
185+background = "#fe8019"
186+foreground = "#282828"
187+
188+[colors.search.matches]
189+background = "#d79921"
190+foreground = "#282828"
191+
192+[colors.selection]
193+background = "CellForeground"
194+text = "CellBackground"
195+
196+[colors.vi_mode_cursor]
197+cursor = "CellForeground"
198+text = "CellBackground"
199+
200+[[colors.indexed_colors]]
201+color = "#a89984"
202+index = 66
203+
204+[[colors.indexed_colors]]
205+color = "#689d6a"
206+index = 72
207+
208+[[colors.indexed_colors]]
209+color = "#98971a"
210+index = 106
211+
212+[[colors.indexed_colors]]
213+color = "#8ec07c"
214+index = 108
215+
216+[[colors.indexed_colors]]
217+color = "#83a598"
218+index = 109
219+
220+[[colors.indexed_colors]]
221+color = "#cc241d"
222+index = 124
223+
224+[[colors.indexed_colors]]
225+color = "#b16286"
226+index = 132
227+
228+[[colors.indexed_colors]]
229+color = "#b8bb26"
230+index = 142
231+
232+[[colors.indexed_colors]]
233+color = "#d65d0e"
234+index = 166
235+
236+[[colors.indexed_colors]]
237+color = "#fb4934"
238+index = 167
239diff --git a/dot_config/alacritty/gruvbox.yaml b/dot_config/alacritty/gruvbox.yaml
240deleted file mode 100644
241index 9e7925ebbde39a75c7791c770ea05fbca5e896cd..0000000000000000000000000000000000000000
242--- a/dot_config/alacritty/gruvbox.yaml
243+++ /dev/null
244@@ -1,86 +0,0 @@
245-# Colors (Gruvbox dark)
246-colors:
247-  primary:
248-    # hard contrast background - '#1d2021'
249-    background: &gruvbox_dark_bg '#282828'
250-    # soft contrast background - '#32302f'
251-    foreground: '#ebdbb2'
252-    bright_foreground: '#fbf1c7'
253-    dim_foreground: '#a89984'
254-  cursor:
255-    text: CellBackground
256-    cursor: CellForeground
257-  vi_mode_cursor:
258-    text: CellBackground
259-    cursor: CellForeground
260-  # search:
261-  #   matches:
262-  #     foreground: '#000000'
263-  #     background: '#ffffff'
264-  #   focused_match:
265-  #    foreground: CellBackground
266-  #    background: CellForeground
267-  #   bar:
268-  #     background: ''
269-  #     foreground: ''
270-  # line_indicator:
271-  #   foreground: None
272-  #   background: None
273-  selection:
274-    text: CellBackground
275-    background: CellForeground
276-  bright:
277-    black: '#928374'
278-    red: '#fb4934'
279-    green: '#b8bb26'
280-    yellow: '#fabd2f'
281-    blue: '#83a598'
282-    magenta: '#d3869b'
283-    cyan: '#8ec07c'
284-    white: '#ebdbb2'
285-  normal:
286-    black: *gruvbox_dark_bg
287-    red: '#cc241d'
288-    green: '#98971a'
289-    yellow: '#d79921'
290-    blue: '#458588'
291-    magenta: '#b16286'
292-    cyan: '#689d6a'
293-    white: '#a89984'
294-  dim:
295-    black: '#32302f'
296-    red: '#9d0006'
297-    green: '#79740e'
298-    yellow: '#b57614'
299-    blue: '#076678'
300-    magenta: '#8f3f71'
301-    cyan: '#427b58'
302-    white: '#928374'
303-  indexed_colors:
304-    - {index: 66, color: '#a89984'}
305-    - {index: 72, color: '#689d6a'}
306-    - {index: 106, color: '#98971a'}
307-    - {index: 108, color: '#8ec07c'}
308-    - {index: 109, color: '#83a598'}
309-    - {index: 124, color: '#cc241d'}
310-    - {index: 132, color: '#b16286'}
311-    - {index: 142, color: '#b8bb26'}
312-    - {index: 166, color: '#d65d0e'}
313-    - {index: 167, color: '#fb4934'}
314-    - {index: 172, color: '#d79921'}
315-    - {index: 175, color: '#d3869b'}
316-    - {index: 208, color: '#fe8019'}
317-    - {index: 214, color: '#fabd2f'}
318-    - {index: 223, color: '#ebdbb2'}
319-    - {index: 229, color: '#fbf1c7'}
320-    - {index: 234, color: '#1d2021'}
321-    - {index: 235, color: '#282828'}
322-    - {index: 236, color: '#32302f'}
323-    - {index: 237, color: '#3c3836'}
324-    - {index: 239, color: '#504945'}
325-    - {index: 241, color: '#665c54'}
326-    - {index: 243, color: '#7c6f64'}
327-    - {index: 245, color: '#928374'}
328-    - {index: 246, color: '#a89984'}
329-    - {index: 248, color: '#bdae93'}
330-    - {index: 250, color: '#d5c4a1'}