From b78a6fa7c96895dfde29cf1c639bc64b3b5a63cc Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 30 May 2024 15:10:19 -0400 Subject: oops, lots of updates - got it working on beryl and my new framework laptop - refactored stuff in the process - added some catppuccin theme stuff --- lib/theme.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lib/theme.nix (limited to 'lib/theme.nix') diff --git a/lib/theme.nix b/lib/theme.nix new file mode 100644 index 0000000..1020514 --- /dev/null +++ b/lib/theme.nix @@ -0,0 +1,24 @@ +{ pkgs, lib }: +let + inherit (import ./const.nix) homedir; +in rec { + theme = lib.removeSuffix "\n" (builtins.readFile "${homedir}/.local/share/xtheme"); + + base16-scheme = "atelier-sulphurpool"; + base16-scheme-filename = lib.strings.concatStrings (lib.strings.splitString "-" base16-scheme); + xresourcesFile = "${pkgs.base16}/xresources/base16-${base16-scheme-filename}.${theme}.256.xresources"; + + + colors = { # derived from spacemacs + "dark" = { + highlight = "#5d4d7a"; + background = "#292b2e"; + foreground = "#b2b2b2"; + }; + "light" = { + highlight = "#67b11d"; + background = "#f6f1e1"; + foreground = "#655370"; + }; + }; +} -- cgit v1.2.3