aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/alacritty/main.toml319
-rw-r--r--.config/alacritty/main.yml97
-rw-r--r--.config/init/gen/alacritty.sh116
3 files changed, 377 insertions, 155 deletions
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 }
diff --git a/.config/init/gen/alacritty.sh b/.config/init/gen/alacritty.sh
index 66e4f17..621f73a 100644
--- a/.config/init/gen/alacritty.sh
+++ b/.config/init/gen/alacritty.sh
@@ -1,58 +1,58 @@
-echo "\
-import:
- - $HOME/.config/alacritty/main.yml
-
-font:
- normal:
- family: $mfont
- style: Regular
- size: $mfont_size
- offset:
- y: $mfont_off
-
-colors:
- primary:
- background: '$bg_normal'
- foreground: '$fg_normal'
- bright_foreground: '$fg_focus'
-
- search:
- matches:
- foreground: '$fg_focus'
- background: '$bg_focus'
- focused_match:
- foreground: '$fg_urgent'
- background: '$bg_urgent'
-
- footer_bar:
- foreground: '$fg_normal'
- background: '$bg_normal'
-
- hints:
- start:
- foreground: '$fg_urgent'
- background: '$bg_urgent'
- end:
- foreground: '$fg_focus'
- background: '$bg_focus'
-
- normal:
- black: '$std_black'
- red: '$std_red'
- green: '$std_green'
- yellow: '$std_yellow'
- blue: '$std_blue'
- magenta: '$std_magenta'
- cyan: '$std_cyan'
- white: '$std_white'
-
- bright:
- black: '$light_black'
- red: '$light_red'
- green: '$light_green'
- yellow: '$light_yellow'
- blue: '$light_blue'
- magenta: '$light_magenta'
- cyan: '$light_cyan'
- white: '$light_white'
-" > $tmpdir/alacritty.yml
+echo \
+"import = [\"/home/shmibs/.config/alacritty/main.toml\"]
+
+[font]
+size = $mfont_size
+
+[font.normal]
+family = \"$mfont\"
+style = \"Regular\"
+
+[font.offset]
+y = $mfont_off
+
+[colors.normal]
+black = \"$std_black\"
+blue = \"$std_blue\"
+cyan = \"$std_cyan\"
+green = \"$std_green\"
+magenta = \"$std_magenta\"
+red = \"$std_red\"
+white = \"$std_white\"
+yellow = \"$std_yellow\"
+
+[colors.bright]
+black = \"$light_black\"
+blue = \"$light_blue\"
+cyan = \"$light_cyan\"
+green = \"$light_green\"
+magenta = \"$light_magenta\"
+red = \"$light_red\"
+white = \"$light_white\"
+yellow = \"$light_yellow\"
+
+[colors.hints.start]
+foreground = \"$fg_urgent\"
+background = \"$bg_urgent\"
+
+[colors.hints.end]
+foreground = \"$fg_focus\"
+background = \"$bg_focus\"
+
+[colors.primary]
+background = \"$bg_normal\"
+bright_foreground = \"$fg_focus\"
+foreground = \"$fg_normal\"
+
+[colors.search.matches]
+foreground = \"$fg_focus\"
+background = \"$bg_focus\"
+
+[colors.search.focused_match]
+foreground = \"$fg_urgent\"
+background = \"$bg_urgent\"
+
+[colors.footer_bar]
+foreground = \"$fg_normal\"
+background = \"$bg_normal\"
+" > $tmpdir/alacritty.toml