Skip to content

[FEATURE] (define x 1) preprocessor constants #1408

@LurkAndLoiter

Description

@LurkAndLoiter

Description of the requested feature

I'm looking for a way to make :monitor more portable for end users.

The current recommended approach is confusing and limited as even minor differences in geometry would require new ids from my understanding.

Proposed configuration syntax

(define monitor "[1,0]")

(defwindow
    :monitor monitor
    :stacking "fg"
    :geometry (geometry
        :anchor "top center"
        :height 20
        :width "100%")
)

Additional context

This allows simple non dynamic environment alterations across more complex eww configs. You could even make a sourced config.yuck for the end user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions