Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Use for on the top-level #935

Closed
NovaAndrom3da opened this issue Sep 30, 2023 · 2 comments
Closed

[FEATURE] Use for on the top-level #935

NovaAndrom3da opened this issue Sep 30, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@NovaAndrom3da
Copy link

Description of the requested feature

I would like to use for on the top-level. I'm trying to create a window on every available monitor (number of monitor provided by an external command). For this, I'm trying to use this syntax:

(for m in monitors
  (defwindow bar_${m}
    :monitor m
    [some other values that aren't really important to this context]
  )
)

Proposed configuration syntax

No response

Additional context

No response

@NovaAndrom3da NovaAndrom3da added the enhancement New feature or request label Sep 30, 2023
@eoli3n
Copy link

eoli3n commented Nov 10, 2023

We need this yes !

@elkowar
Copy link
Owner

elkowar commented Nov 18, 2023

I'm not sure if something like that will happen anytime soon, as creating window definition dynamically definitely seems out of scope for now. However, #431 should more or less provide the same functionality: It'll allow you to define a single window and open it multiple times with different arguments, solving the same problem more cleanly. I'll close this issue as out of scope for now, referring to #431 instead as a more flexible and viable solution that's gonna be released soon (hopefully)

@elkowar elkowar closed this as completed Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants