b9ce82b76775a7efb435454fb2cbc5b38af3eb34

Author
Pavle Portic <git@theedgeofrage.com>
Committer
Pavle Portic <git@theedgeofrage.com>
Date

Message

Add alacritty config

Diff

This diff is truncated to protect this page.

  1diff --git a/dot_config/alacritty/alacritty.yml b/dot_config/alacritty/alacritty.yml
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..29220042f74544dbad7a0900ed5478363933d962
  4--- /dev/null
  5+++ b/dot_config/alacritty/alacritty.yml
  6@@ -0,0 +1,872 @@
  7+# Configuration for Alacritty, the GPU enhanced terminal emulator.
  8+
  9+# Import additional configuration files
 10+#
 11+# Imports are loaded in order, skipping all missing files, with the importing
 12+# file being loaded last. If a field is already present in a previous import, it
 13+# will be replaced.
 14+#
 15+# All imports must either be absolute paths starting with `/`, or paths relative
 16+# to the user's home directory starting with `~/`.
 17+import:
 18+ - ~/.config/alacritty/gruvbox.yaml
 19+
 20+# Any items in the `env` entry below will be added as
 21+# environment variables. Some entries may override variables
 22+# set by alacritty itself.
 23+#env:
 24+  # TERM variable
 25+  #
 26+  # This value is used to set the `$TERM` environment variable for
 27+  # each instance of Alacritty. If it is not present, alacritty will
 28+  # check the local terminfo database and use `alacritty` if it is
 29+  # available, otherwise `xterm-256color` is used.
 30+  #TERM: alacritty
 31+
 32+window:
 33+  # Window dimensions (changes require restart)
 34+  #
 35+  # Number of lines/columns (not pixels) in the terminal. The number of columns
 36+  # must be at least `2`, while using a value of `0` for columns and lines will
 37+  # fall back to the window manager's recommended size.
 38+  #dimensions:
 39+  #  columns: 0
 40+  #  lines: 0
 41+
 42+  # Window position (changes require restart)
 43+  #
 44+  # Specified in number of pixels.
 45+  # If the position is not set, the window manager will handle the placement.
 46+  #position:
 47+  #  x: 0
 48+  #  y: 0
 49+
 50+  # Window padding (changes require restart)
 51+  #
 52+  # Blank space added around the window in pixels. This padding is scaled
 53+  # by DPI and the specified value is always added at both opposing sides.
 54+  #padding:
 55+  #  x: 0
 56+  #  y: 0
 57+
 58+  # Spread additional padding evenly around the terminal content.
 59+  #dynamic_padding: false
 60+
 61+  # Window decorations
 62+  #
 63+  # Values for `decorations`:
 64+  #     - full: Borders and title bar
 65+  #     - none: Neither borders nor title bar
 66+  #
 67+  # Values for `decorations` (macOS only):
 68+  #     - transparent: Title bar, transparent background and title bar buttons
 69+  #     - buttonless: Title bar, transparent background and no title bar buttons
 70+  #decorations: full
 71+
 72+  # Background opacity
 73+  #
 74+  # Window opacity as a floating point number from `0.0` to `1.0`.
 75+  # The value `0.0` is completely transparent and `1.0` is opaque.
 76+  #opacity: 1.0
 77+
 78+  # Startup Mode (changes require restart)
 79+  #
 80+  # Values for `startup_mode`:
 81+  #   - Windowed
 82+  #   - Maximized
 83+  #   - Fullscreen
 84+  #
 85+  # Values for `startup_mode` (macOS only):
 86+  #   - SimpleFullscreen
 87+  #startup_mode: Windowed
 88+
 89+  # Window title
 90+  #title: Alacritty
 91+
 92+  # Allow terminal applications to change Alacritty's window title.
 93+  dynamic_title: true
 94+
 95+  # Window class (Linux/BSD only):
 96+  class:
 97+    # Application instance name
 98+    instance: Alacritty
 99+    # General application class
100+    general: Alacritty
101+
102+  # GTK theme variant (Linux/BSD only)
103+  #
104+  # Override the variant of the GTK theme. Commonly supported values are `dark`
105+  # and `light`. Set this to `None` to use the default theme variant.
106diff --git a/dot_config/alacritty/gruvbox.yaml b/dot_config/alacritty/gruvbox.yaml
107new file mode 100644
108index 0000000000000000000000000000000000000000..9e7925ebbde39a75c7791c770ea05fbca5e896cd
109--- /dev/null
110+++ b/dot_config/alacritty/gruvbox.yaml
111@@ -0,0 +1,86 @@
112+# Colors (Gruvbox dark)
113+colors:
114+  primary:
115+    # hard contrast background - '#1d2021'
116+    background: &gruvbox_dark_bg '#282828'
117+    # soft contrast background - '#32302f'
118+    foreground: '#ebdbb2'
119+    bright_foreground: '#fbf1c7'
120+    dim_foreground: '#a89984'
121+  cursor:
122+    text: CellBackground
123+    cursor: CellForeground
124+  vi_mode_cursor:
125+    text: CellBackground
126+    cursor: CellForeground
127+  # search:
128+  #   matches:
129+  #     foreground: '#000000'
130+  #     background: '#ffffff'
131+  #   focused_match:
132+  #    foreground: CellBackground
133+  #    background: CellForeground
134+  #   bar:
135+  #     background: ''
136+  #     foreground: ''
137+  # line_indicator:
138+  #   foreground: None
139+  #   background: None
140+  selection:
141+    text: CellBackground
142+    background: CellForeground
143+  bright:
144+    black: '#928374'
145+    red: '#fb4934'
146+    green: '#b8bb26'
147+    yellow: '#fabd2f'
148+    blue: '#83a598'
149+    magenta: '#d3869b'
150+    cyan: '#8ec07c'
151+    white: '#ebdbb2'
152+  normal:
153+    black: *gruvbox_dark_bg
154+    red: '#cc241d'
155+    green: '#98971a'
156+    yellow: '#d79921'
157+    blue: '#458588'
158+    magenta: '#b16286'
159+    cyan: '#689d6a'
160+    white: '#a89984'
161+  dim:
162+    black: '#32302f'
163+    red: '#9d0006'
164+    green: '#79740e'
165+    yellow: '#b57614'
166+    blue: '#076678'
167+    magenta: '#8f3f71'
168+    cyan: '#427b58'
169+    white: '#928374'
170+  indexed_colors:
171+    - {index: 66, color: '#a89984'}
172+    - {index: 72, color: '#689d6a'}
173+    - {index: 106, color: '#98971a'}
174+    - {index: 108, color: '#8ec07c'}
175+    - {index: 109, color: '#83a598'}
176+    - {index: 124, color: '#cc241d'}
177+    - {index: 132, color: '#b16286'}
178+    - {index: 142, color: '#b8bb26'}
179+    - {index: 166, color: '#d65d0e'}
180+    - {index: 167, color: '#fb4934'}
181+    - {index: 172, color: '#d79921'}
182+    - {index: 175, color: '#d3869b'}
183+    - {index: 208, color: '#fe8019'}
184+    - {index: 214, color: '#fabd2f'}
185+    - {index: 223, color: '#ebdbb2'}
186+    - {index: 229, color: '#fbf1c7'}
187+    - {index: 234, color: '#1d2021'}
188+    - {index: 235, color: '#282828'}
189+    - {index: 236, color: '#32302f'}
190+    - {index: 237, color: '#3c3836'}
191+    - {index: 239, color: '#504945'}
192+    - {index: 241, color: '#665c54'}
193+    - {index: 243, color: '#7c6f64'}
194+    - {index: 245, color: '#928374'}
195+    - {index: 246, color: '#a89984'}
196+    - {index: 248, color: '#bdae93'}
197+    - {index: 250, color: '#d5c4a1'}