From 0954c1a306f430f47b755c2e43237db523f04edf Mon Sep 17 00:00:00 2001 From: Xavier Francisco Date: Thu, 7 Mar 2019 21:29:28 +0000 Subject: Add recolor template build --- .gitignore | 1 + templates/config.yaml | 6 +++++- templates/recolor.mustache | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 templates/recolor.mustache diff --git a/.gitignore b/.gitignore index 01e3d91..c6a8963 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ templates/* !/templates/config.yaml !/templates/default.mustache +!/templates/recolor.mustache diff --git a/templates/config.yaml b/templates/config.yaml index f7331ce..02e20b8 100644 --- a/templates/config.yaml +++ b/templates/config.yaml @@ -1,3 +1,7 @@ default: extension: .config - output: build_schemes + output: colors + +recolor: + extension: .config + output: recolors diff --git a/templates/recolor.mustache b/templates/recolor.mustache new file mode 100644 index 0000000..569aa29 --- /dev/null +++ b/templates/recolor.mustache @@ -0,0 +1,32 @@ +# Base16 {{scheme-name}} +# Author: {{scheme-author}} + +set default-bg "#{{base00-hex}}" +set default-fg "#{{base01-hex}}" + +set statusbar-fg "#{{base04-hex}}" +set statusbar-bg "#{{base02-hex}}" + +set inputbar-bg "#{{base00-hex}}" +set inputbar-fg "#{{base07-hex}}" + +set notification-bg "#{{base00-hex}}" +set notification-fg "#{{base07-hex}}" + +set notification-error-bg "#{{base00-hex}}" +set notification-error-fg "#{{base08-hex}}" + +set notification-warning-bg "#{{base00-hex}}" +set notification-warning-fg "#{{base08-hex}}" + +set highlight-color "#{{base0A-hex}}" +set highlight-active-color "#{{base0D-hex}}" + +set completion-bg "#{{base01-hex}}" +set completion-fg "#{{base0D-hex}}" + +set completion-highlight-fg "#{{base07-hex}}" +set completion-highlight-bg "#{{base0D-hex}}" + +set recolor-lightcolor "#{{base00-hex}}" +set recolor-darkcolor "#{{base06-hex}}" -- cgit From 1f4778d44c7bd0a1480ac6de94a7c425b151869b Mon Sep 17 00:00:00 2001 From: Xavier Francisco Date: Wed, 24 Jun 2020 00:13:26 +0100 Subject: Handle multiple templates on Makefile --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 42e12b0..0636fe0 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ BUILD=pybase16 REPO=$(shell pwd) TEMPLATE=$(shell basename ${REPO}) -THEME_DIR=build_schemes +BUILD_DIR=build_schemes TEMPLATE_DIR=templates OUTPUT=output @@ -15,8 +15,9 @@ update: build: $(BUILD) build -t ${REPO} -o ${OUTPUT} - rm -rf ${THEME_DIR} - mv ${OUTPUT}/${TEMPLATE}/${THEME_DIR}/ ${THEME_DIR}/ + rm -rf ${BUILD_DIR} + mkdir ${BUILD_DIR} + cat templates/config.yaml | grep output | cut -d' ' -f6 | xargs -L1 -I {} mv ${OUTPUT}/${TEMPLATE}/{}/ ${BUILD_DIR}/ clean: rm -rf ${OUTPUT} ${TEMPLATE_DIR}/*/ -- cgit