darac / irssi-powerline

Powerline theme for IRSSI
GNU General Public License v2.0
33 stars 1 forks source link

Support the Nick Color script #5

Open apYdr6uxv opened 9 years ago

apYdr6uxv commented 9 years ago

I like your scheme very much :two_hearts:.

Any chance to have your scheme support the nick color script?

The script is setting different colors for nicknames. However the way it's set, it "interrupts" the powerline:

irssi_powerline_nickcolor

I lack any knowledge about Perl/irssi scripting but I tried fiddling (without much success) with this. I could alter the color/message but the result I am looking for is: Different nicks have different colored powerlines. The color is picked by the nick color script, but I don't know how to translate that into a powerline background-color instead of a text-color.

Think you could help?

Thanks.

darac commented 8 years ago

If I'm reading that correctly, nickcolor.pl is using the ^D-Encoding method of specifying 256 colours. As far as I can see, though, that method requires you to specify a foreground AND a background at the same time.

So, nickcolor.pl needs some changes. In an ideal world, we'd be able to set nickcolor_colors to a selection of colours with blue as the background, but the script specifically limits you to numbers between 2 and 14 (i.e with a black background).

Hmm. Probably the neatest solution is for nickcolor.pl to gain a switch to force 16-colour modes and thus only set the foreground colour (%r, %b, %g etc). That way, the nick would change colour, but the background would remain consistent.

ailin-nemui commented 8 years ago

maybe integrating my nickcolor-expando script is easier? you only need to add the expando to your /format

darac commented 7 years ago

I've just pushed a branch called "truecolour" which supports the nickcolor_expando script.

Well, I had to patch it slightly in order to be able to use the colours as backgrounds as well as foregrounds. I'll submit that patch upstream shortly (before merging the branch, at least).