From 91d5f348050a4c57c314d447dcaca2a7b32591b6 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Thu, 22 Dec 2022 15:47:53 +0100 Subject: [PATCH] feat(alacritty): add configuration for Alacritty terminal --- .dotbot.conf.yaml | 1 + alacritty/alacritty.yml | 138 ++++++++++++++++++++++++++ alacritty/themes/tokyonight_day.yml | 34 +++++++ alacritty/themes/tokyonight_moon.yml | 34 +++++++ alacritty/themes/tokyonight_night.yml | 34 +++++++ alacritty/themes/tokyonight_storm.yml | 34 +++++++ 6 files changed, 275 insertions(+) create mode 100644 alacritty/alacritty.yml create mode 100644 alacritty/themes/tokyonight_day.yml create mode 100644 alacritty/themes/tokyonight_moon.yml create mode 100644 alacritty/themes/tokyonight_night.yml create mode 100644 alacritty/themes/tokyonight_storm.yml diff --git a/.dotbot.conf.yaml b/.dotbot.conf.yaml index 1c64cad..1ca2f48 100644 --- a/.dotbot.conf.yaml +++ b/.dotbot.conf.yaml @@ -8,6 +8,7 @@ ~/.ack: ack ~/.ag: ag ~/.asdfrc: asdf/asdfrc + ~/.config/alacritty: alacritty ~/.config/base16-shell: .base16-shell ~/.config/gh/config.yml: github/config.yml ~/.config/karabiner: karabiner diff --git a/alacritty/alacritty.yml b/alacritty/alacritty.yml new file mode 100644 index 0000000..bbc08a2 --- /dev/null +++ b/alacritty/alacritty.yml @@ -0,0 +1,138 @@ +# Configuration for Alacritty, the GPU enhanced terminal emulator. +# https://github.com/alacritty/alacritty/blob/master/alacritty.yml +window: + opacity: 0.9 + dimensions: + columns: 100 + lines: 30 + padding: + x: 15 + y: 15 + decorations: buttonless + startup_mode: Windowed + dynamic_title: true +scrolling: + history: 10000 + multiplier: 0 +font: + normal: + family: FiraCode Nerd Font + bold: + family: FiraCode Nerd Font + style: bold + italic: + family: FiraCode Nerd Font + style: Italic + bold_italic: + family: FiraCode Nerd Font + style: bold italic + size: 20.0 + offset: + x: 0 + y: 0 +draw_bold_text_with_bright_colors: true +colors: + primary: + background: "#1d1f21" + foreground: "#c5c8c6" + cursor: + text: CellBackground + cursor: CellForeground + vi_mode_cursor: + text: CellBackground + cursor: CellForeground + selection: + text: CellBackground + background: CellForeground + footer_bar: + background: "#1d1f21" + foreground: "#c5c8c6" + search: + matches: + foreground: "#000000" + background: "#ffffff" +cursor: + style: Beam + vi_mode_style: Block + unfocused_hollow: true + thickness: 0.25 +live_config_reload: true +mouse: + hide_when_typing: true +key_bindings: + - { key: Paste, action: Paste } + - { key: Copy, action: Copy } + - { key: L, mods: Control, action: ClearLogNotice } + - { key: L, mods: Control, mode: ~Vi, chars: "\x0c" } + - { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp } + - { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown } + - { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop } + - { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom } + + # Vi Mode + - { key: Space, mods: Shift|Control, mode: Vi, action: ScrollToBottom } + - { key: Space, mods: Shift|Control, action: ToggleViMode } + - { key: Escape, mode: Vi, action: ClearSelection } + - { key: I, mode: Vi, action: ScrollToBottom } + - { key: I, mode: Vi, action: ToggleViMode } + - { key: Y, mods: Control, mode: Vi, action: ScrollLineUp } + - { key: E, mods: Control, mode: Vi, action: ScrollLineDown } + - { key: G, mode: Vi, action: ScrollToTop } + - { key: G, mods: Shift, mode: Vi, action: ScrollToBottom } + - { key: B, mods: Control, mode: Vi, action: ScrollPageUp } + - { key: F, mods: Control, mode: Vi, action: ScrollPageDown } + - { key: U, mods: Control, mode: Vi, action: ScrollHalfPageUp } + - { key: D, mods: Control, mode: Vi, action: ScrollHalfPageDown } + - { key: Y, mode: Vi, action: Copy } + - { key: Y, mode: Vi, action: ClearSelection } + - { key: Copy, mode: Vi, action: ClearSelection } + - { key: V, mode: Vi, action: ToggleNormalSelection } + - { key: V, mods: Shift, mode: Vi, action: ToggleLineSelection } + - { key: V, mods: Control, mode: Vi, action: ToggleBlockSelection } + - { key: V, mods: Alt, mode: Vi, action: ToggleSemanticSelection } + - { key: Return, mode: Vi, action: Open } + - { key: K, mode: Vi, action: Up } + - { key: J, mode: Vi, action: Down } + - { key: H, mode: Vi, action: Left } + - { key: L, mode: Vi, action: Right } + - { key: Up, mode: Vi, action: Up } + - { key: Down, mode: Vi, action: Down } + - { key: Left, mode: Vi, action: Left } + - { key: Right, mode: Vi, action: Right } + - { key: Key0, mode: Vi, action: First } + - { key: Key4, mods: Shift, mode: Vi, action: Last } + - { key: Key6, mods: Shift, mode: Vi, action: FirstOccupied } + - { key: H, mods: Shift, mode: Vi, action: High } + - { key: M, mods: Shift, mode: Vi, action: Middle } + - { key: L, mods: Shift, mode: Vi, action: Low } + - { key: B, mode: Vi, action: SemanticLeft } + - { key: W, mode: Vi, action: SemanticRight } + - { key: E, mode: Vi, action: SemanticRightEnd } + - { key: B, mods: Shift, mode: Vi, action: WordLeft } + - { key: W, mods: Shift, mode: Vi, action: WordRight } + - { key: E, mods: Shift, mode: Vi, action: WordRightEnd } + - { key: Key5, mods: Shift, mode: Vi, action: Bracket } + - { key: Slash, mode: Vi, action: SearchForward } + - { key: Slash, mods: Shift, mode: Vi, action: SearchBackward } + - { key: N, mode: Vi, action: SearchNext } + - { key: N, mods: Shift, mode: Vi, action: SearchPrevious } + # macOS only + - { key: K, mods: Command, mode: ~Vi, chars: "\x0c" } + - { key: Key0, mods: Command, action: ResetFontSize } + - { key: Equals, mods: Command, action: IncreaseFontSize } + - { key: K, mods: Command, action: ClearHistory } + - { key: V, mods: Command, action: Paste } + - { key: C, mods: Command, action: Copy } + - { key: C, mods: Command, mode: Vi, action: ClearSelection } + - { key: H, mods: Command, action: Hide } + - { key: M, mods: Command, action: Minimize } + - { key: Q, mods: Command, action: Quit } + - { key: W, mods: Command, action: Quit } + - { key: N, mods: Command, action: SpawnNewInstance } + - { key: F, mods: Command|Control, action: ToggleFullscreen } + - { key: F, mods: Command, action: SearchForward } + - { key: B, mods: Command, action: SearchBackward } + +# TokyoNight Alacritty Colors +import: + - ~/.config/alacritty/themes/tokyonight_night.yml diff --git a/alacritty/themes/tokyonight_day.yml b/alacritty/themes/tokyonight_day.yml new file mode 100644 index 0000000..b1add14 --- /dev/null +++ b/alacritty/themes/tokyonight_day.yml @@ -0,0 +1,34 @@ +# TokyoNight Alacritty Colors +colors: + # Default colors + primary: + background: '0xe1e2e7' + foreground: '0x3760bf' + + # Normal colors + normal: + black: '0xe9e9ed' + red: '0xf52a65' + green: '0x587539' + yellow: '0x8c6c3e' + blue: '0x2e7de9' + magenta: '0x9854f1' + cyan: '0x007197' + white: '0x6172b0' + + # Bright colors + bright: + black: '0xa1a6c5' + red: '0xf52a65' + green: '0x587539' + yellow: '0x8c6c3e' + blue: '0x2e7de9' + magenta: '0x9854f1' + cyan: '0x007197' + white: '0x3760bf' + + indexed_colors: + - { index: 16, color: '0xb15c00' } + - { index: 17, color: '0xc64343' } + + \ No newline at end of file diff --git a/alacritty/themes/tokyonight_moon.yml b/alacritty/themes/tokyonight_moon.yml new file mode 100644 index 0000000..c2889ce --- /dev/null +++ b/alacritty/themes/tokyonight_moon.yml @@ -0,0 +1,34 @@ +# TokyoNight Alacritty Colors +colors: + # Default colors + primary: + background: '0x222436' + foreground: '0xc8d3f5' + + # Normal colors + normal: + black: '0x1b1d2b' + red: '0xff757f' + green: '0xc3e88d' + yellow: '0xffc777' + blue: '0x82aaff' + magenta: '0xc099ff' + cyan: '0x86e1fc' + white: '0x828bb8' + + # Bright colors + bright: + black: '0x444a73' + red: '0xff757f' + green: '0xc3e88d' + yellow: '0xffc777' + blue: '0x82aaff' + magenta: '0xc099ff' + cyan: '0x86e1fc' + white: '0xc8d3f5' + + indexed_colors: + - { index: 16, color: '0xff966c' } + - { index: 17, color: '0xc53b53' } + + \ No newline at end of file diff --git a/alacritty/themes/tokyonight_night.yml b/alacritty/themes/tokyonight_night.yml new file mode 100644 index 0000000..5990ac3 --- /dev/null +++ b/alacritty/themes/tokyonight_night.yml @@ -0,0 +1,34 @@ +# TokyoNight Alacritty Colors +colors: + # Default colors + primary: + background: '0x1a1b26' + foreground: '0xc0caf5' + + # Normal colors + normal: + black: '0x15161e' + red: '0xf7768e' + green: '0x9ece6a' + yellow: '0xe0af68' + blue: '0x7aa2f7' + magenta: '0xbb9af7' + cyan: '0x7dcfff' + white: '0xa9b1d6' + + # Bright colors + bright: + black: '0x414868' + red: '0xf7768e' + green: '0x9ece6a' + yellow: '0xe0af68' + blue: '0x7aa2f7' + magenta: '0xbb9af7' + cyan: '0x7dcfff' + white: '0xc0caf5' + + indexed_colors: + - { index: 16, color: '0xff9e64' } + - { index: 17, color: '0xdb4b4b' } + + \ No newline at end of file diff --git a/alacritty/themes/tokyonight_storm.yml b/alacritty/themes/tokyonight_storm.yml new file mode 100644 index 0000000..fc337c3 --- /dev/null +++ b/alacritty/themes/tokyonight_storm.yml @@ -0,0 +1,34 @@ +# TokyoNight Alacritty Colors +colors: + # Default colors + primary: + background: '0x24283b' + foreground: '0xc0caf5' + + # Normal colors + normal: + black: '0x1d202f' + red: '0xf7768e' + green: '0x9ece6a' + yellow: '0xe0af68' + blue: '0x7aa2f7' + magenta: '0xbb9af7' + cyan: '0x7dcfff' + white: '0xa9b1d6' + + # Bright colors + bright: + black: '0x414868' + red: '0xf7768e' + green: '0x9ece6a' + yellow: '0xe0af68' + blue: '0x7aa2f7' + magenta: '0xbb9af7' + cyan: '0x7dcfff' + white: '0xc0caf5' + + indexed_colors: + - { index: 16, color: '0xff9e64' } + - { index: 17, color: '0xdb4b4b' } + + \ No newline at end of file