From 40a69747aa6f8d8540899701ec94f8238a20ede2 Mon Sep 17 00:00:00 2001 From: triethyl Date: Wed, 3 Dec 2025 09:23:28 -0500 Subject: home-manager: added kitty feature --- home-manager/features/gui/apps/kitty.nix | 10 +++++++++- .../features/gui/desktops/niri/parts/niri/keybinds.nix | 4 ++-- home-manager/modules/aesthetics/default.nix | 2 +- home-manager/modules/aesthetics/targets/default.nix | 1 + home-manager/modules/aesthetics/targets/kitty.nix | 8 +++++--- home-manager/users/nzxt-desktop/culsans.nix | 1 + 6 files changed, 19 insertions(+), 7 deletions(-) (limited to 'home-manager') diff --git a/home-manager/features/gui/apps/kitty.nix b/home-manager/features/gui/apps/kitty.nix index a9d7312..8ec21bb 100644 --- a/home-manager/features/gui/apps/kitty.nix +++ b/home-manager/features/gui/apps/kitty.nix @@ -1,6 +1,5 @@ { config, - pkgs, lib, ... }: let @@ -10,6 +9,15 @@ in { config = lib.mkIf cfg.enable { programs.kitty = { enable = true; + settings = { + confirm_os_window_close = 0; + + notify_on_cmd_finish = "invisible 20"; + + # cursor_trail = 200; + # cursor_trail_decay = "0.1 0.4"; + # cursor_trail_start_threshold = 2; + }; }; }; } diff --git a/home-manager/features/gui/desktops/niri/parts/niri/keybinds.nix b/home-manager/features/gui/desktops/niri/parts/niri/keybinds.nix index b5fbf86..9c7428b 100644 --- a/home-manager/features/gui/desktops/niri/parts/niri/keybinds.nix +++ b/home-manager/features/gui/desktops/niri/parts/niri/keybinds.nix @@ -14,9 +14,9 @@ in { right = "l"; in { # App Launching Keys - "Mod+Q".action.spawn = ["foot"]; + "Mod+Q".action.spawn = [defaultTerminal.command]; "Mod+W".action.spawn = ["librewolf"]; - "Mod+E".action.spawn = ["neovide"]; + "Mod+E".action.spawn = [ defaultTerminal.runTuiCommand "nvim"]; "Mod+Shift+E".action.spawn = [ defaultTerminal.runTuiCommand "ikhal"]; "Mod+N".action.spawn = ["scrap-maker"]; diff --git a/home-manager/modules/aesthetics/default.nix b/home-manager/modules/aesthetics/default.nix index c49a198..8e16ad6 100644 --- a/home-manager/modules/aesthetics/default.nix +++ b/home-manager/modules/aesthetics/default.nix @@ -34,7 +34,7 @@ in { font = { name = lib.mkOption { type = lib.types.str; - default = "CodeNewRoman Nerd Font"; + default = "CodeNewRoman Nerd Font Mono"; description = "The font to use."; }; package = lib.mkOption { diff --git a/home-manager/modules/aesthetics/targets/default.nix b/home-manager/modules/aesthetics/targets/default.nix index 7dba76d..40c6751 100644 --- a/home-manager/modules/aesthetics/targets/default.nix +++ b/home-manager/modules/aesthetics/targets/default.nix @@ -7,5 +7,6 @@ ./gtk.nix ./foot.nix ./vesktop.nix + ./kitty.nix ]; } diff --git a/home-manager/modules/aesthetics/targets/kitty.nix b/home-manager/modules/aesthetics/targets/kitty.nix index 627eda5..834e652 100644 --- a/home-manager/modules/aesthetics/targets/kitty.nix +++ b/home-manager/modules/aesthetics/targets/kitty.nix @@ -2,16 +2,18 @@ cfg = config.aesthetics.targets.kitty; aes = config.aesthetics; in { - options.aesthetics.targets.foot.enable = lib.mkOption { + options.aesthetics.targets.kitty.enable = lib.mkOption { type = lib.types.bool; default = (aes.enableAllTargets && aes.hasGui); description = "Whether to enable the aesthetics kitty target."; }; - config = lib.mkIf (cfg.enable && config.programs.foot.enable) { + config = lib.mkIf (cfg.enable && config.programs.kitty.enable) { programs.kitty.settings = with aes.scheme; { - font_family = aes.font.name; + font_family = "${aes.font.name} Mono"; font_size = aes.font.size.small; + box_drawing_scale = "0.001, 1.5, 1.5, 2"; + background = "#${base00}"; foreground = "#${base05}"; selection_background = "#${base05}"; diff --git a/home-manager/users/nzxt-desktop/culsans.nix b/home-manager/users/nzxt-desktop/culsans.nix index 9ac3cf8..4240250 100644 --- a/home-manager/users/nzxt-desktop/culsans.nix +++ b/home-manager/users/nzxt-desktop/culsans.nix @@ -29,6 +29,7 @@ gui = { apps = { foot.enable = true; + kitty.enable = true; librewolf.enable = true; qutebrowser.enable = true; vesktop.enable = true; -- cgit v1.2.3