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
Too few areas available by default #133
Comments
I second the opinion. Just 5 workspaces with scroll support takes 15 clickable areas. Volumeicon takes further 4. 20 areas is really little. |
Should it even be constant at all? I wouldn't mind for the user to be able to specify the number of sections, or even dynamically allocate them as necessary. |
It's a stack, right? Have a linked list! Also, surely only the nesting should be stored? So, left click and right click would only be 2 slots? Not sure, haven't really read code. Any opinions on this? |
While dynamic memory allocation (or a linked list) would allow for an arbitrary number of areas, it would complicate the code. Since less is more, I think the "better" solution is to just raise N to 100. |
A linked list wouldn't complicate the code too much at all. Replace the |
Anyway, I don't care as |
Because I had some time on my hands, I made a quick and dirty fork of lemonbar that implements In my fork, invoking lemonbar with Here's the fork: Repo |
You used |
That's because I cleaned it up immediately after writing this 😄 |
Cool, mind submitting a PR ? |
The problem would be that it is based on |
Please check out the latest commit. |
Latest commit looks fine. I don't mind my fork not being merged in as long as the issue is fixed. My fork will exist a while longer until krypt-n merged the changes into his xft-branch, which I lack the knowledge to merge correctly, so that it doesn't segfault. |
After starting serious tinkering, lemonbar gave me tons of "astack overflow" errors. The default number of maximum 20 clickable areas is too little: consider 10 workspaces with actions for left click and right click - there's no room left for anything else...
Increasing N to 100 would relief the necessity to compile lemonbar ourselves and wouldn't impact memory usage at all.
The text was updated successfully, but these errors were encountered: