tobi-wan-kenobi / bumblebee-status

bumblebee-status is a modular, theme-able status line generator for the i3 window manager.
https://bumblebee-status.readthedocs.io/en/main/
MIT License
1.21k stars 229 forks source link

small artifacts in datetime and system modules #762

Closed ghost closed 3 years ago

ghost commented 3 years ago

Bug Report

Description

Affected module: datetime, system Version used: latest git

small artifacts

How to reproduce

load modules.

In both cases it's a dash somewhat upper left as you'll see in the pics linked to my blog.

tobi-wan-kenobi commented 3 years ago

This happens only for those two modules?

Very strange :)

Unfortunately, there is not much I can do about that, this is outside the control of the status generator.

Maybe it is related to the fonts you are using? or maybe you have specified a border for the i3 bar?

ghost commented 3 years ago

Unfortunately, I see no connection to the font being an issue. That is to say, that would need to be explained in detail.

I haven't specified a border for the bar. I don't know how to do that yet.

I'm still curious how the shape of the modules is achieved. I've rooted around the folders just looking for patterns because I don't know the first thing about what I'm looking at. :)

On Tue, Feb 16, 2021 at 7:49 AM tobi-wan-kenobi notifications@github.com wrote:

This happens only for those two modules?

Very strange :)

Unfortunately, there is not much I can do about that, this is outside the control of the status generator.

Maybe it is related to the fonts you are using? or maybe you have specified a border for the i3 bar?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tobi-wan-kenobi/bumblebee-status/issues/762#issuecomment-779815528, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYM3JPSQLQ3QGJQS45GMHLS7JSU3ANCNFSM4XTX7SEA .

--

All the world's problems can be fixed in a garden - Geoff Lawton

tobi-wan-kenobi commented 3 years ago

Ah, I see.

So basically, bumblebee-status "talks" to i3 using a specific text-based protocol (https://i3wm.org/docs/i3bar-protocol.html). The protocol defines blocks that have attributes (such as colors) and a text. To achieve the "powerline" shapes, bumblebee-status uses a kind of trick: First block is the left-arrow shape (hence you need a bar font that has this shape), the next is the actual content, and the third is again the left-arrow shape, but with background and foreground color inverted.

So either the font you are using has this "artifact" (but then, it would need to appear on all of the modules), or - I don't really know what else it could be. :(

tobi-wan-kenobi commented 3 years ago

Looking at the pictures again: As I noted, bumblebee-status does not draw pixels, it draws shape. So I am pretty confident in saying that those artifacts do not come from bumblebee.

Out of curiosity: Is the position of those always the same (on the screen), even if you change the modules? How does the screen look like if you do not have a status bar at all?

ghost commented 3 years ago

I'll do more reading. Yes the pixels follow the modules and only those modules. Yet if it's the bar font (Bauhaus) why are only two of the modules affected? Also, I find it interesting that it's roughly the same location where the glitches show up but they're different in the two modules.

I suppose it would help if I knew what I'm looking for verbatim to change the shape used (the actual file at least so I can do some grinding on my own) because it's not obvious to the untrained eye, and I've looked through dozens of files, and it's still Greek. :)

Incidentally, I've figured out what I had omitted form setting up Redshift, so that's another module working fine and dandy.

On Fri, Feb 19, 2021 at 3:42 AM tobi-wan-kenobi notifications@github.com wrote:

Looking at the pictures again: As I noted, bumblebee-status does not draw pixels, it draws shape. So I am pretty confident in saying that those artifacts do not come from bumblebee.

Out of curiosity: Is the position of those always the same (on the screen), even if you change the modules? How does the screen look like if you do not have a status bar at all?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tobi-wan-kenobi/bumblebee-status/issues/762#issuecomment-781925778, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYM3JIIQHSYPDL3BUWLGXDS7YP7RANCNFSM4XTX7SEA .

--

All the world's problems can be fixed in a garden - Geoff Lawton

ghost commented 3 years ago

Also, while instructive in itself, the link to i3 doesn't tell me what file has the values or whatever I would need to change to use, let's say, a squiggly brace or a parenthesis, but I'm working on it, since I like to fish around.

On Fri, Feb 19, 2021 at 7:58 AM Bruce hempward@gmail.com wrote:

I'll do more reading. Yes the pixels follow the modules and only those modules. Yet if it's the bar font (Bauhaus) why are only two of the modules affected? Also, I find it interesting that it's roughly the same location where the glitches show up but they're different in the two modules.

I suppose it would help if I knew what I'm looking for verbatim to change the shape used (the actual file at least so I can do some grinding on my own) because it's not obvious to the untrained eye, and I've looked through dozens of files, and it's still Greek. :)

Incidentally, I've figured out what I had omitted form setting up Redshift, so that's another module working fine and dandy.

On Fri, Feb 19, 2021 at 3:42 AM tobi-wan-kenobi notifications@github.com wrote:

Looking at the pictures again: As I noted, bumblebee-status does not draw pixels, it draws shape. So I am pretty confident in saying that those artifacts do not come from bumblebee.

Out of curiosity: Is the position of those always the same (on the screen), even if you change the modules? How does the screen look like if you do not have a status bar at all?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tobi-wan-kenobi/bumblebee-status/issues/762#issuecomment-781925778, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYM3JIIQHSYPDL3BUWLGXDS7YP7RANCNFSM4XTX7SEA .

--

All the world's problems can be fixed in a garden - Geoff Lawton

--

All the world's problems can be fixed in a garden - Geoff Lawton

tobi-wan-kenobi commented 3 years ago

got your point. it's in the theme files (json), called a separator. depends on your theme, but the file is called something like gruvbox.json, in the themes directory.

ghost commented 3 years ago

Thanks. I'll go do some digging now.

On Fri, Feb 19, 2021 at 10:37 AM tobi-wan-kenobi notifications@github.com wrote:

got your point. it's in the theme files (json), called a separator. depends on your theme, but the file is called something like gruvbox.json, in the themes directory.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tobi-wan-kenobi/bumblebee-status/issues/762#issuecomment-782153250, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYM3JMLWF7BL6Y6IBHZ5X3S72ASNANCNFSM4XTX7SEA .

--

All the world's problems can be fixed in a garden - Geoff Lawton

ghost commented 3 years ago

paxy97? Have you Duckduckgoed that? It basically turns up nothing. Is this relevant?

On Fri, Feb 19, 2021 at 10:45 AM Bruce hempward@gmail.com wrote:

Thanks. I'll go do some digging now.

On Fri, Feb 19, 2021 at 10:37 AM tobi-wan-kenobi notifications@github.com wrote:

got your point. it's in the theme files (json), called a separator. depends on your theme, but the file is called something like gruvbox.json, in the themes directory.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tobi-wan-kenobi/bumblebee-status/issues/762#issuecomment-782153250, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYM3JMLWF7BL6Y6IBHZ5X3S72ASNANCNFSM4XTX7SEA .

--

All the world's problems can be fixed in a garden - Geoff Lawton

--

All the world's problems can be fixed in a garden - Geoff Lawton

tobi-wan-kenobi commented 3 years ago

paxy97? Have you Duckduckgoed that? It basically turns up nothing. Is this relevant?

I am sorry, I do not understand that question. paxy97 is a user who, iirc, contributed some themes and iconsets.

ghost commented 3 years ago

Never mind. Atom not displaying, etc... but it displays in SublimeText.

On Fri, Feb 19, 2021 at 10:51 AM Bruce hempward@gmail.com wrote:

paxy97? Have you Duckduckgoed that? It basically turns up nothing. Is this relevant?

On Fri, Feb 19, 2021 at 10:45 AM Bruce hempward@gmail.com wrote:

Thanks. I'll go do some digging now.

On Fri, Feb 19, 2021 at 10:37 AM tobi-wan-kenobi < notifications@github.com> wrote:

got your point. it's in the theme files (json), called a separator. depends on your theme, but the file is called something like gruvbox.json, in the themes directory.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tobi-wan-kenobi/bumblebee-status/issues/762#issuecomment-782153250, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYM3JMLWF7BL6Y6IBHZ5X3S72ASNANCNFSM4XTX7SEA .

--

All the world's problems can be fixed in a garden - Geoff Lawton

--

All the world's problems can be fixed in a garden - Geoff Lawton

--

All the world's problems can be fixed in a garden - Geoff Lawton

ghost commented 3 years ago

Found "separator" in the /themes/icons/awesome-fonts.json :)

On Fri, Feb 19, 2021 at 10:55 AM tobi-wan-kenobi notifications@github.com wrote:

paxy97? Have you Duckduckgoed that? It basically turns up nothing. Is this relevant?

I am sorry, I do not understand that question. paxy97 is a user who, iirc, contributed some themes and iconsets.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tobi-wan-kenobi/bumblebee-status/issues/762#issuecomment-782164273, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYM3JO3TZV6AKMGS3FLEPLS72CVVANCNFSM4XTX7SEA .

--

All the world's problems can be fixed in a garden - Geoff Lawton

ghost commented 3 years ago

Ermanno just did a video with your bar. I'd mentioned it to him as soon as I had decided to make the switch. I guess he likes it also. :)

I changed the separator font randomly to the Italic font-awesome font, and the glitches remained, so that hopefully points in a direction.

What I need to do (perhaps??) is use a half-circle glyph as some do for round modules in Polybar.

On Fri, Feb 19, 2021 at 11:00 AM Bruce hempward@gmail.com wrote:

Found "separator" in the /themes/icons/awesome-fonts.json :)

On Fri, Feb 19, 2021 at 10:55 AM tobi-wan-kenobi notifications@github.com wrote:

paxy97? Have you Duckduckgoed that? It basically turns up nothing. Is this relevant?

I am sorry, I do not understand that question. paxy97 is a user who, iirc, contributed some themes and iconsets.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tobi-wan-kenobi/bumblebee-status/issues/762#issuecomment-782164273, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYM3JO3TZV6AKMGS3FLEPLS72CVVANCNFSM4XTX7SEA .

--

All the world's problems can be fixed in a garden - Geoff Lawton

--

All the world's problems can be fixed in a garden - Geoff Lawton

tobi-wan-kenobi commented 3 years ago

glad to hear you like bumblebee-status :)

you should be able to replace the separator with whatever your font offers just by replacing that in the theme file.

I still - to be honest - don't have the faintest clue where the artifacts could come from. which OS and i3 version are you using?

ghost commented 3 years ago

ArcoLinux, latest kernel, amdgpu, i3 version 4.16.1-186-gf3fffbae (2020-03-01, branch "makepkg") © 2009 Michael Stapelberg and contributors, and Ibhagwan's fork. I'm tempted to install the latest i3 to see how Picom handles round corners.

On Fri, Feb 19, 2021 at 12:09 PM tobi-wan-kenobi notifications@github.com wrote:

glad to hear you like bumblebee-status :)

you should be able to replace the separator with whatever your font offers just by replacing that in the theme file.

I still - to be honest - don't have the faintest clue where the artifacts could come from. which OS and i3 version are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tobi-wan-kenobi/bumblebee-status/issues/762#issuecomment-782209906, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYM3JKR4JJ5NLP545DHQGLS72LOJANCNFSM4XTX7SEA .

--

All the world's problems can be fixed in a garden - Geoff Lawton

ghost commented 3 years ago

4.19.1 makes no difference, but now we're sure of that.

On Fri, Feb 19, 2021 at 12:18 PM Bruce hempward@gmail.com wrote:

ArcoLinux, latest kernel, amdgpu, i3 version 4.16.1-186-gf3fffbae (2020-03-01, branch "makepkg") © 2009 Michael Stapelberg and contributors, and Ibhagwan's fork. I'm tempted to install the latest i3 to see how Picom handles round corners.

On Fri, Feb 19, 2021 at 12:09 PM tobi-wan-kenobi notifications@github.com wrote:

glad to hear you like bumblebee-status :)

you should be able to replace the separator with whatever your font offers just by replacing that in the theme file.

I still - to be honest - don't have the faintest clue where the artifacts could come from. which OS and i3 version are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tobi-wan-kenobi/bumblebee-status/issues/762#issuecomment-782209906, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMYM3JKR4JJ5NLP545DHQGLS72LOJANCNFSM4XTX7SEA .

--

All the world's problems can be fixed in a garden - Geoff Lawton

--

All the world's problems can be fixed in a garden - Geoff Lawton

ghost commented 3 years ago

The system module has no default font-awesome font, but only " " so I replaced that with "" (infinity symbol) which got rid of the small artifact in the module. "separator": "", is what I was looking for of course for the powerline effect.

"date": { "prefix": "" }, "time": { "prefix": "" }, "datetime": { "prefix": "" }, "datetz": { "prefix": "" }, "timetz": { "prefix": "" }, "datetimetz": { "prefix": "" },

You had some tildes and empty quotes. The datetime module no longer has the glitch. :) I'm starting to use Vim and SublimeText more and Atom less. That made it easier to spot the typos.

I now have one bottom bar on primary, while the top bar spans both screens, Bauhaus 12 and bar_height 20 work great on the bottom bar. The status bar for the top bar is also in Bauhaus 12 but bar_height 24 because of the workspace names/numbers being offset upward. I've found nothing to change that. I'm going to look for a glyph to use as a new separator. Some Polybar configs I've looked at use half-circle glyphs to accomplish this.

ghost commented 3 years ago

}, "todo": { "empty": { "prefix": "" }, "items": { "prefix": "" }, "uptime": { "prefix": "" }

I put in the kitty font and a few others. None show up in the module. Is uptime under todo, in that sense?

tobi-wan-kenobi commented 3 years ago

If you see tildes, empty spaces, boxes, etc. in the theme/icon files, it is likely that your editor (or your terminal, if you are using vim) doesn't use a font that has the awesome icons.

And no, the modules should not be nested like that, must be a missing closing brace.

ghost commented 3 years ago

It's good to know these things. No question, streamlining the fonts I use can only help. Everything is tidied up so I'll close this issue also. Thanks again.

tobi-wan-kenobi commented 3 years ago

Any time! Thanks for using bumblebee :)

ghost commented 3 years ago

Did a fresh reinstall and now the system and traffic modules simply don't work. Dependencies are met. I cannot solve the artifact/tilde in the datetime module issue either, which is odd since I did before. It's not a high priority for me, but it will become one eventually. :)

tobi-wan-kenobi commented 3 years ago

system needs the Tkinter module, which is not clearly documented, I think.

Why traffic won't work is a mystery, though. Any clues if you enable the debug log?

Abdy sorry regarding the font artifacts, I hope you will be able to find a solution (maybe try one of the "nerd" fonts, those bundle all glyphs, I believe)

ghost commented 3 years ago

Yes I saw that about Tkinter. It's on my system. Perhaps another reboot.

"datetime": { "prefix": "" }, is the solution to the artifact, but where do I put it? I solved previously with this, and now I can't find the line to edit. That's impressive. :)

ghost commented 3 years ago

Yes I saw that about Tkinter. It's on my system after installing from the AUR, and now I just need to give it a usalble icon or something. It works again, basically.

"datetime": { "prefix": "" }, is the solution to the artifact, but where do I put it?? Yowsers ... I solved previously with this, and now I can't find the line to edit. That's impressive. :)

tobi-wan-kenobi commented 3 years ago

In themes/icons/awesome.json (not 100% sure of the filename)

If you send me the debug log (-d -f i believe), I can investigate the issues of non-loading modules further.

ghost commented 3 years ago

Solved the artifact for both system and timedate. I'll always remember that now. Went into the debug log and found it was netifaces I hadn't installed (though I knew about it but must have gotten distracted). All solved again.

Thanks for your time. :)