vivien / i3blocks

The hacker-friendly status_command for Sway and i3
https://vivien.github.io/i3blocks/
GNU General Public License v3.0
2.31k stars 182 forks source link

Colored labels #364

Closed merspieler closed 5 years ago

merspieler commented 5 years ago

I've tried to color the label as described in the "How can I give my blocks colors?" section in the FAQ in the wiki.

[volume]
label=<span color='#00c0d6'></span>
markup=pango
...

This results in a vanished block.

I'm running version 1.4 on debian buster.

Is this my fault or is it not yet possible to color just the labels like that?

kb100 commented 5 years ago

I just tried this on my setup and it does give a colored label. Unfortunately we haven't had a release in over a year, so v1.4 is a year out of date. We recommend using the git version at least until we get another release out, as this was likely a bug fixed long ago. It is very simple to compile and install the git version, so please consider this choice.

merspieler commented 5 years ago

I'll try that and report back

merspieler commented 5 years ago

Worx ... tho i would appreciate an option like label-color just to make the config more clean... if you do not consider adding that option feel free to close the issue

kb100 commented 5 years ago

I can't close issues in this repo, only in the contrib repo, so you may want to do that yourself. It unlikely that a label-color field will be implemented on our end because i3bar does not have such a field, it only has full_text short_text color background border markup align min_width name and instance. Even label is our own concoction, which we are actually trying to get rid of (label support was removed and then added back due to user backlash since we didn't provide a suitable alternative or conversion script) in favor of scripts just outputting the label they suggest and providing user customization that makes sense for the script through injected properties..

merspieler commented 5 years ago

Ok...

ahloiscreamo commented 5 years ago

@merspieler Hi there, just wondering, did you got it working? i have the same problem (vanished block) on i3blocks version 1.4-6 (latest manjaro) thanks man

ahloiscreamo commented 5 years ago

Nevermind, i found the i3blocks-git version on arch repo, I installed that & everything work as expected.Cheers 🍻

ahloiscreamo commented 5 years ago

Thanks for the guide @merspieler i've done according to your snipplet and it work as expected, Thank you very much!

On Sat, May 25, 2019 at 11:54 AM merspieler notifications@github.com wrote:

@ahloiscreamo https://github.com/ahloiscreamo just in case you can still make use of it:

[volume] label=VOL

That's how I get my labels collored differently tho i've got to do that for every single lable.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/vivien/i3blocks/issues/364?email_source=notifications&email_token=ACHC7ZGCNPNHOSOMBJC7YOTPXCZ7TA5CNFSM4GUBUGUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWG7MTQ#issuecomment-495842894, or mute the thread https://github.com/notifications/unsubscribe-auth/ACHC7ZETSZ3KLMKQEAHHUFTPXCZ7TANCNFSM4GUBUGUA .