]> Freerunner's - dabruin.kak/commitdiff
fix: padding issue when creating the hex for dim
authorThomas Teixeira <thomas.teixeira@startmail.com>
Fri, 3 Nov 2023 11:44:32 +0000 (12:44 +0100)
committerThomas Teixeira <thomas.teixeira@startmail.com>
Fri, 3 Nov 2023 11:44:32 +0000 (12:44 +0100)
dabruin.kak

index 767c6b3ce03c9e6bcc4a8526911ae7ce62b971aa..ba7836c6c538b0c26f49540ef460a8aa5fd8d09e 100644 (file)
@@ -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}