From ca6ec9840305c2ff8eac84e754ae38896420ee68 Mon Sep 17 00:00:00 2001 From: Thomas Teixeira Date: Fri, 3 Nov 2023 12:44:32 +0100 Subject: [PATCH] fix: padding issue when creating the hex for dim --- dabruin.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dabruin.kak b/dabruin.kak index 767c6b3..ba7836c 100644 --- a/dabruin.kak +++ b/dabruin.kak @@ -8,7 +8,7 @@ evaluate-commands %sh{ printf "$1" | cut -d: -f2 | fold -b2 | while read -r hex; do base10="$(printf '%d' "0x${hex}")" - printf '%x' "$((base10 * 1 / 2))" + printf '%02x' "$((base10 * 1 / 2))" done | xargs printf 'rgb:%s' } # base @@ -29,7 +29,7 @@ evaluate-commands %sh{ face global module string face global function ${accent_dim}+i face global string ${grey}+i - face global keyword ${accent_dim} + face global keyword ${accent} face global operator ${foreground} face global attribute ${foreground}+i face global comment ${deep} -- 2.51.2