From fed2e42488194bfc45a55f687dd97b28a998a3f3 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 10 Mar 2024 11:00:17 +0100 Subject: more refactoring --- .local/share/mode/plug.d/10_lib | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .local/share/mode/plug.d/10_lib (limited to '.local/share/mode/plug.d/10_lib') diff --git a/.local/share/mode/plug.d/10_lib b/.local/share/mode/plug.d/10_lib new file mode 100644 index 0000000..61817bc --- /dev/null +++ b/.local/share/mode/plug.d/10_lib @@ -0,0 +1,5 @@ +#!/bin/sh +# utility library functions +hex_to_rgb_array() { pastel format rgb "$1" | cut -c4- | tr '()' '[]' ; } +mix_rgb() { pastel mix --colorspace=RGB --fraction="$3" "$1" "$2" | pastel format hex ; } + -- cgit v1.2.3