pywal icon indicating copy to clipboard operation
pywal copied to clipboard

Add support for ARGB hex strings

Open chrishoage opened this issue 3 years ago • 1 comments

Polybar only supports #ARGB for transparency. I previously used the workaround in https://github.com/dylanaraps/pywal/issues/132#issuecomment-352296339, however this is not a particularly clean solution.

With this change I can simply import

~/.cache/wal/colors-polybar.ini and have the #ARGB pre-defined with no need to pass in the color via an environment variable

chrishoage avatar Jan 09 '21 00:01 chrishoage

If this is not acceptable another alternative I would be open to is {background.alpha_hex} similar to {background.alpha_dec}

https://github.com/dylanaraps/pywal/blob/4997a49eb7479ccda1228f064d6c50e1abedc5b4/pywal/util.py#L46-L49

That way I could achieve the same thing in my colors-polybar.ini using built-ins

[colors]
background=#{background.alpha_hex}{background.strip}

In fact, I think I will implement this in addition to what I have.

Please let me know if you would like me to remove hex_argb

chrishoage avatar Jan 09 '21 01:01 chrishoage