mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2025-12-12 11:36:20 +00:00
feat: test stuff
This commit is contained in:
28
modules/nixos/theming/kitty.conf
Normal file
28
modules/nixos/theming/kitty.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
background {{colors.surface.default.hex}}
|
||||
foreground {{colors.on_surface.default.hex}}
|
||||
|
||||
selection_background {{colors.primary.default.hex}}
|
||||
selection_foreground {{colors.on_primary.default.hex}}
|
||||
|
||||
url_color {{colors.tertiary.default.hex}}
|
||||
cursor {{colors.on_surface.default.hex}}
|
||||
|
||||
# normal
|
||||
color0 {{colors.surface.default.hex}}
|
||||
color1 {{harmonized_colors.red.hex}}
|
||||
color2 {{harmonized_colors.green.hex}}
|
||||
color3 {{harmonized_colors.yellow.hex}}
|
||||
color4 {{harmonized_colors.blue.hex}}
|
||||
color5 {{harmonized_colors.magenta.hex}}
|
||||
color6 {{harmonized_colors.cyan.hex}}
|
||||
color7 {{colors.on_surface.default.hex}}
|
||||
|
||||
# bright
|
||||
color8 {{colors.surface_variant.default.hex}}
|
||||
color9 {{harmonized_colors.bright_red.hex}}
|
||||
color10 {{harmonized_colors.bright_green.hex}}
|
||||
color11 {{harmonized_colors.bright_yellow.hex}}
|
||||
color12 {{harmonized_colors.bright_blue.hex}}
|
||||
color13 {{harmonized_colors.bright_magenta.hex}}
|
||||
color14 {{harmonized_colors.bright_cyan.hex}}
|
||||
color15 {{colors.on_surface_variant.default.hex}}
|
||||
68
modules/nixos/theming/matugen.nix
Normal file
68
modules/nixos/theming/matugen.nix
Normal file
@@ -0,0 +1,68 @@
|
||||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
|
||||
let
|
||||
cfg = config.theming.matugen;
|
||||
homeCfg = config.home-manager.users.${username};
|
||||
in
|
||||
{
|
||||
options.theming.matugen = {
|
||||
enable = mkEnableOption "Enable dynamic theming through matugen";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [
|
||||
matugen
|
||||
swww
|
||||
];
|
||||
|
||||
home-manager.users.${username} = {
|
||||
programs.kitty.extraConfig = ''
|
||||
include ${homeCfg.xdg.configHome}/kitty/theme.conf
|
||||
'';
|
||||
|
||||
xdg.configFile."matugen/config.toml".source = (pkgs.formats.toml { }).generate "matugen" {
|
||||
config = {
|
||||
reload_apps = true;
|
||||
reload_apps_list = {
|
||||
kitty = true;
|
||||
gtk_theme = true;
|
||||
waybar = false;
|
||||
dunst = false;
|
||||
};
|
||||
|
||||
set_wallpaper = true;
|
||||
wallpaper_tool = "Swww";
|
||||
|
||||
colors_to_harmonize = {
|
||||
red = "#ff0000";
|
||||
green = "#00ff00";
|
||||
yellow = "#ffff00";
|
||||
blue = "#0000ff";
|
||||
magenta = "#ff00ff";
|
||||
cyan = "#00ffff";
|
||||
bright_red = "#ff9999";
|
||||
bright_green = "#99ff99";
|
||||
bright_yellow = "#ffff99";
|
||||
bright_blue = "#9999ff";
|
||||
bright_magenta = "#ff99ff";
|
||||
bright_cyan = "#99ffff";
|
||||
};
|
||||
};
|
||||
|
||||
templates = {
|
||||
kitty = {
|
||||
input_path = ./kitty.conf;
|
||||
output_path = "${homeCfg.xdg.configHome}/kitty/theme.conf";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user