Early matugen implementation
This commit is contained in:
parent
44656911cb
commit
2bdff80599
9 changed files with 162 additions and 120 deletions
28
Assets/Matugen/matugen.toml
Normal file
28
Assets/Matugen/matugen.toml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# matugen configuration for Noctalia
|
||||
# This file configures how matugen generates colors from wallpapers
|
||||
|
||||
[config]
|
||||
# Color scheme type for generation
|
||||
scheme = "dark"
|
||||
|
||||
# Color space for color extraction
|
||||
color_space = "oklch"
|
||||
|
||||
# Algorithm for color extraction
|
||||
algorithm = "kmeans"
|
||||
|
||||
# Number of colors to extract
|
||||
color_count = 16
|
||||
|
||||
# Use source image colors
|
||||
use_source_colors = true
|
||||
|
||||
# Generate dark theme variant
|
||||
generate_dark = true
|
||||
|
||||
# Generate light theme variant
|
||||
generate_light = false
|
||||
|
||||
[templates.noctalia]
|
||||
input_path = "templates/noctalia.json"
|
||||
output_path = "~/.config/noctalia/theme.json"
|
||||
26
Assets/Matugen/templates/noctalia.json
Normal file
26
Assets/Matugen/templates/noctalia.json
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"backgroundPrimary": "{{colors.surface_dim.default.hex}}",
|
||||
"backgroundSecondary": "{{colors.surface.default.hex}}",
|
||||
"backgroundTertiary": "{{colors.surface_bright.default.hex}}",
|
||||
|
||||
"surface": "{{colors.surface.default.hex}}",
|
||||
"surfaceVariant": "{{colors.surface_variant.default.hex}}",
|
||||
|
||||
"textPrimary": "{{colors.on_surface.default.hex}}",
|
||||
"textSecondary": "{{colors.on_surface_variant.default.hex}}",
|
||||
"textDisabled": "{{colors.on_surface_variant.default.hex}}",
|
||||
|
||||
"accentPrimary": "{{colors.primary.default.hex}}",
|
||||
"accentSecondary": "{{colors.secondary.default.hex}}",
|
||||
"accentTertiary": "{{colors.tertiary.default.hex}}",
|
||||
|
||||
"error": "{{colors.error.default.hex}}",
|
||||
"warning": "{{colors.error_container.default.hex}}",
|
||||
|
||||
"hover": "{{colors.primary_container.default.hex}}",
|
||||
"onAccent": "{{colors.on_primary.default.hex}}",
|
||||
"outline": "{{colors.outline.default.hex}}",
|
||||
|
||||
"shadow": "{{colors.shadow.default.hex}}",
|
||||
"overlay": "{{colors.scrim.default.hex}}"
|
||||
}
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
{
|
||||
"backgroundPrimary": "{{ background }}",
|
||||
"backgroundSecondary": "{{ background | lighten(0.03) }}",
|
||||
"backgroundTertiary": "{{ background | lighten(0.06) }}",
|
||||
|
||||
"surface": "{{ background | lighten(0.01) }}",
|
||||
"surfaceVariant": "{{ background | lighten(0.07) }}",
|
||||
|
||||
"textPrimary": "{{ foreground }}",
|
||||
"textSecondary": "{{ foreground | darken(0.25) }}",
|
||||
"textDisabled": "{{ foreground | darken(0.5) }}",
|
||||
|
||||
"accentPrimary": "{{ color1 }}",
|
||||
"accentSecondary": "{{ color6 }}",
|
||||
"accentTertiary": "{{ color4 }}",
|
||||
|
||||
"error": "{{ color5 | saturate(0.5) }}",
|
||||
"warning": "{{ color6 | saturate(0.4) }}",
|
||||
|
||||
"hover": "{{ color14 }}",
|
||||
"onAccent": "{{ background }}",
|
||||
"outline": "{{ background | lighten(0.15) }}",
|
||||
|
||||
"shadow": "{{ background }}",
|
||||
"overlay": "{{ background }}"
|
||||
}
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
# wallust v3.3
|
||||
#
|
||||
# You can copy this file to ~/.config/wallust/wallust.toml (keep in mind is a sample config)
|
||||
|
||||
# SIMPLE TUTORIAL, or `man wallust.5`:
|
||||
# https://explosion-mental.codeberg.page/wallust/
|
||||
#
|
||||
# If comming from v2: https://explosion-mental.codeberg.page/wallust/v3.html#wallusttoml
|
||||
|
||||
# Global section - values below can be overwritten by command line flags
|
||||
|
||||
# How the image is parse, in order to get the colors:
|
||||
# full - resized - wal - thumb - fastresize - kmeans
|
||||
backend = "resized"
|
||||
|
||||
# What color space to use to produce and select the most prominent colors:
|
||||
# lab - labmixed - lch - lchmixed
|
||||
color_space = "labmixed"
|
||||
|
||||
# Use the most prominent colors in a way that makes sense, a scheme color palette:
|
||||
# dark - dark16 - darkcomp - darkcomp16
|
||||
# light - light16 - lightcomp - lightcomp16
|
||||
# harddark - harddark16 - harddarkcomp - harddarkcomp16
|
||||
# softdark - softdark16 - softdarkcomp - softdarkcomp16
|
||||
# softlight - softlight16 - softlightcomp - softlightcomp16
|
||||
palette = "dark"
|
||||
|
||||
# Ensures a "readable contrast" (OPTIONAL, disabled by default)
|
||||
# Should only be enabled when you notice an unreadable contrast frequently happening
|
||||
# with your images. The reference color for the contrast is the background color.
|
||||
check_contrast = true
|
||||
|
||||
# Color saturation, between [1% and 100%] (OPTIONAL, disabled by default)
|
||||
# usually something higher than 50 increases the saturation and below
|
||||
# decreases it (on a scheme with strong and vivid colors)
|
||||
#saturation = 50
|
||||
|
||||
# Alpha value for templating, by default 100 (no other use whatsoever)
|
||||
#alpha = 100
|
||||
|
||||
[templates]
|
||||
# NOTE: prefer '' over "" for paths, avoids escaping.
|
||||
# template: A RELATIVE path that points to `~/.config/wallust/template` (depends on platform)
|
||||
# target: ABSOLUTE path in which to place a file with generated templated values.
|
||||
# ¡ If either one is a directory, then both SHOULD be one. !
|
||||
# zathura = { template = 'zathura', target = '~/.config/zathura/zathurarc' }
|
||||
Noctalia = { template = 'noctalia.json', target = '~/.config/noctalia/theme.json' }
|
||||
Loading…
Add table
Add a link
Reference in a new issue