##
evaluate-commands %sh{
- calculate_dim() {
- printf "$1" | cut -d: -f2 | fold -w2 |
- while read -r hex; do
- base10="$(printf '%d' "0x${hex}")"
- printf '%02x' "$((base10 * 5 / 9))"
- done | xargs printf 'rgb:%s'
- }
+ calculate_dim() {
+ printf "$1" | cut -d: -f2 | fold -w2 |
+ while read -r hex; do
+ base10="$(printf '%d' "0x${hex}")"
+ printf '%02x' "$((base10 * 5 / 9))"
+ done | xargs printf 'rgb:%s'
+ }
# base
accent="${kak_opt_dabruin_accent:-rgb:FFB852}"
background='rgb:242124'