summaryrefslogtreecommitdiff
path: root/home/xyz/.config/alacritty
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2022-01-25 01:23:52 -0800
committerxyz <gky44px1999@gmail.com>2022-01-25 01:23:52 -0800
commit70b9596ae376e02c0555d579322b996dc06e5f01 (patch)
tree3c42564da73ecce31c5c0818ae8be99d1cd988e0 /home/xyz/.config/alacritty
parent4917aa8e3c5ebae6d8383f2803a43800c1ffe2d6 (diff)
alacritty merge new config
Diffstat (limited to 'home/xyz/.config/alacritty')
-rw-r--r--home/xyz/.config/alacritty/alacritty.yml81
1 files changed, 50 insertions, 31 deletions
diff --git a/home/xyz/.config/alacritty/alacritty.yml b/home/xyz/.config/alacritty/alacritty.yml
index 74505d05..a238350c 100644
--- a/home/xyz/.config/alacritty/alacritty.yml
+++ b/home/xyz/.config/alacritty/alacritty.yml
@@ -1,20 +1,3 @@
-cursor:
- vi_mode_style: Block
-
-# when set TERM use alacritty on windows, syntax is very bad
-# need to set xterm-256color if want ls show color when use ssh
-env:
- TERM: xterm-256color
-
-font:
-# for cataclysm dda game, use this font, kinda square font, recommended from web
-# normal:
-# family: White Rabbit
- size: 9.0
-
-window:
- dynamic_padding: true
-
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
@@ -80,6 +63,12 @@ window:
# - buttonless: Title bar, transparent background and no title bar buttons
#decorations: full
+ # Background opacity
+ #
+ # Window opacity as a floating point number from `0.0` to `1.0`.
+ # The value `0.0` is completely transparent and `1.0` is opaque.
+ #opacity: 1.0
+
# Startup Mode (changes require restart)
#
# Values for `startup_mode`:
@@ -247,7 +236,7 @@ window:
# Keyboard regex hints
#hints:
- # Fist character in the hint label
+ # First character in the hint label
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
@@ -329,6 +318,13 @@ window:
#
#indexed_colors: []
+ # Transparent cell backgrounds
+ #
+ # Whether or not `window.opacity` applies to all cell backgrounds or only to
+ # the default background. When set to `true` all cells will be transparent
+ # regardless of their background color.
+ #transparent_background_colors: false
+
# Bell
#
# The bell is rung every time the BEL control character is received.
@@ -370,12 +366,6 @@ window:
#
#command: None
-# Background opacity
-#
-# Window opacity as a floating point number from `0.0` to `1.0`.
-# The value `0.0` is completely transparent and `1.0` is opaque.
-#background_opacity: 1.0
-
#selection:
# This string contains all characters that are used as separators for
# "semantic words" in Alacritty.
@@ -450,6 +440,9 @@ window:
# Send ESC (\x1b) before characters when alt is pressed.
#alt_send_esc: true
+# Offer IPC using `alacritty msg` (unix only)
+#ipc_socket: true
+
#mouse:
# Click settings
#
@@ -475,8 +468,8 @@ window:
# Each hint must have a `regex` and either an `action` or a `command` field.
# The fields `mouse`, `binding` and `post_processing` are optional.
#
- # The fields `command`, `binding.key`, `binding.mods` and `mouse.mods` accept
- # the same values as they do in the `key_bindings` section.
+ # The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and
+ # `mouse.mods` accept the same values as they do in the `key_bindings` section.
#
# The `mouse.enabled` field controls if the hint should be underlined while
# the mouse with all `mouse.mods` keys held or the vi mode cursor is above it.
@@ -495,7 +488,7 @@ window:
# - MoveViModeCursor
# Move the vi mode cursor to the beginning of the hint.
#enabled:
- # - regex: "(mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
+ # - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
# [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
# command: xdg-open
# post_processing: true
@@ -524,13 +517,20 @@ window:
# - Right
# - Numeric identifier such as `5`
#
-# - `action` (see key bindings)
+# - `action` (see key bindings for actions not exclusive to mouse mode)
+#
+# - Mouse exclusive actions:
+#
+# - ExpandSelection
+# Expand the selection to the current mouse cursor location.
#
# And optionally:
#
# - `mods` (see key bindings)
#mouse_bindings:
-# - { mouse: Middle, action: PasteSelection }
+# - { mouse: Right, action: ExpandSelection }
+# - { mouse: Right, mods: Control, action: ExpandSelection }
+# - { mouse: Middle, mode: ~Vi, action: PasteSelection }
# Key bindings
#
@@ -599,6 +599,8 @@ window:
# - ToggleFullscreen
# - SpawnNewInstance
# Spawn a new instance of Alacritty.
+# - CreateNewWindow
+# Create a new Alacritty window from the current process.
# - ClearLogNotice
# Clear Alacritty's UI warning and error notice.
# - ClearSelection
@@ -747,11 +749,11 @@ key_bindings:
#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
# Vi Mode
- - { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom }
- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode }
+ - { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom }
- { key: Escape, mode: Vi|~Search, action: ClearSelection }
- - { key: I, mode: Vi|~Search, action: ScrollToBottom }
- { key: I, mode: Vi|~Search, action: ToggleViMode }
+ - { key: I, mode: Vi|~Search, action: ScrollToBottom }
- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode }
- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp }
- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown }
@@ -867,3 +869,20 @@ key_bindings:
# Print all received window events.
#print_events: false
+
+cursor:
+ vi_mode_style: Block
+
+# 1. when set TERM use alacritty on windows, syntax is very bad
+# 2. need to set xterm-256color if want ls show color when use ssh
+env:
+ TERM: xterm-256color
+
+font:
+# for cataclysm dda game, use this font, kinda square font, recommended from web
+# normal:
+# family: White Rabbit
+ size: 9.0
+
+window:
+ dynamic_padding: true