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/lib/accent.sh | 10 ---------- .local/share/mode/lib/functions.sh | 4 ---- 2 files changed, 14 deletions(-) delete mode 100644 .local/share/mode/lib/accent.sh delete mode 100644 .local/share/mode/lib/functions.sh (limited to '.local/share/mode/lib') diff --git a/.local/share/mode/lib/accent.sh b/.local/share/mode/lib/accent.sh deleted file mode 100644 index 45643eb..0000000 --- a/.local/share/mode/lib/accent.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -[ "$mode" == "light" ] && { - export accent="$color15" - export accent_text="$color0" -} -[ "$mode" == "dark" ] && { - export accent="$(mix_rgb $bg $color0 0.5)" - export accent_text="$fg" -} - diff --git a/.local/share/mode/lib/functions.sh b/.local/share/mode/lib/functions.sh deleted file mode 100644 index c7212e4..0000000 --- a/.local/share/mode/lib/functions.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/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 ; } - -- cgit v1.2.3