From c68a6ddd787bee555fedd1f9b499fa09b4537e5f Mon Sep 17 00:00:00 2001 From: atagen Date: Mon, 21 Jul 2025 13:13:20 +1000 Subject: [PATCH] split kitty out to graphical --- common/terminal.nix | 33 --------------------------------- graphical/terminal.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 33 deletions(-) create mode 100644 graphical/terminal.nix diff --git a/common/terminal.nix b/common/terminal.nix index 70a8087..fc1a6a1 100644 --- a/common/terminal.nix +++ b/common/terminal.nix @@ -50,37 +50,4 @@ in EDITOR = "hx"; }; - hm.programs.kitty = { - enable = true; - font = { - inherit (rice.fonts.monospace) name size; - }; - settings = with rice.palette.hex; { - foreground = util.fg; - background = util.bg; - inherit (util) cursor; - cursor_text = util.bg; - selection_foreground = util.fg_sel; - selection_background = util.bg_sel; - color0 = normal.black; - color1 = normal.red; - color2 = normal.green; - color3 = normal.yellow; - color4 = normal.blue; - color5 = normal.magenta; - color6 = normal.cyan; - color7 = normal.white; - color8 = bright.black; - color9 = bright.red; - color10 = bright.green; - color11 = bright.yellow; - color12 = bright.blue; - color13 = bright.magenta; - color14 = bright.cyan; - color15 = bright.white; - sync_to_monitor = "yes"; - shell = "fish"; - cursor_trail = 100; - }; - }; } diff --git a/graphical/terminal.nix b/graphical/terminal.nix new file mode 100644 index 0000000..272ecb8 --- /dev/null +++ b/graphical/terminal.nix @@ -0,0 +1,41 @@ +{ config, ... }: +{ + hm.programs.kitty = + let + inherit (config) rice; + in + { + enable = true; + font = { + inherit (rice.fonts.monospace) name size; + }; + settings = with rice.palette.hex; { + foreground = util.fg; + background = util.bg; + inherit (util) cursor; + cursor_text = util.bg; + selection_foreground = util.fg_sel; + selection_background = util.bg_sel; + color0 = normal.black; + color1 = normal.red; + color2 = normal.green; + color3 = normal.yellow; + color4 = normal.blue; + color5 = normal.magenta; + color6 = normal.cyan; + color7 = normal.white; + color8 = bright.black; + color9 = bright.red; + color10 = bright.green; + color11 = bright.yellow; + color12 = bright.blue; + color13 = bright.magenta; + color14 = bright.cyan; + color15 = bright.white; + sync_to_monitor = "yes"; + shell = "fish"; + cursor_trail = 100; + }; + }; + +}