From 81381aa5c1bb8d41b30d4e71fb6015e61d5b0ebd Mon Sep 17 00:00:00 2001 From: katherine Date: Fri, 29 Dec 2023 10:26:22 -0700 Subject: migrate alacritty config to toml --- .config/alacritty/main.toml | 319 ++++++++++++++++++++++++++++++++++++++++++++ .config/alacritty/main.yml | 97 -------------- 2 files changed, 319 insertions(+), 97 deletions(-) create mode 100644 .config/alacritty/main.toml delete mode 100644 .config/alacritty/main.yml (limited to '.config/alacritty') diff --git a/.config/alacritty/main.toml b/.config/alacritty/main.toml new file mode 100644 index 0000000..40d8656 --- /dev/null +++ b/.config/alacritty/main.toml @@ -0,0 +1,319 @@ +[colors] +draw_bold_text_with_bright_colors = true + +[cursor] +blink_interval = 500 +unfocused_hollow = true + +[cursor.style] +blinking = "On" +shape = "Block" + +[env] +TERM = "alacritty" + +[hints] +alphabet = "fjiksl" + +[[hints.enabled]] +action = "Copy" +post_processing = true +regex = "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)[^\u0000-\u001F\u007F-Ÿ<>\"\\s{-}\\^⟨⟩`]+" + +[hints.enabled.binding] +key = "U" +mods = "Alt" + +[hints.enabled.mouse] +enabled = true +mods = "None" + +[[keyboard.bindings]] +action = "ClearLogNotice" +key = "L" +mods = "Control" + +[[keyboard.bindings]] +chars = "\f" +key = "L" +mode = "~Vi|~Search" +mods = "Control" + +[[keyboard.bindings]] +action = "ToggleViMode" +key = "Escape" +mode = "~Search" +mods = "Alt" + +[[keyboard.bindings]] +action = "ToggleViMode" +key = "Escape" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "ScrollToTop" +key = "G" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "ScrollToBottom" +key = "G" +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "ScrollPageUp" +key = "B" +mode = "Vi|~Search" +mods = "Control" + +[[keyboard.bindings]] +action = "ScrollPageDown" +key = "F" +mode = "Vi|~Search" +mods = "Control" + +[[keyboard.bindings]] +action = "ScrollHalfPageUp" +key = "U" +mode = "Vi|~Search" +mods = "Control" + +[[keyboard.bindings]] +action = "ScrollHalfPageDown" +key = "D" +mode = "Vi|~Search" +mods = "Control" + +[[keyboard.bindings]] +action = "Copy" +key = "Y" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "ClearSelection" +key = "Y" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "ToggleNormalSelection" +key = "V" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "ToggleLineSelection" +key = "V" +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "ToggleBlockSelection" +key = "V" +mode = "Vi|~Search" +mods = "Control" + +[[keyboard.bindings]] +action = "ToggleSemanticSelection" +key = "V" +mode = "Vi|~Search" +mods = "Alt" + +[[keyboard.bindings]] +action = "Up" +key = "K" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "Down" +key = "J" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "Left" +key = "H" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "Right" +key = "L" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "First" +key = "Key0" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "Last" +key = 5 +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "FirstOccupied" +key = 7 +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "High" +key = "H" +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "Middle" +key = "M" +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "Low" +key = "L" +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "SemanticLeft" +key = "B" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "SemanticRight" +key = "W" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "SemanticRightEnd" +key = "E" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "WordLeft" +key = "B" +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "WordRight" +key = "W" +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "WordRightEnd" +key = "E" +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "Bracket" +key = 6 +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "SearchForward" +key = "Slash" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "SearchNext" +key = "N" +mode = "Vi|~Search" + +[[keyboard.bindings]] +action = "SearchPrevious" +key = "N" +mode = "Vi|~Search" +mods = "Shift" + +[[keyboard.bindings]] +action = "SearchConfirm" +key = "Return" +mode = "Search|Vi" + +[[keyboard.bindings]] +action = "SearchCancel" +key = "Escape" +mode = "Search" + +[[keyboard.bindings]] +action = "SearchCancel" +key = "C" +mode = "Search" +mods = "Control" + +[[keyboard.bindings]] +action = "SearchClear" +key = "U" +mode = "Search" +mods = "Control" + +[[keyboard.bindings]] +action = "SearchDeleteWord" +key = "W" +mode = "Search" +mods = "Control" + +[[keyboard.bindings]] +action = "SearchHistoryPrevious" +key = "P" +mode = "Search" +mods = "Control" + +[[keyboard.bindings]] +action = "SearchHistoryNext" +key = "N" +mode = "Search" +mods = "Control" + +[[keyboard.bindings]] +action = "SearchHistoryPrevious" +key = "Up" +mode = "Search" + +[[keyboard.bindings]] +action = "SearchHistoryNext" +key = "Down" +mode = "Search" + +[[keyboard.bindings]] +action = "Paste" +key = "V" +mode = "~Vi" +mods = "Alt" + +[[keyboard.bindings]] +action = "SearchForward" +key = "Slash" +mode = "~Search" +mods = "Alt" + +[[keyboard.bindings]] +action = "SearchBackward" +key = "Slash" +mode = "~Search" +mods = "Alt|Shift" + +[scrolling] +history = 16384 + +[window] +decorations = "none" +dynamic_padding = true +dynamic_title = true +startup_mode = "Windowed" +title = "alacritty" + +[window.class] +general = "alacritty" +instance = "alacritty" + +[window.dimensions] +columns = 0 +lines = 0 + +[window.padding] +x = 0 +y = 0 diff --git a/.config/alacritty/main.yml b/.config/alacritty/main.yml deleted file mode 100644 index a64743c..0000000 --- a/.config/alacritty/main.yml +++ /dev/null @@ -1,97 +0,0 @@ -env: - TERM: alacritty - -window: - dimensions: - columns: 0 - lines: 0 - padding: - x: 0 - y: 0 - dynamic_padding: true - decorations: none - startup_mode: Windowed - title: alacritty - dynamic_title: true - class: - instance: alacritty - general: alacritty - -scrolling: - history: 16384 - -hints: - alphabet: "fjiksl" - enabled: - - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\ - [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+" - action: Copy - post_processing: true - mouse: - enabled: true - mods: None - binding: - key: U - mods: Alt - -cursor: - style: - shape: Block - blinking: On - blink_interval: 500 - unfocused_hollow: true - -draw_bold_text_with_bright_colors: true - -key_bindings: - - { key: L, mods: Control, action: ClearLogNotice } - - { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" } - - - { key: Escape, mods: Alt, mode: ~Search, action: ToggleViMode } - - { key: Escape, mode: Vi|~Search, action: ToggleViMode } - - { key: G, mode: Vi|~Search, action: ScrollToTop } - - { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom } - - { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp } - - { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown } - - { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp } - - { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown } - - { key: Y, mode: Vi|~Search, action: Copy } - - { key: Y, mode: Vi|~Search, action: ClearSelection } - - { key: V, mode: Vi|~Search, action: ToggleNormalSelection } - - { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection } - - { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection } - - { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection } - - { key: K, mode: Vi|~Search, action: Up } - - { key: J, mode: Vi|~Search, action: Down } - - { key: H, mode: Vi|~Search, action: Left } - - { key: L, mode: Vi|~Search, action: Right } - - { key: Key0, mode: Vi|~Search, action: First } - - { key: 5, mods: Shift, mode: Vi|~Search, action: Last } - - { key: 7, mods: Shift, mode: Vi|~Search, action: FirstOccupied } - - { key: H, mods: Shift, mode: Vi|~Search, action: High } - - { key: M, mods: Shift, mode: Vi|~Search, action: Middle } - - { key: L, mods: Shift, mode: Vi|~Search, action: Low } - - { key: B, mode: Vi|~Search, action: SemanticLeft } - - { key: W, mode: Vi|~Search, action: SemanticRight } - - { key: E, mode: Vi|~Search, action: SemanticRightEnd } - - { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft } - - { key: W, mods: Shift, mode: Vi|~Search, action: WordRight } - - { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd } - - { key: 6, mods: Shift, mode: Vi|~Search, action: Bracket } - - { key: Slash, mode: Vi|~Search, action: SearchForward } - - { key: N, mode: Vi|~Search, action: SearchNext } - - { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious } - - - { key: Return, mode: Search|Vi, action: SearchConfirm } - - { key: Escape, mode: Search, action: SearchCancel } - - { key: C, mods: Control, mode: Search, action: SearchCancel } - - { key: U, mods: Control, mode: Search, action: SearchClear } - - { key: W, mods: Control, mode: Search, action: SearchDeleteWord } - - { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious } - - { key: N, mods: Control, mode: Search, action: SearchHistoryNext } - - { key: Up, mode: Search, action: SearchHistoryPrevious } - - { key: Down, mode: Search, action: SearchHistoryNext } - - - { key: V, mods: Alt, mode: ~Vi, action: Paste } - - { key: Slash, mods: Alt, mode: ~Search, action: SearchForward } - - { key: Slash, mods: Alt|Shift, mode: ~Search, action: SearchBackward } -- cgit v1.2.3