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

QTile: Dynamically Generate Bar Widgets #28

Closed
bastisawesome opened this issue Aug 8, 2023 · 0 comments
Closed

QTile: Dynamically Generate Bar Widgets #28

bastisawesome opened this issue Aug 8, 2023 · 0 comments
Assignees
Labels
bug Something isn't working qtile Issues specific to the QTile configuration

Comments

@bastisawesome
Copy link
Owner

Currently to get multi-screen support (particularly with the same bars), I've got each bar being created as a custom object. It may be better to use a function to generate the bars, particularly some helper functions to generate the widget list.

For example:

...
def init_bar_widgets() -> ...:
    widget_list = [...]
    return widget_list

screens = [
    Screen(top=bar.Bar(widgets=init_bar_widgets(), ...),
    Screen(top=bar.Bar(widgets=init_bar_widgets(), ...),
]
...
@bastisawesome bastisawesome added the bug Something isn't working label Aug 8, 2023
@bastisawesome bastisawesome self-assigned this Aug 8, 2023
@bastisawesome bastisawesome changed the title Clean Up QTile Config QTile: Dynamically Generate Bar Widgets Aug 8, 2023
@bastisawesome bastisawesome added the qtile Issues specific to the QTile configuration label Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working qtile Issues specific to the QTile configuration
Projects
None yet
Development

No branches or pull requests

1 participant