aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode/plug.d/10_lib
diff options
context:
space:
mode:
Diffstat (limited to '.local/share/mode/plug.d/10_lib')
-rw-r--r--.local/share/mode/plug.d/10_lib5
1 files changed, 5 insertions, 0 deletions
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 ; }
+