aboutsummaryrefslogtreecommitdiff
path: root/.local/share/mode/plug.d/10_lib
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-10 11:00:17 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-10 11:00:17 +0100
commitfed2e42488194bfc45a55f687dd97b28a998a3f3 (patch)
tree8d1ffe023bb7228c43c35da6db45a72243c94739 /.local/share/mode/plug.d/10_lib
parentf99aa9d2c9baa0ce6ca01f47bf69e4c3901b54a8 (diff)
more refactoring
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 ; }
+