Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

fix(matugen): add missing --source-color-index flag for v4.0 compatibility#1184

Merged
Jas-SinghFSU merged 2 commits into
Jas-SinghFSU:masterfrom
BaigHack3rss:master
Mar 23, 2026
Merged

fix(matugen): add missing --source-color-index flag for v4.0 compatibility#1184
Jas-SinghFSU merged 2 commits into
Jas-SinghFSU:masterfrom
BaigHack3rss:master

Conversation

@BaigHack3rss

Copy link
Copy Markdown
Contributor

Matugen v4.0 requires the --source-color-index flag if the user wants autonomous behaviour and returns
colors in a nested JSON format { "dark": { "color": "#hex" } } instead of the previous flat format { "dark": "#hex" }.

Without the flag, matugen would try to prompts the user for the source color which caused hyprpanel to read it as an empty output, causing "Matugen returned empty output" errors.

Changes:

  • Added --source-color-index flag (defaults to 0)
  • Updated color extraction to handle nested { color: "#hex" } structure
  • Added source_color_index setting to matugen_settings
  • Added UI option for selecting color index (0-3)

Fixes compatibility with matugen v4.0+

…ility

Matugen v4.0 requires the --source-color-index flag if the user wants
autonomous behaviour and returns
colors in a nested JSON format { "dark": { "color": "#hex" } }
instead of the previous flat format { "dark": "#hex" }.

Without the flag, matugen would try to prompts the user for the source
color which caused hyprpanel to read it as an empty output, causing
"Matugen returned empty output" errors.

Changes:
- Added --source-color-index flag (defaults to 0)
- Updated color extraction to handle nested { color: "#hex" } structure
- Added source_color_index setting to matugen_settings
- Added UI option for selecting color index (0-3)

Fixes compatibility with matugen v4.0+
@BaigHack3rss

Copy link
Copy Markdown
Contributor Author

I'll fix the ESLint errors shortly.

@Jas-SinghFSU Jas-SinghFSU merged commit 08ead19 into Jas-SinghFSU:master Mar 23, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants