commit 1c174891587efcd36d7c846ca5ea0dab4cd1902f parent 2f9489d3c9bdeafdfdc9eab03ec79edbb4e05770 Author: Matthew Carlson <matt@mcarlson.xyz> Date: Sat, 8 Jan 2022 13:24:24 -0500 removed bc Diffstat:
M | zathura-pywal | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/zathura-pywal b/zathura-pywal @@ -51,9 +51,9 @@ zathura_pywal() { b=$(printf '%s' "${hex}" | cut -c 3-4) c=$(printf '%s' "${hex}" | cut -c 5-6) - r=$(printf '%s\n' "ibase=16; ${a}" | bc) - g=$(printf '%s\n' "ibase=16; ${b}" | bc) - b=$(printf '%s\n' "ibase=16; ${c}" | bc) + r=$(printf '%d' 0x${a}) + g=$(printf '%d' 0x${b}) + b=$(printf '%d' 0x${c}) [ -z "${alpha}" ] && alpha=1