diff --git a/global/.config/alacritty/alacritty.toml b/global/.config/alacritty/alacritty.toml index feb1d8f..559a227 100644 --- a/global/.config/alacritty/alacritty.toml +++ b/global/.config/alacritty/alacritty.toml @@ -1,9 +1,3 @@ -import = [ - "~/.config/alacritty/themes/gruvbox.toml", - "~/.config/alacritty/keybindings.toml", - "~/.config/alacritty/font.toml" -] -live_config_reload = true [cursor] unfocused_hollow = true @@ -39,7 +33,7 @@ multiplier = 3 save_to_clipboard = false semantic_escape_chars = ",│`|:\"' ()[]{}<>\t" -[shell] +[terminal.shell] args = ["-l", "-c", "tmux attach || tmux"] program = "/bin/zsh" @@ -54,3 +48,13 @@ blur = true [window.padding] x = 2 y = 2 + +[general] +live_config_reload = true +import = [ + "~/.config/alacritty/themes/gruvbox.toml", + "~/.config/alacritty/keybindings.toml", + "~/.config/alacritty/font.toml" +] + +[terminal] diff --git a/global/.config/alacritty/font.toml b/global/.config/alacritty/font.toml new file mode 100644 index 0000000..cc45e37 --- /dev/null +++ b/global/.config/alacritty/font.toml @@ -0,0 +1,2 @@ +[font] +size = 14 diff --git a/global/.config/alacritty/keybindings.toml b/global/.config/alacritty/keybindings.toml new file mode 100644 index 0000000..f3881ae --- /dev/null +++ b/global/.config/alacritty/keybindings.toml @@ -0,0 +1,19 @@ +[keyboard] +bindings = [ + {key = "W", mods = "Command", chars = "\u001BW" }, + {key = "X", mods = "Command", chars = "\u001BX" }, + {key = 30, mods = "Command|Shift", chars = "\u001Bn" }, + {key = 33, mods = "Command|Shift", chars = "\u001Bp" }, + {key = "Z", mods = "Command", chars = "\u0001w" }, + {key = "T", mods = "Command", chars = "\u001Bt" }, + {key = "E", mods = "Command", chars = "\u001Be" }, + {key = "D", mods = "Command", chars = "\u001Bd" }, + {key = "J", mods = "Command", chars = "\u001Bj" }, + {key = "K", mods = "Command", chars = "\u001Bk" }, + # tmux resurrect plugin + {key = "R", mods = "Command", chars = "\u0001\u0012" }, + {key = "S", mods = "Command", chars = "\u0001\u0013" }, + # move cursor per word + {key = "Right", mods = "Command", chars = "\u001BF" }, + {key = "Left", mods = "Command", chars = "\u001BB" }, +] diff --git a/global/.config/alacritty/themes/deprecated-dracula.yml b/global/.config/alacritty/themes/deprecated-dracula.yml deleted file mode 100644 index 3bbf160..0000000 --- a/global/.config/alacritty/themes/deprecated-dracula.yml +++ /dev/null @@ -1,50 +0,0 @@ -colors: - primary: - background: "#282a36" - foreground: "#f8f8f2" - bright_foreground: "#ffffff" - cursor: - text: "#282a36" - cursor: "#f8f8f2" - vi_mode_cursor: - text: CellBackground - cursor: CellForeground - selection: - text: CellForeground - background: "#44475a" - normal: - black: "#21222c" - red: "#ff5555" - green: "#50fa7b" - yellow: "#f1fa8c" - blue: "#bd93f9" - magenta: "#ff79c6" - cyan: "#8be9fd" - white: "#f8f8f2" - bright: - black: "#6272a4" - red: "#ff6e6e" - green: "#69ff94" - yellow: "#ffffa5" - blue: "#d6acff" - magenta: "#ff92df" - cyan: "#a4ffff" - white: "#ffffff" - search: - matches: - foreground: "#44475a" - background: "#50fa7b" - focused_match: - foreground: "#44475a" - background: "#ffb86c" - footer_bar: - background: "#282a36" - foreground: "#f8f8f2" - hints: - start: - foreground: "#282a36" - background: "#f1fa8c" - end: - foreground: "#f1fa8c" - background: "#282a36" - diff --git a/global/.config/alacritty/themes/dracula.toml b/global/.config/alacritty/themes/dracula.toml deleted file mode 100644 index 2432bf4..0000000 --- a/global/.config/alacritty/themes/dracula.toml +++ /dev/null @@ -1,56 +0,0 @@ -[colors.bright] -black = "#6272a4" -blue = "#d6acff" -cyan = "#a4ffff" -green = "#69ff94" -magenta = "#ff92df" -red = "#ff6e6e" -white = "#ffffff" -yellow = "#ffffa5" - -[colors.cursor] -cursor = "#f8f8f2" -text = "#282a36" - -[colors.footer_bar] -background = "#282a36" -foreground = "#f8f8f2" - -[colors.hints.end] -background = "#282a36" -foreground = "#f1fa8c" - -[colors.hints.start] -background = "#f1fa8c" -foreground = "#282a36" - -[colors.normal] -black = "#21222c" -blue = "#bd93f9" -cyan = "#8be9fd" -green = "#50fa7b" -magenta = "#ff79c6" -red = "#ff5555" -white = "#f8f8f2" -yellow = "#f1fa8c" - -[colors.primary] -background = "#282a36" -bright_foreground = "#ffffff" -foreground = "#f8f8f2" - -[colors.search.focused_match] -background = "#ffb86c" -foreground = "#44475a" - -[colors.search.matches] -background = "#50fa7b" -foreground = "#44475a" - -[colors.selection] -background = "#44475a" -text = "CellForeground" - -[colors.vi_mode_cursor] -cursor = "CellForeground" -text = "CellBackground" diff --git a/global/.config/alacritty/themes/dracula.toml b/global/.config/alacritty/themes/dracula.toml new file mode 120000 index 0000000..f702728 --- /dev/null +++ b/global/.config/alacritty/themes/dracula.toml @@ -0,0 +1 @@ +../../../.dotfiles/global/.config/alacritty/themes/dracula.toml \ No newline at end of file