-
Notifications
You must be signed in to change notification settings - Fork 230
Add more options to configure the progressbar #392
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
base: master
Are you sure you want to change the base?
Add more options to configure the progressbar #392
Conversation
…acters for start, end and seperator of the bar
|
Thanks! Can you show one/a few screens of how can this be used to prettify the progressbar? |
|
Also, is this change backward compatible? I.e. if someone has it set to 2-3 chars, will his progressbar change after this PR is merged? |
|
any updates on this @arybczak ? |
|
@arybczak I would love to see this merged. Any updates? |
src/statusbar.cpp
Outdated
| if (Config.progressbar[2] != '\0') | ||
|
|
||
| // set the different bar characters depending on the amount of configured chars | ||
| char bar_start_char = Config.progressbar[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These need to be wchar_t because progressbar is std::wstring.
doc/ncmpcpp.1
Outdated
| .TP | ||
| .B progressbar_look = TEXT | ||
| This variable defines the look of progressbar. Note that it has to be exactly two or three characters long. | ||
| This variable defines the look of progressbar. Note that it has to be between two and five characters long. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a description of all possible states, i.e. what happens when this is set to 2/3/4/5 characters.
|
Ping. |
|
ohhh, sorry, I had completely forgotten about this at this point ^^' I'll fix the issues later today! |
|
@elkowar any way I can pitch in? Would love to see this merged. I can help with the documentation bit. |
If you wanna take this over, feel free to. I've stopped using ncmpcpp a while ago, and haven't really had the motivation to finish this, I'm afraid ^^' |
|
I'd be glad to. How does one take over a PR though? Should I make a fresh one implementing the same changes? |
|
@arybczak Is it looking okay now? |


This PR adds the option to configure up to 5 different characters for the progressbar.
This allows users to for example use powerline-fonts to theme their progress bar.
The characters provided are: