feat: test stuff

This commit is contained in:
2024-04-24 11:23:26 +02:00
parent 0f90ac4ed1
commit 101b89f378
7 changed files with 106 additions and 3 deletions

View File

@@ -47,6 +47,7 @@
};
};
theming.matugen.enable = true;
desktops = {
hyprland.enable = true;
# gamescope.enable = true;

View File

@@ -6,11 +6,9 @@
symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0-U+E0D4,U+E200-U+E2A9,U+E300-U+E3E3,U+E5FA-U+E6AA,U+E700-U+E7C5,U+EA60-U+EBEB,U+F000-U+F2E0,U+F300-U+F32F,U+F400-U+F4A9,U+F500-U+F8FF,U+F0001-U+F1AF0 Symbols Nerd Font Mono
font_size 13
include ./current-theme.conf
'';
settings = {
background_opacity = "0.8";
#background_opacity = "0.8";
window_padding_width = 10;
};
}

View File

@@ -7,6 +7,8 @@
lorri
vulnix
matugen # TODO
# browsers
chromium
brave

View File

@@ -22,6 +22,8 @@
./locales/theaninova.nix
./theming/matugen.nix
./usecases/gaming.nix
./usecases/3d-printing.nix
./usecases/development.nix

View 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}}

View 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";
};
};
};
};
};
}

View File

@@ -0,0 +1,4 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [ nodejs_18 nodePackages.pnpm ];
}