about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hm/soispha/conf/alacritty/default.nix33
-rw-r--r--hm/soispha/conf/alacritty/toml/base.toml16
-rw-r--r--hm/soispha/conf/alacritty/toml/bell.toml7
-rw-r--r--hm/soispha/conf/alacritty/toml/colorscheme.toml79
-rw-r--r--hm/soispha/conf/alacritty/toml/cursor.toml11
-rw-r--r--hm/soispha/conf/alacritty/toml/env.toml3
-rw-r--r--hm/soispha/conf/alacritty/toml/font.toml15
-rw-r--r--hm/soispha/conf/alacritty/toml/hints.toml34
-rw-r--r--hm/soispha/conf/alacritty/toml/keyboard_bindings.toml297
-rw-r--r--hm/soispha/conf/alacritty/toml/mouse.toml7
-rw-r--r--hm/soispha/conf/alacritty/toml/mouse_bindings.toml3
-rw-r--r--hm/soispha/conf/alacritty/toml/scrolling.toml3
-rw-r--r--hm/soispha/conf/alacritty/toml/selection.toml3
-rw-r--r--hm/soispha/conf/alacritty/toml/window.toml18
14 files changed, 510 insertions, 19 deletions
diff --git a/hm/soispha/conf/alacritty/default.nix b/hm/soispha/conf/alacritty/default.nix
index 9048fc34..c1cf5e44 100644
--- a/hm/soispha/conf/alacritty/default.nix
+++ b/hm/soispha/conf/alacritty/default.nix
@@ -1,23 +1,18 @@
 {lib, ...}: let
-  # NOTE: The `colorscheme.yml` import __needs__ to be __after__ the `colors.yml` import, otherwise, applying it wont
-  # work. <2023-08-28>
   config_file = ''
-    ${lib.strings.fileContents ./yaml/base.yml}
-    ${lib.strings.fileContents ./yaml/bell.yml}
-    ${lib.strings.fileContents ./yaml/colors.yml}
-    ${lib.strings.fileContents ./yaml/colorscheme.yml}
-    ${lib.strings.fileContents ./yaml/cursor.yml}
-    ${lib.strings.fileContents ./yaml/debug.yml}
-    ${lib.strings.fileContents ./yaml/env.yml}
-    ${lib.strings.fileContents ./yaml/font.yml}
-    ${lib.strings.fileContents ./yaml/hints.yml}
-    ${lib.strings.fileContents ./yaml/key_bindings.yml}
-    ${lib.strings.fileContents ./yaml/mouse.yml}
-    ${lib.strings.fileContents ./yaml/mouse_bindings.yml}
-    ${lib.strings.fileContents ./yaml/scrolling.yml}
-    ${lib.strings.fileContents ./yaml/selection.yml}
-    ${lib.strings.fileContents ./yaml/shell.yml}
-    ${lib.strings.fileContents ./yaml/window.yml}
+    ${lib.strings.fileContents ./toml/base.toml}
+    ${lib.strings.fileContents ./toml/bell.toml}
+    ${lib.strings.fileContents ./toml/colorscheme.toml}
+    ${lib.strings.fileContents ./toml/cursor.toml}
+    ${lib.strings.fileContents ./toml/env.toml}
+    ${lib.strings.fileContents ./toml/font.toml}
+    ${lib.strings.fileContents ./toml/hints.toml}
+    ${lib.strings.fileContents ./toml/keyboard_bindings.toml}
+    ${lib.strings.fileContents ./toml/mouse.toml}
+    ${lib.strings.fileContents ./toml/mouse_bindings.toml}
+    ${lib.strings.fileContents ./toml/scrolling.toml}
+    ${lib.strings.fileContents ./toml/selection.toml}
+    ${lib.strings.fileContents ./toml/window.toml}
   '';
 in {
   home.sessionVariables = {
@@ -31,5 +26,5 @@ in {
   programs.alacritty = {
     enable = true;
   };
-  xdg.configFile."alacritty/alacritty.yml".text = config_file;
+  xdg.configFile."alacritty/alacritty.toml".text = config_file;
 }
diff --git a/hm/soispha/conf/alacritty/toml/base.toml b/hm/soispha/conf/alacritty/toml/base.toml
new file mode 100644
index 00000000..93c9942f
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/base.toml
@@ -0,0 +1,16 @@
+# Configuration for Alacritty, the GPU enhanced terminal emulator.
+
+# If `true`, bold text is drawn using the bright color variants.
+#draw_bold_text_with_bright_colors: true # TODO:
+
+# Live config reload (changes require restart)
+live_config_reload = true
+
+# Startup directory
+#
+# Directory the shell is started in. If this is unset, or `None`, the working
+# directory of the parent process will be used.
+#working_directory: None
+
+# Offer IPC using `alacritty msg` (unix only)
+ipc_socket = true
diff --git a/hm/soispha/conf/alacritty/toml/bell.toml b/hm/soispha/conf/alacritty/toml/bell.toml
new file mode 100644
index 00000000..912d08e3
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/bell.toml
@@ -0,0 +1,7 @@
+# Bell
+#
+# The bell is rung every time the BEL control character is received.
+[bell]
+# Duration of the visual bell flash in milliseconds. A `duration` of `0` will
+# disable the visual bell animation.
+duration = 0
diff --git a/hm/soispha/conf/alacritty/toml/colorscheme.toml b/hm/soispha/conf/alacritty/toml/colorscheme.toml
new file mode 100644
index 00000000..f98a5b91
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/colorscheme.toml
@@ -0,0 +1,79 @@
+# Nightfox Alacritty Colors
+## name: carbonfox
+## upstream: https://github.com/edeneast/nightfox.nvim/raw/main/extra/carbonfox/alacritty.toml
+
+[colors.primary]
+background = "#161616"
+foreground = "#f2f4f8"
+dim_foreground = "#b6b8bb"
+bright_foreground = "#f9fbff"
+
+[colors.cursor]
+text = "#f2f4f8"
+cursor = "#b6b8bb"
+
+[colors.vi_mode_cursor]
+text = "#f2f4f8"
+cursor = "#33b1ff"
+
+[colors.search.matches]
+foreground = "#f2f4f8"
+background = "#525253"
+
+[colors.search.focused_match]
+foreground = "#f2f4f8"
+background = "#3ddbd9"
+
+[colors.footer_bar]
+foreground = "#f2f4f8"
+background = "#353535"
+
+[colors.hints.start]
+foreground = "#f2f4f8"
+background = "#3ddbd9"
+
+[colors.hints.end]
+foreground = "#f2f4f8"
+background = "#353535"
+
+[colors.selection]
+text = "#f2f4f8"
+background = "#2a2a2a"
+
+[colors.normal]
+black = "#282828"
+red = "#ee5396"
+green = "#25be6a"
+yellow = "#08bdba"
+blue = "#78a9ff"
+magenta = "#be95ff"
+cyan = "#33b1ff"
+white = "#dfdfe0"
+
+[colors.bright]
+black = "#484848"
+red = "#f16da6"
+green = "#46c880"
+yellow = "#2dc7c4"
+blue = "#8cb6ff"
+magenta = "#c8a5ff"
+cyan = "#52bdff"
+white = "#e4e4e5"
+
+[colors.dim]
+black = "#222222"
+red = "#ca4780"
+green = "#1fa25a"
+yellow = "#07a19e"
+blue = "#6690d9"
+magenta = "#a27fd9"
+cyan = "#2b96d9"
+white = "#bebebe"
+
+[[colors.indexed_colors]]
+index = 16
+color = "#3ddbd9"
+
+[[colors.indexed_colors]]
+index = 17
+color = "#ff7eb6"
diff --git a/hm/soispha/conf/alacritty/toml/cursor.toml b/hm/soispha/conf/alacritty/toml/cursor.toml
new file mode 100644
index 00000000..d9cb93f4
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/cursor.toml
@@ -0,0 +1,11 @@
+[cursor]
+blink_interval = 750
+blink_timeout = 5
+thickness = 0.15
+unfocused_hollow = true
+vi_mode_style = "None"
+
+# Cursor style
+[cursor.style]
+blinking = "On"
+shape = "Beam"
diff --git a/hm/soispha/conf/alacritty/toml/env.toml b/hm/soispha/conf/alacritty/toml/env.toml
new file mode 100644
index 00000000..fdd4e5d1
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/env.toml
@@ -0,0 +1,3 @@
+[env]
+TERM = "alacritty"
+COLORTERM = "truecolor"
diff --git a/hm/soispha/conf/alacritty/toml/font.toml b/hm/soispha/conf/alacritty/toml/font.toml
new file mode 100644
index 00000000..dd18a6fb
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/font.toml
@@ -0,0 +1,15 @@
+[font]
+builtin_box_drawing = true
+size = 12.0
+
+[font.glyph_offset]
+x = -1
+y = -1
+
+[font.normal]
+family = "SauceCodePro Nerd Font Mono"
+style = "Regular"
+
+[font.offset]
+x = -1
+y = -1
diff --git a/hm/soispha/conf/alacritty/toml/hints.toml b/hm/soispha/conf/alacritty/toml/hints.toml
new file mode 100644
index 00000000..cc389725
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/hints.toml
@@ -0,0 +1,34 @@
+[hints]
+alphabet = "jfkdls;ahgurieowpq"
+
+[[hints.enabled]]
+command = "xdg-open"
+hyperlinks = true
+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 = "Control|Shift"
+
+[hints.enabled.mouse]
+enabled = true
+mods = "None"
+
+[[hints.enabled]]
+action = "Paste"
+post_procesing = false
+regex = '''([^ '"`=:\[\(]*/)([^/: '"`\)\]]*)'''
+
+[hints.enabled.binding]
+key = "T"
+mods = "Control|Shift"
+
+[[hints.enabled]]
+action = "Paste"
+post_procesing = false
+regex = '([a-z0-9]{7})\s'
+
+[hints.enabled.binding]
+key = "H"
+mods = "Control|Shift"
diff --git a/hm/soispha/conf/alacritty/toml/keyboard_bindings.toml b/hm/soispha/conf/alacritty/toml/keyboard_bindings.toml
new file mode 100644
index 00000000..8e0b1e13
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/keyboard_bindings.toml
@@ -0,0 +1,297 @@
+[[keyboard.bindings]]
+action = "Paste"
+key = "P"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "Paste"
+key = "Insert"
+mods = "Shift"
+
+[[keyboard.bindings]]
+chars = "gc"
+key = "Slash"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "Copy"
+key = "Y"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ResetFontSize"
+key = "Key0"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "IncreaseFontSize"
+key = "Equals"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "IncreaseFontSize"
+key = "Plus"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "DecreaseFontSize"
+key = "Minus"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ToggleViMode"
+key = "Space"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ScrollToBottom"
+key = "Space"
+mode = "Vi"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ScrollToBottom"
+key = "I"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "ToggleViMode"
+key = "I"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "ScrollToBottom"
+key = "C"
+mode = "Vi"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ToggleViMode"
+key = "C"
+mode = "Vi"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ClearSelection"
+key = "Escape"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "ScrollLineUp"
+key = "Y"
+mode = "Vi"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ScrollLineDown"
+key = "E"
+mode = "Vi"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ScrollToTop"
+key = "G"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "ScrollToBottom"
+key = "G"
+mode = "Vi"
+mods = "Shift"
+
+[[keyboard.bindings]]
+action = "ScrollPageUp"
+key = "B"
+mode = "Vi"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ScrollPageDown"
+key = "F"
+mode = "Vi"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ScrollHalfPageUp"
+key = "U"
+mode = "Vi"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ScrollHalfPageDown"
+key = "D"
+mode = "Vi"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "Copy"
+key = "Y"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "ClearSelection"
+key = "Y"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "ToggleNormalSelection"
+key = "V"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "ToggleLineSelection"
+key = "V"
+mode = "Vi"
+mods = "Shift"
+
+[[keyboard.bindings]]
+action = "ToggleBlockSelection"
+key = "V"
+mode = "Vi"
+mods = "Control"
+
+[[keyboard.bindings]]
+action = "ToggleSemanticSelection"
+key = "V"
+mode = "Vi"
+mods = "Alt"
+
+[[keyboard.bindings]]
+action = "Open"
+key = "Return"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "Up"
+key = "K"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "Down"
+key = "J"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "Left"
+key = "H"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "Right"
+key = "L"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "Up"
+key = "Up"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "Down"
+key = "Down"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "Left"
+key = "Left"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "Right"
+key = "Right"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "First"
+key = "Key0"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "Last"
+key = "Key4"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "FirstOccupied"
+key = "Key6"
+mode = "Vi"
+mods = "Shift"
+
+[[keyboard.bindings]]
+action = "High"
+key = "H"
+mode = "Vi"
+mods = "Shift"
+
+[[keyboard.bindings]]
+action = "Middle"
+key = "M"
+mode = "Vi"
+mods = "Shift"
+
+[[keyboard.bindings]]
+action = "Low"
+key = "L"
+mode = "Vi"
+mods = "Shift"
+
+[[keyboard.bindings]]
+action = "SemanticLeft"
+key = "B"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "SemanticRight"
+key = "W"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "SemanticRightEnd"
+key = "E"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "WordLeft"
+key = "B"
+mode = "Vi"
+mods = "Shift"
+
+[[keyboard.bindings]]
+action = "WordRight"
+key = "W"
+mode = "Vi"
+mods = "Shift"
+
+[[keyboard.bindings]]
+action = "WordRightEnd"
+key = "E"
+mode = "Vi"
+mods = "Shift"
+
+[[keyboard.bindings]]
+action = "Bracket"
+key = "Key5"
+mode = "Vi"
+mods = "Shift"
+
+[[keyboard.bindings]]
+action = "SearchForward"
+key = "Slash"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "SearchBackward"
+key = "Slash"
+mode = "Vi"
+mods = "Shift"
+
+[[keyboard.bindings]]
+action = "SearchNext"
+key = "N"
+mode = "Vi"
+
+[[keyboard.bindings]]
+action = "SearchPrevious"
+key = "N"
+mode = "Vi"
+mods = "Shift"
diff --git a/hm/soispha/conf/alacritty/toml/mouse.toml b/hm/soispha/conf/alacritty/toml/mouse.toml
new file mode 100644
index 00000000..150210dc
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/mouse.toml
@@ -0,0 +1,7 @@
+[mouse]
+hide_when_typing = false
+[mouse.double_click]
+threshold = 300
+
+[mouse.triple_click]
+threshold = 300
diff --git a/hm/soispha/conf/alacritty/toml/mouse_bindings.toml b/hm/soispha/conf/alacritty/toml/mouse_bindings.toml
new file mode 100644
index 00000000..1b281748
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/mouse_bindings.toml
@@ -0,0 +1,3 @@
+[[mouse.bindings]]
+action = "Copy"
+mouse = "Middle"
diff --git a/hm/soispha/conf/alacritty/toml/scrolling.toml b/hm/soispha/conf/alacritty/toml/scrolling.toml
new file mode 100644
index 00000000..ed7c22cf
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/scrolling.toml
@@ -0,0 +1,3 @@
+[scrolling]
+history = 10000
+multiplier = 3
diff --git a/hm/soispha/conf/alacritty/toml/selection.toml b/hm/soispha/conf/alacritty/toml/selection.toml
new file mode 100644
index 00000000..60ea0495
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/selection.toml
@@ -0,0 +1,3 @@
+[selection]
+save_to_clipboard = false
+semantic_escape_chars = ",│`|:\"' ()[]{}<>\t"
diff --git a/hm/soispha/conf/alacritty/toml/window.toml b/hm/soispha/conf/alacritty/toml/window.toml
new file mode 100644
index 00000000..123b5b7a
--- /dev/null
+++ b/hm/soispha/conf/alacritty/toml/window.toml
@@ -0,0 +1,18 @@
+[window]
+decorations = "none"
+decorations_theme_variant = "None"
+dynamic_title = true
+opacity = 0.9
+startup_mode = "Windowed"
+title = "Alacritty"
+[window.class]
+general = "Alacritty"
+instance = "Alacritty"
+
+[window.dimensions]
+columns = 0
+lines = 0
+
+[window.padding]
+x = 5
+y = 5