From 09282688d02644d50d0154f7f165355b5fd10179 Mon Sep 17 00:00:00 2001 From: Simon Studer Date: Sun, 25 Jan 2026 18:37:44 +0100 Subject: [PATCH] use pywal template --- config/mango/generate_conf.sh | 6 ++--- config/wal/templates/colors-mango.sh | 34 ++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 config/wal/templates/colors-mango.sh diff --git a/config/mango/generate_conf.sh b/config/mango/generate_conf.sh index 41c04d5..ed66dd7 100755 --- a/config/mango/generate_conf.sh +++ b/config/mango/generate_conf.sh @@ -1,9 +1,9 @@ #!/bin/bash -. "$HOME/.cache/wal/colors.sh" +. "$HOME/.cache/wal/colors-mango.sh" -export bordercolor="0x${color7:1}ff" -export focuscolor="0x${color4:1}ff" +export bordercolor="$color7" +export focuscolor="$color4" export urgentcolor="0xad401fff" # for simplicity, using envsubst: diff --git a/config/wal/templates/colors-mango.sh b/config/wal/templates/colors-mango.sh new file mode 100644 index 0000000..18a8b6d --- /dev/null +++ b/config/wal/templates/colors-mango.sh @@ -0,0 +1,34 @@ +# Shell variables + +# Special +background='0x{background.strip}ff' +foreground='0x{foreground.strip}ff' +cursor='0x{cursor.strip}ff' + +# Colors +color0='0x{color0.strip}ff' +color1='0x{color1.strip}ff' +color2='0x{color2.strip}ff' +color3='0x{color3.strip}ff' +color4='0x{color4.strip}ff' +color5='0x{color5.strip}ff' +color6='0x{color6.strip}ff' +color7='0x{color7.strip}ff' +color8='0x{color8.strip}ff' +color9='0x{color9.strip}ff' +color10='0x{color10.strip}ff' +color11='0x{color11.strip}ff' +color12='0x{color12.strip}ff' +color13='0x{color13.strip}ff' +color14='0x{color14.strip}ff' +color15='0x{color15.strip}ff' + +# FZF colors +export FZF_DEFAULT_OPTS=" + $FZF_DEFAULT_OPTS + --color fg:7,bg:0,hl:1,fg+:232,bg+:1,hl+:255 + --color info:7,prompt:2,spinner:1,pointer:232,marker:1 +" + +# Fix LS_COLORS being unreadable. +export LS_COLORS="${LS_COLORS}:su=30;41:ow=30;42:st=30;44:"