From 3be98e5ef5247042fd219dded572910305b1a5a4 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 9 Mar 2024 14:16:43 +0100 Subject: big restructure of `mode` scripts --- .local/share/mode/lib/accent.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .local/share/mode/lib/accent.sh (limited to '.local/share/mode/lib/accent.sh') diff --git a/.local/share/mode/lib/accent.sh b/.local/share/mode/lib/accent.sh new file mode 100644 index 0000000..45643eb --- /dev/null +++ b/.local/share/mode/lib/accent.sh @@ -0,0 +1,10 @@ +#!/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" +} + -- cgit v1.2.3