diff options
author | Freya Murphy <freya@freyacat.org> | 2025-06-27 16:39:14 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-06-27 16:39:14 -0400 |
commit | 2e4c4298cf84f94d68387e8076fd430e9968ce6c (patch) | |
tree | 2a43fa6d4659fe2585c75aeec3ee4d5e0a42de2e /modules/terminal | |
parent | fmt (diff) | |
download | dotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.tar.gz dotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.tar.bz2 dotfiles-nix-2e4c4298cf84f94d68387e8076fd430e9968ce6c.zip |
refactor
Diffstat (limited to 'modules/terminal')
-rw-r--r-- | modules/terminal/alacritty.nix | 99 | ||||
-rw-r--r-- | modules/terminal/default.nix | 17 | ||||
-rw-r--r-- | modules/terminal/kitty.nix | 81 |
3 files changed, 0 insertions, 197 deletions
diff --git a/modules/terminal/alacritty.nix b/modules/terminal/alacritty.nix deleted file mode 100644 index 27a8150..0000000 --- a/modules/terminal/alacritty.nix +++ /dev/null @@ -1,99 +0,0 @@ -{ - config, - lib, - ... -}: let - inherit (lib) mkIf; - cfg = config.terminal; -in { - config = mkIf cfg.alacritty { - default.terminal = lib.mkDefault "alacritty"; - - home-manager.users.${config.user} = { - programs.alacritty = { - enable = true; - - settings = { - # Font - font = { - size = 11; - bold = { - style = "Bold"; - }; - bold_italic = { - style = "Bold Italic"; - }; - italic = { - style = "Italic"; - }; - normal = { - family = config.theme.font.monospace; - style = "Regular"; - }; - offset = { - x = 0; - y = 0; - }; - }; - - # Window - window = { - decorations = "full"; - dynamic_title = true; - padding = { - x = config.theme.outerGap; - y = config.theme.outerGap; - }; - opacity = config.theme.opacity; - }; - - # Colors - colors = { - normal = lib.attrsets.mapAttrs (name: color: "${color}") { - inherit - (config.theme.colors.normal) - black - red - green - yellow - blue - magenta - cyan - white - ; - }; - - bright = lib.attrsets.mapAttrs (name: color: "${color}") { - inherit - (config.theme.colors.bright) - black - red - green - yellow - blue - magenta - cyan - white - ; - }; - - cursor = { - background = "CellForeground"; - text = "CellBackground"; - }; - - selection = { - background = "CellForeground"; - text = "CellBackground"; - }; - - primary = { - foreground = "#${config.theme.colors.text}"; - background = "#${config.theme.colors.base}"; - }; - }; - }; - }; - }; - }; -} diff --git a/modules/terminal/default.nix b/modules/terminal/default.nix deleted file mode 100644 index 8d97a01..0000000 --- a/modules/terminal/default.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ - lib, - config, - ... -}: let - inherit (lib) mkEnableOption; -in { - imports = [ - ./alacritty.nix - ./kitty.nix - ]; - - options.terminal = { - alacritty = mkEnableOption "Enable the alacritty terminal."; - kitty = mkEnableOption "Enable the kitty terminal."; - }; -} diff --git a/modules/terminal/kitty.nix b/modules/terminal/kitty.nix deleted file mode 100644 index cee0e72..0000000 --- a/modules/terminal/kitty.nix +++ /dev/null @@ -1,81 +0,0 @@ -{ - config, - lib, - ... -}: let - inherit (lib) mkIf; - cfg = config.terminal; -in { - config = mkIf cfg.kitty { - default.terminal = lib.mkDefault "kitty"; - - home-manager.users.${config.user} = { - programs.kitty = { - enable = true; - environment = {}; - extraConfig = ""; - - settings = { - # Font - font_family = config.theme.font.monospace; - font_size = 11; - bold_font = "auto"; - italic_font = "auto"; - bold_italic_font = "auto"; - - # Scrollback - scrollback_lines = 10000; - scrollback_pager_history_size = 300; # MB - - # Urls - detect_urls = true; - show_hyperlink_targets = false; - - # Window - window_padding_width = config.theme.outerGap; - window_border_width = 0; - draw_minimal_borders = true; - background_opacity = config.theme.opacity; - - # Disable audio - enable_audio_bell = false; - - # Disable close prompt - confirm_os_window_close = 0; - - # selection - selection_background = "#${config.theme.colors.surface}"; - selection_foreground = "none"; - - # cursor - url_color = "#${config.theme.colors.bright.yellow}"; - cursor = "#${config.theme.colors.text}"; - - # colors - background = "#${config.theme.colors.base}"; - foreground = "#${config.theme.colors.text}"; - - # normal - color0 = "#${config.theme.colors.normal.black}"; - color1 = "#${config.theme.colors.normal.red}"; - color2 = "#${config.theme.colors.normal.green}"; - color3 = "#${config.theme.colors.normal.yellow}"; - color4 = "#${config.theme.colors.normal.blue}"; - color5 = "#${config.theme.colors.normal.magenta}"; - color6 = "#${config.theme.colors.normal.cyan}"; - color7 = "#${config.theme.colors.normal.white}"; - - # bright - color8 = "#${config.theme.colors.bright.black}"; - color9 = "#${config.theme.colors.bright.red}"; - color10 = "#${config.theme.colors.bright.green}"; - color11 = "#${config.theme.colors.bright.yellow}"; - color12 = "#${config.theme.colors.bright.blue}"; - color13 = "#${config.theme.colors.bright.magenta}"; - color14 = "#${config.theme.colors.bright.cyan}"; - color15 = "#${config.theme.colors.bright.white}"; - }; - }; - }; - }; -} |