Custom color for Byobu status logo

1

The Byobu logo is based on the distribution, right? White-on-orange for Ubuntu, red-on-gray @ for Debian, etc.

enter image description here

However if I try to set $LOGO in $HOME/.byobu/screenrc, it will use the same white-on-gray as the tab bar. Escape codes don't work.

Escape codes being ignored.

How can I set a custom logo with custom colors?

Ekevoo

Posted 2018-04-24T19:40:49.590

Reputation: 671

Answers

1

So Byobu actually includes a "helper function" called "color". You can use this in your $HOME/.byobu/statusrc, and it will get resolved.

Example:

LOGO=" $(color g w)Foo$(color -) "

This will print a logo of " Foo ", which is white text on a green background. The first argument to the color function is the background, the second is the foreground text.

You can use 8 colors, or 256 colors. To use 256 colors, do the following:

LOGO="$(color colour200 colour255)foo$(color -)"

And you can see a bunch of examples in /usr/lib/byobu/logo.

Full disclosure: I'm the author and maintainer of Byobu.

Dustin Kirkland

Posted 2018-04-24T19:40:49.590

Reputation: 7 101

Thanks for this great software!! I did notice that helper function, but I couldn't make sense of the letters. Where can I find a full list for the 8 colors? – Ekevoo – 2018-05-15T20:29:49.410

You can see a bunch of examples in /usr/lib/byobu/logo – Dustin Kirkland – 2018-05-16T00:11:10.030

@DustinKirkland what about the other items? I had to change the hardcoded color values in /usr/lib/byobu/network to get the desired behaviour. Is there any way to do that without touching the lib files? – agilesteel – 2019-10-22T15:53:31.723