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

Dynamic Bar Width or Text Rotation #2120

Open
vinicius507 opened this issue Jun 4, 2020 · 3 comments
Open

Dynamic Bar Width or Text Rotation #2120

vinicius507 opened this issue Jun 4, 2020 · 3 comments

Comments

@vinicius507
Copy link

Is your feature request related to a problem? Please describe.

I use 3 separate bars in my setup, one of them shows current song name being played on Spotify. Sometimes the song name + artist is bigger than the bar and it cuts the text.

Why does polybar need this feature?

It would give users a lot more customization power with their bars.

Describe the solution you'd like

I'd like if there were dynamic-labels with max-width set and/or dynamic width of the bar, set to fit-content.

Describe alternatives you've considered

I've tried using zscroll but the installation fails. I've also tried implementing scripts to make the rotation but it'd break my spotify update metadata script.

@fmilani
Copy link

fmilani commented Jan 19, 2021

You can set the min and max width of a label:
https://github.com/polybar/polybar/wiki/Formatting#tokens

But I could't find a way to dynamically change the width of the bar. I am looking for a way to do it too

@Crylia
Copy link

Crylia commented Sep 1, 2021

This would be a really good feature, i'm currently missing that one hard since i as well have three bars.
Its really handy for dynamic workspaces so the bar gets smaller when you have less or bigger when you use the xwindow module

@joshpetit
Copy link

Yea I think this would be awesome for bars that you want to fit the size of the contents with. A good workaround is to set the bar's background to transparent (#00...), but this won't work if you want to have a radius or special padding on the module.

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

No branches or pull requests

4 participants