From 447cf74d3b56d68af7f2acf6980475f84d9bf6ff Mon Sep 17 00:00:00 2001 From: Marty Sluijtman Date: Fri, 8 Mar 2024 13:08:24 +0100 Subject: [PATCH] Minimum expected colorscheme --- flake.lock | 12 ++++++------ flake.nix | 4 ++-- nightmare/getKittyColorscheme.nix | 28 +++++++++++++++++++++++++++- 3 files changed, 35 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index c6c8262..d7bc628 100644 --- a/flake.lock +++ b/flake.lock @@ -5,11 +5,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1701680307, - "narHash": "sha256-kAuep2h5ajznlPMD9rnQyffWG8EM/C73lejGofXvdM8=", + "lastModified": 1709126324, + "narHash": "sha256-q6EQdSeUZOG26WelxqkmR7kArjgWCdw5sfJVHPH/7j8=", "owner": "numtide", "repo": "flake-utils", - "rev": "4022d587cbbfd70fe950c1e2083a02621806a725", + "rev": "d465f4819400de7c8d874d50b982301f28a84605", "type": "github" }, "original": { @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1704722960, - "narHash": "sha256-mKGJ3sPsT6//s+Knglai5YflJUF2DGj7Ai6Ynopz0kI=", + "lastModified": 1709703039, + "narHash": "sha256-6hqgQ8OK6gsMu1VtcGKBxKQInRLHtzulDo9Z5jxHEFY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "317484b1ead87b9c1b8ac5261a8d2dd748a0492d", + "rev": "9df3e30ce24fd28c7b3e2de0d986769db5d6225d", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 268cc28..a8d2664 100644 --- a/flake.nix +++ b/flake.nix @@ -1,7 +1,7 @@ { description = "A collection of tedious nix functions"; inputs = { - nixpkgs.url = github:NixOS/nixpkgs/nixos-unstable; - flake-utils.url = github:numtide/flake-utils; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; }; outputs = { nixpkgs, flake-utils, self }: flake-utils.lib.eachDefaultSystem (system: diff --git a/nightmare/getKittyColorscheme.nix b/nightmare/getKittyColorscheme.nix index d3083d9..942625a 100644 --- a/nightmare/getKittyColorscheme.nix +++ b/nightmare/getKittyColorscheme.nix @@ -19,4 +19,30 @@ let cfg = config.colorscheme; ''; in (builtins.fromTOML (builtins.readFile theme)); -in unwrapKittyTheme (getKittyTheme arg) + defaultTheme = { + selection_foreground = ""; + selection_background = ""; + foreground = ""; + background = ""; + color0 = ""; + color1 = ""; + color2 = ""; + color3 = ""; + color4 = ""; + color5 = ""; + color6 = ""; + color7 = ""; + color8 = ""; + color9 = ""; + color10 = ""; + color11 = ""; + color12 = ""; + color13 = ""; + color14 = ""; + color15 = ""; + cursor = ""; + cursor_text_color = ""; + url_color = ""; + }; + +in defaultTheme // unwrapKittyTheme (getKittyTheme arg)