diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml deleted file mode 100644 index 3cd13de..0000000 --- a/.config/alacritty/alacritty.toml +++ /dev/null @@ -1,115 +0,0 @@ -[colors.bright] -black = "#555555" -blue = "#00afff" -cyan = "#50cdfe" -green = "#b0e05e" -magenta = "#af87ff" -red = "#f5669c" -white = "#ffffff" -yellow = "#fef26c" - -[colors.normal] -black = "#121212" -blue = "#0f7fcf" -cyan = "#42a7cf" -green = "#97e123" -magenta = "#8700ff" -red = "#fa2573" -white = "#bbbbbb" -yellow = "#dfd460" - -[colors.primary] -background = "#000010" -foreground = "#F8F8F2" - -[font] -size = 15 - -[font.bold] -family = "Iosevka Term Extended" -style = "Bold" - -[font.bold_italic] -family = "Iosevka Term Extended" -style = "Bold Italic" - -[font.italic] -family = "Iosevka Term Extended" -style = "Italic" - -[font.normal] -family = "Iosevka Term Extended" -style = "Regular" - -[[keyboard.bindings]] -action = "ToggleFullscreen" -key = "F11" - -[[keyboard.bindings]] -action = "ToggleViMode" -key = "Escape" -mode = "Vi" - -[[keyboard.bindings]] -action = "ScrollHalfPageUp" -key = "E" -mode = "Vi" -mods = "Control" - -[[keyboard.bindings]] -key = "F" -mods = "Control|Shift" -action = "ReceiveChar" - -[[keyboard.bindings]] -chars = "\u001B[72;6u" -key = "H" -mods = "Control|Shift" - -[[keyboard.bindings]] -chars = "\u001B[74;6u" -key = "J" -mods = "Control|Shift" - -[[keyboard.bindings]] -chars = "\u001B[75;6u" -key = "K" -mods = "Control|Shift" - -[[keyboard.bindings]] -chars = "\u001B[76;6u" -key = "L" -mods = "Control|Shift" - -[[keyboard.bindings]] -chars = "\u001B[105;5u" -key = "I" -mods = "Control" - -[[keyboard.bindings]] -chars = "\u001B[46;5u" -key = "Period" -mods = "Control" - -[[keyboard.bindings]] -chars = "\u001B[44;5u" -key = "Comma" -mods = "Control" - -[[keyboard.bindings]] -chars = "\u001B[59;5u" -key = "Semicolon" -mods = "Control" - -[[keyboard.bindings]] -chars = "\u001B[13;2u" -key = "Return" -mods = "Shift" - -[scrolling] -history = 10000 - -[window] -dynamic_padding = true -dynamic_title = true -opacity = 0.3 diff --git a/NixOS/configuration.nix b/NixOS/configuration.nix index b699574..205962d 100644 --- a/NixOS/configuration.nix +++ b/NixOS/configuration.nix @@ -65,4 +65,14 @@ networking.firewall.enable = false; system.stateVersion = "23.11"; environment.sessionVariables.NIXOS_OZONE_WL = "1"; #hint electron apps to use wayland: + + # Fonts + fonts.packages = with pkgs; [ + noto-fonts + noto-fonts-cjk + noto-fonts-emoji + iosevka + nerdfonts + ]; + } diff --git a/NixOS/modules/alacritty/config.nix b/NixOS/modules/alacritty/config.nix new file mode 100644 index 0000000..1ac172c --- /dev/null +++ b/NixOS/modules/alacritty/config.nix @@ -0,0 +1,127 @@ +{ config, pkgs, ... }: + +{ + programs.alacritty = { + enable = true; + settings = { + scrolling.history = 10000; + window = { + dynamic_padding = true; + dynamic_title = true; + opacity = 0.3; + }; + colors = { + bright = { + black = "#555556"; + blue = "#00afff"; + cyan = "#50cdfe"; + green = "#b0e05e"; + magenta = "#af87ff"; + red = "#f5669c"; + white = "#ffffff"; + yellow = "#fef26c"; + }; + normal = { + black = "#121213"; + blue = "#0f7fcf"; + cyan = "#42a7cf"; + green = "#97e123"; + magenta = "#8700ff"; + red = "#fa2573"; + white = "#bbbbbb"; + yellow = "#dfd460"; + }; + primary = { + background = "#000011"; + foreground = "#F8F8F2"; + }; + }; + font = { + size = 15; + bold = { + family = "Iosevka Term Extended"; + style = "Bold"; + }; + bold_italic = { + family = "Iosevka Term Extended"; + style = "Bold Italic"; + }; + italic = { + family = "Iosevka Term Extended"; + style = "Italic"; + }; + normal = { + family = "Iosevka Term Extended"; + style = "Regular"; + }; + }; + keyboard.bindings = [ + { + action = "ToggleFullscreen"; + key = "F11"; + } + { + action = "ToggleViMode"; + key = "Escape"; + mode = "Vi"; + } + { + action = "ScrollHalfPageUp"; + key = "E"; + mode = "Vi"; + mods = "Control"; + } + { + key = "F"; + mods = "Control|Shift"; + action = "ReceiveChar"; + } + { + chars = "\u001B[72;6u"; + key = "H"; + mods = "Control|Shift"; + } + { + chars = "\u001B[74;6u"; + key = "J"; + mods = "Control|Shift"; + } + { + chars = "\u001B[75;6u"; + key = "K"; + mods = "Control|Shift"; + } + { + chars = "\u001B[76;6u"; + key = "L"; + mods = "Control|Shift"; + } + { + chars = "\u001B[105;5u"; + key = "I"; + mods = "Control"; + } + { + chars = "\u001B[46;5u"; + key = "Period"; + mods = "Control"; + } + { + chars = "\u001B[44;5u"; + key = "Comma"; + mods = "Control"; + } + { + chars = "\u001B[59;5u"; + key = "Semicolon"; + mods = "Control"; + } + { + chars = "\u001B[13;2u"; + key = "Return"; + mods = "Shift"; + } + ] + }; + }; +}