Matugen
A cross-platform material you and base16 color generation tool
Configuration
Config file locations
You can use a custom configuration path by using the
-c argument
| Platform | Location |
|---|---|
| Windows |
C:\Users\user\AppData\Roaming\InioX\matugen\config\config.toml
|
| Linux/Unix | /home/user/.config/matugen/config.toml |
| MacOS |
/Users/user/Library/Application
Support/com.InioX.matugen/config.toml
|
Example Configuration
The example config.toml file has comments for every option in the config.
Basic Syntax
Adding templates
# config_directory/config.toml
[templates.test] # First way of adding template
input_path = '~/.config/example/template.css'
output_path = '~/.config/example'
[templates] # Another way
test2 = { input_path = '~/.config/example/template2.css', output_path = '~/.config/example2' }
Template hooks
-
pre_hook: Executes a command inside the string BEFORE the template is generated -
post_hook: Executes a command inside the string AFTER the template is generated
[templates.test]
# input_path = "some/path"
# output_path = "some/path"
pre_hook = 'echo "hello world"'
post_hook = "cat /some/file.txt"