diff options
| author | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-10-12 01:23:54 +0530 |
|---|---|---|
| committer | Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> | 2024-10-12 01:23:54 +0530 |
| commit | 15f26a50e9df70a2c8ef4bcc8550d0e4121ba6f4 (patch) | |
| tree | 21cedb4ec44542520dd5847772a20342ac82977d /modules/desktop/terminal/alacritty/default.nix | |
| parent | 35563f4b7c2e9a5ff8c58af6b0352ff1d88e7c02 (diff) | |
| download | home-manager-config-15f26a50e9df70a2c8ef4bcc8550d0e4121ba6f4.tar.gz home-manager-config-15f26a50e9df70a2c8ef4bcc8550d0e4121ba6f4.zip | |
Using desktop background.
Using window transparency with picom.
Using alacritty because kitty is having problems with colors when picom is running.
Diffstat (limited to 'modules/desktop/terminal/alacritty/default.nix')
| -rw-r--r-- | modules/desktop/terminal/alacritty/default.nix | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/modules/desktop/terminal/alacritty/default.nix b/modules/desktop/terminal/alacritty/default.nix deleted file mode 100644 index 151e098..0000000 --- a/modules/desktop/terminal/alacritty/default.nix +++ /dev/null @@ -1,83 +0,0 @@ -{ pkgs, config, lib, ... }: - -{ - options.desktop.terminal.alacritty = { - enable = lib.mkEnableOption "Enables alacritty."; - }; - - config = lib.mkIf config.desktop.terminal.alacritty.enable { - programs.alacritty.enable = true; - desktop.terminal.default = lib.mkDefault "alacritty"; - desktop.terminal.command = - if config.desktop.terminal.default == "alacritty" then - lib.mkForce "${pkgs.kitty}/bin/alacritty" - else ""; - - programs.alacritty.settings = { - window = { - opacity = 1.0; - padding = { - x = 4; - y = 0; - }; - decorations = "full"; - }; - - font = { - normal = { - family = config.fonts.normal; - style = "Retina"; - }; - bold = { - family = config.fonts.bold; - style = "Bold"; - }; - italic = { - family = config.fonts.italic; - }; - size = config.fonts.size; - }; - - colors = with config.scheme; { - primary = { - background = "0x${base00}"; - foreground = "0x${base05}"; - }; - normal = { - black = "0x${base00}"; - red = "0x${base08}"; - green = "0x${base0B}"; - yellow = "0x${base0A}"; - blue = "0x${base0D}"; - magenta = "0x${base0E}"; - cyan = "0x${base0C}"; - white = "0x${base05}"; - }; - bright = { - black = "0x${base03}"; - red = "0x${base08}"; - green = "0x${base0B}"; - yellow = "0x${base0A}"; - blue = "0x${base0D}"; - magenta = "0x${base0E}"; - cyan = "0x${base0C}"; - white = "0x${base07}"; - }; - dim = { - black = "0x${base01}"; - red = "0x${base08}"; - green = "0x${base0B}"; - yellow = "0x${base0A}"; - blue = "0x${base0D}"; - magenta = "0x${base0E}"; - cyan = "0x${base0C}"; - white = "0x${base04}"; - }; - }; - - shell = { - program = config.shell.command; - }; - }; - }; -} |
