From: Thomas Teixeira Date: Fri, 3 Nov 2023 11:44:32 +0000 (+0100) Subject: fix: padding issue when creating the hex for dim X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=ca6ec9840305c2ff8eac84e754ae38896420ee68;p=dabruin.kak fix: padding issue when creating the hex for dim --- 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}