diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-03-09 14:16:43 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-03-09 14:16:43 +0100 |
commit | 3be98e5ef5247042fd219dded572910305b1a5a4 (patch) | |
tree | 43b0f170be0cae8559e582415f9575828ca4e6b3 /.local/share/mode/lib/functions.sh | |
parent | 2dc5ec7085e1c1bbc406f2089dddf8f6e1d9d206 (diff) |
big restructure of `mode` scripts
Diffstat (limited to '.local/share/mode/lib/functions.sh')
-rw-r--r-- | .local/share/mode/lib/functions.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.local/share/mode/lib/functions.sh b/.local/share/mode/lib/functions.sh new file mode 100644 index 0000000..c7212e4 --- /dev/null +++ b/.local/share/mode/lib/functions.sh @@ -0,0 +1,4 @@ +#!/bin/sh +hex_to_rgb_array() { pastel format rgb "$1" | cut -c4- | tr '()' '[]' ; } +mix_rgb() { pastel mix --colorspace=RGB --fraction="$3" "$1" "$2" | pastel format hex ; } + |