Skip to content

Conversation

@jmylchreest
Copy link
Contributor

Add isWildcard() helper to treat both empty string and "*" as wildcards when matching wallpaper settings to monitors.

This works around a limitation in hyprlang where listKeysForSpecialCategory() skips entries with empty string keys (due to isStatic check in retrieveKeysForCat), causing configs like:

wallpaper {
    monitor =
    path = /path/to/image.png
}

to be silently ignored. Users should now use "monitor = *" instead.

Add isWildcard() helper to treat both empty string and "*" as wildcards
when matching wallpaper settings to monitors.

This works around a limitation in hyprlang where listKeysForSpecialCategory()
skips entries with empty string keys (due to isStatic check in retrieveKeysForCat),
causing configs like:

    wallpaper {
        monitor =
        path = /path/to/image.png
    }

to be silently ignored. Users should now use "monitor = *" instead.
@vaxerski
Copy link
Member

vaxerski commented Jan 5, 2026

yeah but the limitation got fixed, no?

@jmylchreest
Copy link
Contributor Author

Correct, I actually raised this before the other fix PR, but thought I'd leave this here for consideration (or just reject)

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont mind really, no monitor will be called *

@vaxerski vaxerski merged commit feafd06 into hyprwm:main Jan 7, 2026
1 check passed
martijnboers added a commit to martijnboers/stylix that referenced this pull request Jan 13, 2026
Added in hyprwm/hyprpaper#315 also adds
mkDefault in order to allow users to override values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants