]> Freerunner's - dabruin.kak/commitdiff
ref: changing dim, maybe should be passed by an option
authorThomas Teixeira <thomas.teixeira@startmail.com>
Fri, 3 Nov 2023 11:57:14 +0000 (12:57 +0100)
committerThomas Teixeira <thomas.teixeira@startmail.com>
Fri, 3 Nov 2023 11:57:14 +0000 (12:57 +0100)
dabruin.kak

index ba7836c6c538b0c26f49540ef460a8aa5fd8d09e..657bf49a62c0f6eef56245ac4fc5a250a821e048 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 '%02x' "$((base10 * 1 / 2))"
+                       printf '%02x' "$((base10 * 5 / 9))"
                done | xargs printf 'rgb:%s'
     }
        # base