diff --git a/pkgs/matugen/custom/config.toml b/pkgs/matugen/custom/config.toml index 1927298..ae312e5 100644 --- a/pkgs/matugen/custom/config.toml +++ b/pkgs/matugen/custom/config.toml @@ -1,2 +1,59 @@ +[config] +# If set to enabled, it will check for updates when you run the matugen command, notifying you that an update is avaiable. +# WARNING: Matugen needs to be compiled with the `update-informer` feature for this to work. +version_check = false + +[config.wallpaper] +# The base command to run for applying the wallpaper, shouldn't have spaces in it. +command = "swww" + +# The arguments that will be provided to the command. +# Keywords like {{ mode }} or anything that works inside of hooks doesn't work here. +# The last argument will be the image path. +arguments = ["img", "--transition-type", "center"] + +# For example, killing the wallpaper daemon. Usage is like a normal hook. +# pre_hook = "" + [config.custom_keywords] -font1 = "JetBrainsMono Nerd Font" +test = "aaaa" + +[templates.name1] +# Relative paths will be resolved from the path `config.toml` is in. +input_path = "./colors.whatever-extension" +output_path = "./a/colors-generated.whatever-extension" + +# This will use a different input path depending on what mode you use. +# input_path_modes = { dark = "./colors.whatever-extension", light = "./colors.whatever-extension" } + +# This will compare all of the colors inside the array with the color you set as `compare_to`, and returns the closest color to it. +# You can then use `{{closest_color}}` inside templates and hooks. +colors_to_compare = [ + { name = "black", color = "#000000" }, + { name = "red", color = "#ff0000" }, + { name = "maroon", color = "#800000" }, + { name = "yellow", color = "#ffff00" }, + { name = "olive", color = "#808000" }, + { name = "lime", color = "#00ff00" }, + { name = "green", color = "#008000" }, + { name = "aqua", color = "#00ffff" }, + { name = "teal", color = "#008080" }, + { name = "blue", color = "#0000ff" }, + { name = "navy", color = "#000080" }, + { name = "fuchsia", color = "#ff00ff" }, + { name = "purple", color = "#800080" }, +] +compare_to = "{{colors.primary.default.hex}}" + +# Runs before the template is exported. You can use keywords here, +pre_hook = 'echo "source color {{colors.source_color.default.hex}}, source image {{image}}, closest color {{closest_color}}"' +# Runs after the template is exported. You can use keywords here. +post_hook = 'echo "after gen"' + +# Only hex values +# https://m3.material.io/styles/color/advanced/adjust-existing-colors#1cc12e43-237b-45b9-8fe0-9a3549c1f61e +# Blend is set to true by default. +[config.custom_colors] +green = "#00ff00" +red = "#ff0000" +blue = { color = "#0000ff", blend = false }