From 70a00c13a659bfa6fb735edc190684f3fcd3df57 Mon Sep 17 00:00:00 2001 From: Anthony Rodriguez Date: Tue, 1 Oct 2024 17:53:51 +0200 Subject: [PATCH] konsole: import colorscheme from modules --- home/terminal/emulators/konsole.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/home/terminal/emulators/konsole.nix b/home/terminal/emulators/konsole.nix index fe26a6a..6847b16 100644 --- a/home/terminal/emulators/konsole.nix +++ b/home/terminal/emulators/konsole.nix @@ -2,9 +2,13 @@ lib, config, inputs, + pkgs, ... }: { - programs.konsole = { + programs.konsole = let + inherit (config.theme) scheme; + schemeData = inputs.basix.schemeData.base16.${scheme}; + in { enable = true; defaultProfile = "default"; profiles = { @@ -13,6 +17,7 @@ name = "monospace"; size = 14; }; + colorScheme = schemeData.name; }; }; @@ -25,5 +30,9 @@ "ShowMenuBarByDefault" = "false"; }; }; + + customColorSchemes = { + "${schemeData.name}" = pkgs.lib.mkKonsoleColorScheme schemeData; + }; }; }