From 90f29dcec2e46cbe5fdb249ae892e14e2185622d Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Mon, 7 Apr 2025 14:28:04 +0300 Subject: [PATCH 1/5] alacritty config --- conf/.alacritty.toml | 87 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 conf/.alacritty.toml diff --git a/conf/.alacritty.toml b/conf/.alacritty.toml new file mode 100644 index 0000000..29dfd8c --- /dev/null +++ b/conf/.alacritty.toml @@ -0,0 +1,87 @@ +colors.draw_bold_text_with_bright_colors = false +#custom_cursor_colors = true +general.live_config_reload = true + +[window] +dynamic_padding = true +decorations = "None" +startup_mode = "Maximized" +opacity = 0.95 +blur = true + +[window.dimensions] +columns = 100 +lines = 85 + +[window.padding] +x = 10 +y = 5 + +[scrolling] +history = 0 +multiplier = 3 + +[font] +size = 13 +#use_thin_strokes = true + +[font.normal] +family = "RecMono Linear Nerd Font Mono" +style = "Regular" + +[font.bold] +family = "RecMono Linear Nerd Font Mono" +style = "Bold" + +[font.italic] +family = "RecMono Linear Nerd Font Mono" +style = "Regular Italic" + +[font.offset] +x = 0 +y = 3 + +[font.glyph_offset] +x = 0 +y = 0 + +[colors.primary] +background = '#1c2023' +foreground = '#c7ccd1' + +[colors.cursor] +text = '#1c2023' +cursor = '#c7ccd1' + +[colors.normal] +black = '#1c2023' +red = '#c7ae95' +green = '#95c7ae' +yellow = '#aec795' +blue = '#ae95c7' +magenta = '#c795ae' +cyan = '#95aec7' +white = '#c7ccd1' + +[colors.bright] +black = '#747c84' +red = '#c7ae95' +green = '#95c7ae' +yellow = '#aec795' +blue = '#ae95c7' +magenta = '#c795ae' +cyan = '#95aec7' +white = '#f3f4f5' + +[bell] +animation = "EaseOutExpo" +color = "0xffffff" +duration = 0 + +[mouse] +hide_when_typing = true + +[cursor] +style = "Block" +unfocused_hollow = true + From d271383341c5677e6857cd900a41017cdc865680 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Mon, 7 Apr 2025 15:34:36 +0300 Subject: [PATCH 2/5] alacritty renamed + macos bindings remap --- conf/{.alacritty.toml => alacritty.toml} | 27 ++++++++++++++++++++---- install.conf.yaml | 1 + 2 files changed, 24 insertions(+), 4 deletions(-) rename conf/{.alacritty.toml => alacritty.toml} (52%) diff --git a/conf/.alacritty.toml b/conf/alacritty.toml similarity index 52% rename from conf/.alacritty.toml rename to conf/alacritty.toml index 29dfd8c..a13cc5f 100644 --- a/conf/.alacritty.toml +++ b/conf/alacritty.toml @@ -23,18 +23,18 @@ multiplier = 3 [font] size = 13 -#use_thin_strokes = true +# use_thin_strokes = true [font.normal] -family = "RecMono Linear Nerd Font Mono" +family = "RecMonoLinear Nerd Font Mono" style = "Regular" [font.bold] -family = "RecMono Linear Nerd Font Mono" +family = "RecMonoLinear Nerd Font Mono" style = "Bold" [font.italic] -family = "RecMono Linear Nerd Font Mono" +family = "RecMonoLinear Nerd Font Mono" style = "Regular Italic" [font.offset] @@ -85,3 +85,22 @@ hide_when_typing = true style = "Block" unfocused_hollow = true +[keyboard] +bindings = [ + { key = "C", mods = "Command", chars = "\u0003" }, + { key = "D", mods = "Command", chars = "\u0004" }, + { key = "E", mods = "Command", chars = "\u0005" }, + { key = "H", mods = "Command", chars = "\u0008" }, + { key = "I", mods = "Command", chars = "\u0009" }, + { key = "J", mods = "Command", chars = "\u000a" }, + { key = "K", mods = "Command", chars = "\u000b" }, + { key = "L", mods = "Command", chars = "\u000c" }, + { key = "O", mods = "Command", chars = "\u000f" }, + { key = "R", mods = "Command", chars = "\u0012" }, + { key = "T", mods = "Command", chars = "\u0014" }, + { key = "U", mods = "Command", chars = "\u0015" }, + { key = "W", mods = "Command", chars = "\u0017" }, + { key = "X", mods = "Command", chars = "\u0018" }, + { key = "Y", mods = "Command", chars = "\u0019" }, + { key = "Z", mods = "Command", chars = "\u001a" }, +] diff --git a/install.conf.yaml b/install.conf.yaml index e596f9c..bf839db 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -10,6 +10,7 @@ ~/.zshrc: shell/zsh/zshrc ~/.bashrc: shell/bash/bashrc ~/.config/nvim: nvim + ~/.alacritty.toml: conf/alacritty.toml - asdf: - plugin: vim From 491aae86da29a2095f33da67354db96cddde99f5 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Mon, 7 Apr 2025 15:59:19 +0300 Subject: [PATCH 3/5] alacritty moved to dir + themes submodule --- .gitmodules | 3 +++ {conf => alacritty}/alacritty.toml | 3 ++- alacritty/themes | 1 + install.conf.yaml | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) rename {conf => alacritty}/alacritty.toml (96%) create mode 160000 alacritty/themes diff --git a/.gitmodules b/.gitmodules index 5ed9e83..3881255 100644 --- a/.gitmodules +++ b/.gitmodules @@ -5,3 +5,6 @@ [submodule "dotbot-asdf"] path = dotbot-asdf url = https://github.com/sobolevn/dotbot-asdf.git +[submodule "alacritty/themes"] + path = alacritty/themes + url = https://github.com/alacritty/alacritty-theme.git diff --git a/conf/alacritty.toml b/alacritty/alacritty.toml similarity index 96% rename from conf/alacritty.toml rename to alacritty/alacritty.toml index a13cc5f..c16869e 100644 --- a/conf/alacritty.toml +++ b/alacritty/alacritty.toml @@ -79,7 +79,7 @@ color = "0xffffff" duration = 0 [mouse] -hide_when_typing = true +hide_when_typing = false [cursor] style = "Block" @@ -87,6 +87,7 @@ unfocused_hollow = true [keyboard] bindings = [ + { key = "A", mods = "Command", chars = "\u0001" }, { key = "C", mods = "Command", chars = "\u0003" }, { key = "D", mods = "Command", chars = "\u0004" }, { key = "E", mods = "Command", chars = "\u0005" }, diff --git a/alacritty/themes b/alacritty/themes new file mode 160000 index 0000000..86c5784 --- /dev/null +++ b/alacritty/themes @@ -0,0 +1 @@ +Subproject commit 86c578469e2bf784faf6f916883bf48349ff4f6d diff --git a/install.conf.yaml b/install.conf.yaml index bf839db..752164d 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -10,7 +10,7 @@ ~/.zshrc: shell/zsh/zshrc ~/.bashrc: shell/bash/bashrc ~/.config/nvim: nvim - ~/.alacritty.toml: conf/alacritty.toml + ~/.config/alacritty: alacritty - asdf: - plugin: vim From bcca54a0317adebbb04d71aaed4c37ffc605eb1a Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Tue, 8 Apr 2025 11:31:06 +0300 Subject: [PATCH 4/5] alacritty colorscheme + vim cursor bgcolor --- alacritty/alacritty.toml | 34 ++++++++-------------------------- nvim/lua/plugins/init.lua | 5 +++++ 2 files changed, 13 insertions(+), 26 deletions(-) diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml index c16869e..dd625ac 100644 --- a/alacritty/alacritty.toml +++ b/alacritty/alacritty.toml @@ -1,6 +1,11 @@ colors.draw_bold_text_with_bright_colors = false #custom_cursor_colors = true -general.live_config_reload = true + +[general] +import = [ + "~/.config/alacritty/themes/themes/hardhacker.toml" +] +live_config_reload = true [window] dynamic_padding = true @@ -45,34 +50,10 @@ y = 3 x = 0 y = 0 -[colors.primary] -background = '#1c2023' -foreground = '#c7ccd1' - [colors.cursor] -text = '#1c2023' +text = 'CellBackground' cursor = '#c7ccd1' -[colors.normal] -black = '#1c2023' -red = '#c7ae95' -green = '#95c7ae' -yellow = '#aec795' -blue = '#ae95c7' -magenta = '#c795ae' -cyan = '#95aec7' -white = '#c7ccd1' - -[colors.bright] -black = '#747c84' -red = '#c7ae95' -green = '#95c7ae' -yellow = '#aec795' -blue = '#ae95c7' -magenta = '#c795ae' -cyan = '#95aec7' -white = '#f3f4f5' - [bell] animation = "EaseOutExpo" color = "0xffffff" @@ -104,4 +85,5 @@ bindings = [ { key = "X", mods = "Command", chars = "\u0018" }, { key = "Y", mods = "Command", chars = "\u0019" }, { key = "Z", mods = "Command", chars = "\u001a" }, + { key = "F", mods = "Command", action = "ToggleMaximized" }, ] diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua index a341ff9..2f53025 100644 --- a/nvim/lua/plugins/init.lua +++ b/nvim/lua/plugins/init.lua @@ -88,6 +88,11 @@ local plugins = { require("lazy").setup(plugins) +vim.cmd([[ + set termguicolors + hi Cursor guifg=red guibg=green + set guicursor=n-v-c:block-Cursor/lCursor,i-ci-ve:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,o:hor50-Cursor/lCursor,a:blinkwait700-blinkoff400-blinkon250-Cursor/lCursor,sm:block-blinkwait175-blinkoff150-blinkon175-Cursor/lCursor +]]) require("plugins/telescope") require("plugins/completions") require("plugins/gitsigns") From 04aef1e1799867a8e9083f9d7a947ebc48fddb05 Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Tue, 8 Apr 2025 19:46:07 +0300 Subject: [PATCH 5/5] alacritty alt fixes for mac + togglemaximized --- alacritty/alacritty.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alacritty/alacritty.toml b/alacritty/alacritty.toml index dd625ac..a0d1305 100644 --- a/alacritty/alacritty.toml +++ b/alacritty/alacritty.toml @@ -8,6 +8,7 @@ import = [ live_config_reload = true [window] +option_as_alt = "Both" # fixing Alt for MacOS dynamic_padding = true decorations = "None" startup_mode = "Maximized" @@ -85,5 +86,5 @@ bindings = [ { key = "X", mods = "Command", chars = "\u0018" }, { key = "Y", mods = "Command", chars = "\u0019" }, { key = "Z", mods = "Command", chars = "\u001a" }, - { key = "F", mods = "Command", action = "ToggleMaximized" }, + { key = "F", mods = "Control", action = "ToggleMaximized" }, ]