Replies: 17 comments
-
+1 from me as well |
Beta Was this translation helpful? Give feedback.
-
with cpu |
Beta Was this translation helpful? Give feedback.
-
@cafehaine: ooooooooh thx <3 edit: hmm, strange. It still resizes, even though I have |
Beta Was this translation helpful? Give feedback.
-
Are you sure you are using a monospaced font ? |
Beta Was this translation helpful? Give feedback.
-
@cafehaine: ohh, indeed. RTFM to me >.< |
Beta Was this translation helpful? Give feedback.
-
Although I just noticed with {bandwidthUpBits} and {bandwidthDownBits}. Having your traffic shown causes quite a bit of dancing. |
Beta Was this translation helpful? Give feedback.
-
is this a problem with waybar specifically or is it something which should be upstreamed to i feel like there's a case for both. |
Beta Was this translation helpful? Give feedback.
-
You can use the |
Beta Was this translation helpful? Give feedback.
-
This works great for me! thanks. before I close, Can I configure it so that, e.g. the song name is max a certain length and then the progress is still shown? |
Beta Was this translation helpful? Give feedback.
-
@4e554c4c I'll look on it to apply max-length only on the song name |
Beta Was this translation helpful? Give feedback.
-
@Alexays Could similar be done to the network module? No matter how I lay it out, Network traffic dances around a bit when changing from 0b/s to 1200kb/s and so on... |
Beta Was this translation helpful? Give feedback.
-
The same for memory, using |
Beta Was this translation helpful? Give feedback.
-
It seems like the fmt library used supports trimming strings with the float precision argument, ie:
|
Beta Was this translation helpful? Give feedback.
-
I can only underline that the bandwidth cannot be displayed properly without having an option to define a fixed width. |
Beta Was this translation helpful? Give feedback.
-
Adding fixed-width for |
Beta Was this translation helpful? Give feedback.
-
1/ I have defined a new formatter for long/large numbers like bandwidth and disk usage. See #472 (comment). That should definitely find its place in the wiki. Maybe in the How can I prevent modules from changing size? section ? 2/ There is an unfortunate "feature" (I see it as a bug) of font rendering with cairo: It always uses the whitespace characters from the last (fallback) font in used. That is why emojis and strange unicode characters found only in non-monospace fallback fonts will make the modules to changes size, even if their content has a fixed number of characters. To see if this is your problem, remove any strange glyphs, the problem should disappear. To work around cairo, you can use explicit font selection as in the snippet below. This will prevent font awesome to be used outside the
Anyone cares to test this and update the wiki ? |
Beta Was this translation helpful? Give feedback.
-
Applying the maximum length options as suggested here works for MPD. Figuring it was added post this discussion. Adding this here in order to help anybody else facing this issue with MPD. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I can't figure out how to limit the length of text of a module or if this is possible.
For example, if I have the
mpd
module enabled and a song with a long name occurs, it will take up the entire bar.I tried reading the documentation for
fmt
, and it appears to be quite easy to specify a minimum length for text, but not a maximum.If possible I would like to hide the text with an ellipsis if it became long enough to run into other modules.
Beta Was this translation helpful? Give feedback.
All reactions